@soat/sdk 0.93.2 → 0.94.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 CHANGED
@@ -623,7 +623,7 @@ var Activity = class {
623
623
  /**
624
624
  * List activity feed entries
625
625
  *
626
- * 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.
626
+ * 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.
627
627
  */
628
628
  static listActivity(options) {
629
629
  return (options?.client ?? client).get({
@@ -1038,7 +1038,7 @@ var AiProviders = class {
1038
1038
  * 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.
1039
1039
  * 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`.
1040
1040
  * 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.
1041
- * 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.
1041
+ * 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.
1042
1042
  *
1043
1043
  */
1044
1044
  static listAiProviderModels(options) {
@@ -5037,6 +5037,17 @@ var Triggers = class {
5037
5037
  });
5038
5038
  }
5039
5039
  /**
5040
+ * Count triggers
5041
+ *
5042
+ * Counts the triggers `GET /api/v1/triggers` pages through under the same project and filters.
5043
+ */
5044
+ static countTriggers(options) {
5045
+ return (options?.client ?? client).get({
5046
+ url: "/api/v1/triggers/count",
5047
+ ...options
5048
+ });
5049
+ }
5050
+ /**
5040
5051
  * Delete a trigger
5041
5052
  *
5042
5053
  * Deletes a trigger
@@ -5156,7 +5167,7 @@ var Usage = class {
5156
5167
  *
5157
5168
  * 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.
5158
5169
  *
5159
- * `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.
5170
+ * `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.
5160
5171
  *
5161
5172
  */
5162
5173
  static getUsageAggregate(options) {