@soat/sdk 0.93.2 → 0.94.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.mjs CHANGED
@@ -622,7 +622,7 @@ var Activity = class {
622
622
  /**
623
623
  * List activity feed entries
624
624
  *
625
- * Returns activity entries for a project, newest first, filterable by kind, severity, agent, generation and orchestration run — every filter composable with the rest. Paginated with an opaque cursor rather than offset/limit — pass the previous page's `next_cursor` to fetch the next one; a `null` `next_cursor` means there is no more data.
625
+ * 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.
626
626
  */
627
627
  static listActivity(options) {
628
628
  return (options?.client ?? client).get({
@@ -1037,7 +1037,7 @@ var AiProviders = class {
1037
1037
  * 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.
1038
1038
  * 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`.
1039
1039
  * 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.
1040
- * The provider answers its whole catalogue in one call; `q`, `limit` and `offset` narrow and page what it returned. A request without `limit` gets the first 50 models.
1040
+ * 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.
1041
1041
  *
1042
1042
  */
1043
1043
  static listAiProviderModels(options) {
@@ -5036,6 +5036,17 @@ var Triggers = class {
5036
5036
  });
5037
5037
  }
5038
5038
  /**
5039
+ * Count triggers
5040
+ *
5041
+ * Counts the triggers `GET /api/v1/triggers` pages through under the same project and filters.
5042
+ */
5043
+ static countTriggers(options) {
5044
+ return (options?.client ?? client).get({
5045
+ url: "/api/v1/triggers/count",
5046
+ ...options
5047
+ });
5048
+ }
5049
+ /**
5039
5050
  * Delete a trigger
5040
5051
  *
5041
5052
  * Deletes a trigger
@@ -5155,7 +5166,7 @@ var Usage = class {
5155
5166
  *
5156
5167
  * Narrowings intersect and apply to the whole rollup — every bucket, `totals` and `totals.distinct` alike — so each composes with any `group_by`, and all sixteen are echoed back under `filters`. The ten naming a resource match the id the event recorded, so a deleted resource's spend stays selectable; an id no event recorded empties the rollup rather than being dropped: a mistyped id must never read back as the project's whole spend. `orchestration_id` is the exception — the event records no orchestration, so a deleted one empties the rollup. The other six are matched against the value the event recorded.
5157
5168
  *
5158
- * `groups` is paginated. Its `total` is the number of distinct buckets in the window — bucket cardinality, including a null bucket for the events the dimension does not apply to, and never a count of entities. To count entities, send `include=distinct` and read `totals.distinct`. `totals` always describes the whole window — never the page above it, and never the bucketing: omit `group_by` and `totals` is unchanged while `groups` is empty.
5169
+ * `groups` is paginated. Its buckets include a null bucket for the events the dimension does not apply to, so they are never a count of entities. To count entities, send `include=distinct` and read `totals.distinct`. `totals` always describes the whole window — never the page above it, and never the bucketing: omit `group_by` and `totals` is unchanged while `groups` is empty.
5159
5170
  *
5160
5171
  */
5161
5172
  static getUsageAggregate(options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soat/sdk",
3
- "version": "0.93.2",
3
+ "version": "0.94.1",
4
4
  "description": "TypeScript SDK for SOAT — open-source infrastructure for production-ready AI agents.",
5
5
  "keywords": [
6
6
  "ai-agents",
@@ -43,7 +43,7 @@
43
43
  "devDependencies": {
44
44
  "@hey-api/openapi-ts": "^0.99.0",
45
45
  "@ttoss/config": "^1.41.0",
46
- "@ttoss/openapi-codegen": "^0.6.1",
46
+ "@ttoss/openapi-codegen": "^0.10.0",
47
47
  "@types/node": "^26.6.4",
48
48
  "tsdown": "^0.23.0",
49
49
  "tsx": "^4.23.15",