@cubos/agent-sdk 0.0.1170481 → 0.0.1171249

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.
@@ -8141,7 +8141,7 @@ export interface paths {
8141
8141
  head?: never;
8142
8142
  /**
8143
8143
  * Update knowledge base
8144
- * @description Partially updates a knowledge base; absent fields keep their value. Send `nap_agent_slug: null` explicitly to stop curating the wiki.
8144
+ * @description Partially updates a knowledge base; absent fields keep their value. Send `nap_agent_slug: ""` (an empty string) to stop curating the wiki. While a retracted source still has text in the wiki, only a curation run would remove it, so detaching the curator is refused with a 409 `retraction_pending` unless the request also sends `confirm_stranded_retractions: true`; the text then stays until a curator is attached again and runs, or the wiki is published with `PUT …/wiki`.
8145
8145
  */
8146
8146
  patch: {
8147
8147
  parameters: {
@@ -8193,12 +8193,14 @@ export interface paths {
8193
8193
  };
8194
8194
  content?: never;
8195
8195
  };
8196
- /** @description slug already used in this tenant. */
8196
+ /** @description Either the slug is already used in this tenant (empty body), or the request detaches the curator while retracted sources still have text in the wiki and does not send `confirm_stranded_retractions: true`: then the body is `RetractionPending`, with `error` `retraction_pending`, `pending` counting those sources and `failed` how many of them curation gave up on. Nothing is written. */
8197
8197
  409: {
8198
8198
  headers: {
8199
8199
  [name: string]: unknown;
8200
8200
  };
8201
- content?: never;
8201
+ content: {
8202
+ "application/json": components["schemas"]["RetractionPending"];
8203
+ };
8202
8204
  };
8203
8205
  };
8204
8206
  };
@@ -16254,6 +16256,24 @@ export interface components {
16254
16256
  /** Format: date-time */
16255
16257
  to: string;
16256
16258
  };
16259
+ /**
16260
+ * @description Body of the 409 refusing to detach the curator while a retraction is
16261
+ * outstanding.
16262
+ */
16263
+ RetractionPending: {
16264
+ /** @description Always `retraction_pending`. */
16265
+ error: string;
16266
+ /**
16267
+ * Format: int64
16268
+ * @description How many of those curation gave up on (`retraction_failed`).
16269
+ */
16270
+ failed: number;
16271
+ /**
16272
+ * Format: int64
16273
+ * @description Retracted sources whose text is still in the wiki.
16274
+ */
16275
+ pending: number;
16276
+ };
16257
16277
  RotatedSecret: {
16258
16278
  connection_secret: string;
16259
16279
  };
@@ -16965,6 +16985,11 @@ export interface components {
16965
16985
  };
16966
16986
  UpdateKnowledgeBaseInput: {
16967
16987
  accepts_conversation_sources?: boolean | null;
16988
+ /**
16989
+ * @description Detach the curator even though retracted sources still have text in the
16990
+ * wiki. Without it such a detach is refused with `retraction_pending`.
16991
+ */
16992
+ confirm_stranded_retractions?: boolean;
16968
16993
  display_name?: string | null;
16969
16994
  /** @description Send an empty string to detach the curating agent. */
16970
16995
  nap_agent_slug?: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cubos/agent-sdk",
3
- "version": "0.0.1170481",
3
+ "version": "0.0.1171249",
4
4
  "type": "module",
5
5
  "description": "Client for the Cubos Agent conversation API. Runs anywhere fetch does.",
6
6
  "license": "SEE LICENSE IN LICENSE",