@squidcloud/twilio-client 1.0.500 → 1.0.502

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.
@@ -1144,11 +1144,11 @@ export interface UpsertContextStatusSuccess extends BaseUpsertContextStatus {
1144
1144
  }
1145
1145
  /**
1146
1146
  * Names an upsert failure; `DUPLICATE_CONTENT` identifies existing content when contextId is omitted.
1147
- * `EMBEDDING_FAILED`, `EXTRACTION_TIMED_OUT`, `PROVIDER_ACCESS_DENIED`, and `SOURCE_UNREACHABLE` may
1148
- * succeed on retry. Document faults carry `retryable: false` because the same bytes fail again.
1147
+ * `CONTENT_IN_FLIGHT`, `EMBEDDING_FAILED`, `EXTRACTION_TIMED_OUT`, `PROVIDER_ACCESS_DENIED`, and
1148
+ * `SOURCE_UNREACHABLE` may succeed on retry. Document faults carry `retryable: false` because the same bytes fail again.
1149
1149
  * @category AI
1150
1150
  */
1151
- export type UpsertContextErrorCode = 'CONTENT_TOO_LARGE' | 'DUPLICATE_CONTENT' | 'EMBEDDING_FAILED' | 'ENCRYPTED_DOCUMENT' | 'EXTRACTION_TIMED_OUT' | 'IMAGE_OVER_PROVIDER_LIMIT' | 'NO_EMBEDDABLE_CONTENT' | 'PROVIDER_ACCESS_DENIED' | 'SOURCE_OVER_PROVIDER_LIMIT' | 'SOURCE_UNREACHABLE' | 'UNREADABLE_DOCUMENT' | 'UNREADABLE_WORKBOOK' | 'UNSUPPORTED_FILE_TYPE';
1151
+ export type UpsertContextErrorCode = 'CONTENT_IN_FLIGHT' | 'CONTENT_TOO_LARGE' | 'DUPLICATE_CONTENT' | 'EMBEDDING_FAILED' | 'ENCRYPTED_DOCUMENT' | 'EXTRACTION_TIMED_OUT' | 'IMAGE_OVER_PROVIDER_LIMIT' | 'NO_EMBEDDABLE_CONTENT' | 'PROVIDER_ACCESS_DENIED' | 'SOURCE_OVER_PROVIDER_LIMIT' | 'SOURCE_UNREACHABLE' | 'UNREADABLE_DOCUMENT' | 'UNREADABLE_WORKBOOK' | 'UNSUPPORTED_FILE_TYPE';
1152
1152
  /**
1153
1153
  * The existing context a `DUPLICATE_CONTENT` rejection points at — where the byte-identical original
1154
1154
  * already lives.
@@ -399,6 +399,12 @@ export interface AiKnowledgeBaseChatOptions {
399
399
  * Composes with every `searchMode` and with `contextMetadataFilter`. Requires `graphRag.enabled`.
400
400
  */
401
401
  graphFilter?: AiKnowledgeBaseGraphFilter;
402
+ /**
403
+ * Returns superseded versions of a document (older drafts a source marked as replaced by a newer version)
404
+ * too, instead of only the final version. For questions pinned to a point in time ("the original model",
405
+ * "as of 2019"). Access control still applies.
406
+ */
407
+ includeSupersededVersions?: boolean;
402
408
  }
403
409
  /**
404
410
  * Graph scope for a knowledge-base search: restricts results to the documents under one concept.
@@ -760,6 +766,12 @@ export interface AiKnowledgeBaseSearchOptions {
760
766
  * Composes with every `searchMode` and with `contextMetadataFilter`. Requires `graphRag.enabled`.
761
767
  */
762
768
  graphFilter?: AiKnowledgeBaseGraphFilter;
769
+ /**
770
+ * Returns superseded versions of a document (older drafts a source marked as replaced by a newer version)
771
+ * too, instead of only the final version. For questions pinned to a point in time ("the original model",
772
+ * "as of 2019"). Access control still applies.
773
+ */
774
+ includeSupersededVersions?: boolean;
763
775
  }
764
776
  /**
765
777
  * A single chunk of data returned from an AI search operation.
@@ -877,6 +889,8 @@ export interface GrepKnowledgeBaseOptions {
877
889
  * and is clamped to {@link GREP_KNOWLEDGE_BASE_MAX_MATCHES}.
878
890
  */
879
891
  maxMatches?: number;
892
+ /** Scans the text of superseded versions too; by default only the final version of a document is scanned. */
893
+ includeSupersededVersions?: boolean;
880
894
  }
881
895
  /**
882
896
  * Request structure for a literal scan over a knowledge base's raw extracted text.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/twilio-client",
3
- "version": "1.0.500",
3
+ "version": "1.0.502",
4
4
  "description": "Squid Twilio Client",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/connectors/twilio/twilio-client/src/index.d.ts",
@@ -17,7 +17,7 @@
17
17
  "author": "",
18
18
  "license": "ISC",
19
19
  "dependencies": {
20
- "@squidcloud/client": "^1.0.500"
20
+ "@squidcloud/client": "^1.0.502"
21
21
  },
22
22
  "engines": {
23
23
  "node": ">=20.0.0"