@clear-street/clearstreet 0.108.0 → 0.109.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/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/resources/v1/index.d.mts +1 -1
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +1 -1
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/omni-ai/responses.d.mts +39 -9
- package/resources/v1/omni-ai/responses.d.mts.map +1 -1
- package/resources/v1/omni-ai/responses.d.ts +39 -9
- package/resources/v1/omni-ai/responses.d.ts.map +1 -1
- package/resources/v1/omni-ai/responses.js +15 -7
- package/resources/v1/omni-ai/responses.js.map +1 -1
- package/resources/v1/omni-ai/responses.mjs +15 -7
- package/resources/v1/omni-ai/responses.mjs.map +1 -1
- package/resources/v1/omni-ai/threads.d.mts +29 -10
- package/resources/v1/omni-ai/threads.d.mts.map +1 -1
- package/resources/v1/omni-ai/threads.d.ts +29 -10
- package/resources/v1/omni-ai/threads.d.ts.map +1 -1
- package/resources/v1/omni-ai/threads.js +20 -9
- package/resources/v1/omni-ai/threads.js.map +1 -1
- package/resources/v1/omni-ai/threads.mjs +20 -9
- package/resources/v1/omni-ai/threads.mjs.map +1 -1
- package/resources/v1/orders.d.mts +1 -11
- package/resources/v1/orders.d.mts.map +1 -1
- package/resources/v1/orders.d.ts +1 -11
- package/resources/v1/orders.d.ts.map +1 -1
- package/resources/v1/v1.d.mts +2 -2
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +2 -2
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs.map +1 -1
- package/src/resources/v1/index.ts +0 -1
- package/src/resources/v1/omni-ai/responses.ts +47 -10
- package/src/resources/v1/omni-ai/threads.ts +29 -10
- package/src/resources/v1/orders.ts +0 -13
- package/src/resources/v1/v1.ts +0 -2
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.109.0](https://github.com/clear-street/clear-street-typescript/compare/v0.108.0...v0.109.0) (2026-10-30)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **api:** api update ([64ec0d7](https://github.com/clear-street/clear-street-typescript/commit/64ec0d7e8a026acf5cbc5a0d36a4d5333c8613e8))
|
|
9
|
+
|
|
3
10
|
## [0.108.0](https://github.com/clear-street/clear-street-typescript/compare/v0.107.0...v0.108.0) (2026-10-27)
|
|
4
11
|
|
|
5
12
|
|
package/package.json
CHANGED
package/resources/v1/index.d.mts
CHANGED
|
@@ -6,7 +6,7 @@ export { Instruments, type ContractType, type ExerciseStyle, type Instrument, ty
|
|
|
6
6
|
export { Locates, type Locate, type LocateList, type LocateRate, type LocateRateResult, type LocateRateResultList, type LocateStatus, type LocateGetLocateByIDResponse, type LocateGetLocateRateByIDResponse, type LocateGetLocateRatesResponse, type LocateGetLocatesResponse, type LocateGetLocateByIDParams, type LocateGetLocateRatesParams, type LocateGetLocatesParams, } from "./locates.mjs";
|
|
7
7
|
export { OmniAI, type ActionButton, type ChartPayload, type ChartPoint, type ChartSeries, type ContentPartChartPayload, type ContentPartCustomPayload, type ContentPartStructuredActionPayload, type ContentPartSuggestedActionsPayload, type ContentPartTextPayload, type ContentPartThinkingPayload, type DataChart, type EntitlementAgreementKey, type EntitlementCode, type OpenChartAction, type OpenEntitlementConsentAction, type OpenScreenerAction, type PrefillCancelOrderAction, type PrefillCancelOrderRequest, type PrefillModifyOrderAction, type PrefillModifyOrderRequest, type PrefillNewOrderAction, type PrefillNewOrderRequest, type PrefillOrderAction, type PromptButtonAction, type StructuredAction, type StructuredActionButtonAction, type SuggestedActionsPayload, } from "./omni-ai/index.mjs";
|
|
8
8
|
export { OmniFeed, type FeedItem, type FeedItemKind, type FeedItemMetric, type FeedMetricType, type FeedPage, type OmniFeedGetFeedResponse, type OmniFeedGetFeedParams, type OmniFeedPostFeedEventParams, } from "./omni-feed.mjs";
|
|
9
|
-
export { Orders, type Execution, type ExecutionList, type InstrumentIDOrSymbol, type NewOrderRequest, type Order, type OrderList, type OrderPreview, type OrderPreviewAmount, type OrderPreviewDelta, type OrderPreviewEntry, type OrderPreviewEntryList, type OrderPreviewError, type OrderPreviewMarginDetails, type OrderPreviewOutcome, type OrderPreviewPosition, type OrderStatus, type OrderStrategy, type OrderType, type
|
|
9
|
+
export { Orders, type Execution, type ExecutionList, type InstrumentIDOrSymbol, type NewOrderRequest, type Order, type OrderList, type OrderPreview, type OrderPreviewAmount, type OrderPreviewDelta, type OrderPreviewEntry, type OrderPreviewEntryList, type OrderPreviewError, type OrderPreviewMarginDetails, type OrderPreviewOutcome, type OrderPreviewPosition, type OrderStatus, type OrderStrategy, type OrderType, type ReplaceOrderRequest, type RequestOrderType, type RequestPositionEffect, type RequestTimeInForce, type Side, type TimeInForce, type TrailingOffsetType, type OrderCancelAllOpenOrdersResponse, type OrderCancelOpenOrderResponse, type OrderGetExecutionsResponse, type OrderGetOrderByIDResponse, type OrderGetOrdersResponse, type OrderPreviewOrdersResponse, type OrderReplaceOrderResponse, type OrderSubmitOrdersResponse, type OrderCancelAllOpenOrdersParams, type OrderCancelOpenOrderParams, type OrderGetExecutionsParams, type OrderGetOrderByIDParams, type OrderGetOrdersParams, type OrderPreviewOrdersParams, type OrderReplaceOrderParams, type OrderSubmitOrdersParams, } from "./orders.mjs";
|
|
10
10
|
export { Positions, type Position, type PositionInstruction, type PositionInstructionList, type PositionInstructionRejection, type PositionInstructionStatus, type PositionInstructionType, type PositionList, type PositionType, type PositionCancelPositionInstructionResponse, type PositionClosePositionResponse, type PositionClosePositionsResponse, type PositionGetPositionInstructionsResponse, type PositionGetPositionsResponse, type PositionSubmitPositionInstructionsResponse, type PositionCancelPositionInstructionParams, type PositionClosePositionParams, type PositionClosePositionsParams, type PositionGetPositionInstructionsParams, type PositionGetPositionsParams, type PositionSubmitPositionInstructionsParams, } from "./positions.mjs";
|
|
11
11
|
export { PrivateMarkets, type ChargedBy, type CompanyCategory, type CompanyCitation, type CompanyCustomer, type CompanyDetail, type CompanyDocumentPreview, type CompanyDocumentRelation, type CompanyDocumentResource, type CompanyDocumentType, type CompanyHeadquarters, type CompanyLegalEntity, type CompanyMetricPoint, type CompanyMetricSeries, type CompanyNarrativeSection, type CompanyPerson, type CompanyPersonRole, type CompanyProfileResource, type CompanySocialLink, type CompanySocialType, type FeeFrequency, type FeeType, type MetricFrequency, type MetricKey, type SpvDetail, type SpvFeeTermResource, type PrivateMarketGetCompanyByIDResponse, type PrivateMarketGetSpvByIDResponse, type PrivateMarketGetCompanyByIDParams, type PrivateMarketGetSpvByIDParams, } from "./private-markets/index.mjs";
|
|
12
12
|
export { Screener, type Catalog, type Combination, type Enums, type FieldColumns, type FieldKind, type FieldLookback, type FieldPeriod, type FieldRef, type FieldType, type FilterOpSpec, type FilterOperator, type FilterValue, type Modifier, type ModifierArg, type ModifierDef, type ModifierOp, type OperatorArg, type Rules, type ScreenerColumn, type ScreenerEntry, type ScreenerEntryList, type ScreenerFilter, type ScreenerRow, type ScreenerRowList, type SearchFilter, type SortSpec, type Variable, type VariableDef, type ScreenerCreateScreenerResponse, type ScreenerGetScreenerByIDResponse, type ScreenerGetScreenerCatalogResponse, type ScreenerGetScreenersResponse, type ScreenerPatchScreenerResponse, type ScreenerReplaceScreenerResponse, type ScreenerSearchScreenerResponse, type ScreenerCreateScreenerParams, type ScreenerPatchScreenerParams, type ScreenerReplaceScreenerParams, type ScreenerSearchScreenerParams, } from "./screener.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/v1/index.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C,EACvC,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACpC,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,EACjC,KAAK,2BAA2B,EAChC,KAAK,6BAA6B,EAClC,KAAK,4BAA4B,GAClC,uBAAmB;AACpB,OAAO,EAAE,EAAE,EAAE,KAAK,YAAY,EAAE,KAAK,aAAa,EAAE,iBAAa;AACjE,OAAO,EACL,SAAS,EACT,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,iCAAiC,EACtC,KAAK,gCAAgC,EACrC,KAAK,gCAAgC,EACrC,KAAK,oCAAoC,EACzC,KAAK,iCAAiC,EACtC,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EACpC,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EACvC,KAAK,4BAA4B,GAClC,wBAAoB"}
|
package/resources/v1/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export { Instruments, type ContractType, type ExerciseStyle, type Instrument, ty
|
|
|
6
6
|
export { Locates, type Locate, type LocateList, type LocateRate, type LocateRateResult, type LocateRateResultList, type LocateStatus, type LocateGetLocateByIDResponse, type LocateGetLocateRateByIDResponse, type LocateGetLocateRatesResponse, type LocateGetLocatesResponse, type LocateGetLocateByIDParams, type LocateGetLocateRatesParams, type LocateGetLocatesParams, } from "./locates.js";
|
|
7
7
|
export { OmniAI, type ActionButton, type ChartPayload, type ChartPoint, type ChartSeries, type ContentPartChartPayload, type ContentPartCustomPayload, type ContentPartStructuredActionPayload, type ContentPartSuggestedActionsPayload, type ContentPartTextPayload, type ContentPartThinkingPayload, type DataChart, type EntitlementAgreementKey, type EntitlementCode, type OpenChartAction, type OpenEntitlementConsentAction, type OpenScreenerAction, type PrefillCancelOrderAction, type PrefillCancelOrderRequest, type PrefillModifyOrderAction, type PrefillModifyOrderRequest, type PrefillNewOrderAction, type PrefillNewOrderRequest, type PrefillOrderAction, type PromptButtonAction, type StructuredAction, type StructuredActionButtonAction, type SuggestedActionsPayload, } from "./omni-ai/index.js";
|
|
8
8
|
export { OmniFeed, type FeedItem, type FeedItemKind, type FeedItemMetric, type FeedMetricType, type FeedPage, type OmniFeedGetFeedResponse, type OmniFeedGetFeedParams, type OmniFeedPostFeedEventParams, } from "./omni-feed.js";
|
|
9
|
-
export { Orders, type Execution, type ExecutionList, type InstrumentIDOrSymbol, type NewOrderRequest, type Order, type OrderList, type OrderPreview, type OrderPreviewAmount, type OrderPreviewDelta, type OrderPreviewEntry, type OrderPreviewEntryList, type OrderPreviewError, type OrderPreviewMarginDetails, type OrderPreviewOutcome, type OrderPreviewPosition, type OrderStatus, type OrderStrategy, type OrderType, type
|
|
9
|
+
export { Orders, type Execution, type ExecutionList, type InstrumentIDOrSymbol, type NewOrderRequest, type Order, type OrderList, type OrderPreview, type OrderPreviewAmount, type OrderPreviewDelta, type OrderPreviewEntry, type OrderPreviewEntryList, type OrderPreviewError, type OrderPreviewMarginDetails, type OrderPreviewOutcome, type OrderPreviewPosition, type OrderStatus, type OrderStrategy, type OrderType, type ReplaceOrderRequest, type RequestOrderType, type RequestPositionEffect, type RequestTimeInForce, type Side, type TimeInForce, type TrailingOffsetType, type OrderCancelAllOpenOrdersResponse, type OrderCancelOpenOrderResponse, type OrderGetExecutionsResponse, type OrderGetOrderByIDResponse, type OrderGetOrdersResponse, type OrderPreviewOrdersResponse, type OrderReplaceOrderResponse, type OrderSubmitOrdersResponse, type OrderCancelAllOpenOrdersParams, type OrderCancelOpenOrderParams, type OrderGetExecutionsParams, type OrderGetOrderByIDParams, type OrderGetOrdersParams, type OrderPreviewOrdersParams, type OrderReplaceOrderParams, type OrderSubmitOrdersParams, } from "./orders.js";
|
|
10
10
|
export { Positions, type Position, type PositionInstruction, type PositionInstructionList, type PositionInstructionRejection, type PositionInstructionStatus, type PositionInstructionType, type PositionList, type PositionType, type PositionCancelPositionInstructionResponse, type PositionClosePositionResponse, type PositionClosePositionsResponse, type PositionGetPositionInstructionsResponse, type PositionGetPositionsResponse, type PositionSubmitPositionInstructionsResponse, type PositionCancelPositionInstructionParams, type PositionClosePositionParams, type PositionClosePositionsParams, type PositionGetPositionInstructionsParams, type PositionGetPositionsParams, type PositionSubmitPositionInstructionsParams, } from "./positions.js";
|
|
11
11
|
export { PrivateMarkets, type ChargedBy, type CompanyCategory, type CompanyCitation, type CompanyCustomer, type CompanyDetail, type CompanyDocumentPreview, type CompanyDocumentRelation, type CompanyDocumentResource, type CompanyDocumentType, type CompanyHeadquarters, type CompanyLegalEntity, type CompanyMetricPoint, type CompanyMetricSeries, type CompanyNarrativeSection, type CompanyPerson, type CompanyPersonRole, type CompanyProfileResource, type CompanySocialLink, type CompanySocialType, type FeeFrequency, type FeeType, type MetricFrequency, type MetricKey, type SpvDetail, type SpvFeeTermResource, type PrivateMarketGetCompanyByIDResponse, type PrivateMarketGetSpvByIDResponse, type PrivateMarketGetCompanyByIDParams, type PrivateMarketGetSpvByIDParams, } from "./private-markets/index.js";
|
|
12
12
|
export { Screener, type Catalog, type Combination, type Enums, type FieldColumns, type FieldKind, type FieldLookback, type FieldPeriod, type FieldRef, type FieldType, type FilterOpSpec, type FilterOperator, type FilterValue, type Modifier, type ModifierArg, type ModifierDef, type ModifierOp, type OperatorArg, type Rules, type ScreenerColumn, type ScreenerEntry, type ScreenerEntryList, type ScreenerFilter, type ScreenerRow, type ScreenerRowList, type SearchFilter, type SortSpec, type Variable, type VariableDef, type ScreenerCreateScreenerResponse, type ScreenerGetScreenerByIDResponse, type ScreenerGetScreenerCatalogResponse, type ScreenerGetScreenersResponse, type ScreenerPatchScreenerResponse, type ScreenerReplaceScreenerResponse, type ScreenerSearchScreenerResponse, type ScreenerCreateScreenerParams, type ScreenerPatchScreenerParams, type ScreenerReplaceScreenerParams, type ScreenerSearchScreenerParams, } from "./screener.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceR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BAA+B,EACpC,KAAK,kCAAkC,EACvC,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACpC,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,EACjC,KAAK,2BAA2B,EAChC,KAAK,6BAA6B,EAClC,KAAK,4BAA4B,GAClC,sBAAmB;AACpB,OAAO,EAAE,EAAE,EAAE,KAAK,YAAY,EAAE,KAAK,aAAa,EAAE,gBAAa;AACjE,OAAO,EACL,SAAS,EACT,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,iCAAiC,EACtC,KAAK,gCAAgC,EACrC,KAAK,gCAAgC,EACrC,KAAK,oCAAoC,EACzC,KAAK,iCAAiC,EACtC,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EACpC,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EACvC,KAAK,4BAA4B,GAClC,uBAAoB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA4F;AAAnF,yGAAA,UAAU,OAAA;AACnB,0CA8BoB;AA7BlB,oGAAA,QAAQ,OAAA;AA8BV,0CAoBoB;AAnBlB,oGAAA,QAAQ,OAAA;AAoBV,oDA2CiC;AA1C/B,uGAAA,cAAc,OAAA;AA2ChB,gDAsBuB;AArBrB,0GAAA,WAAW,OAAA;AAsBb,wCAemB;AAdjB,kGAAA,OAAO,OAAA;AAeT,4CA6ByB;AA5BvB,+FAAA,MAAM,OAAA;AA6BR,4CAUqB;AATnB,qGAAA,QAAQ,OAAA;AAUV,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA4F;AAAnF,yGAAA,UAAU,OAAA;AACnB,0CA8BoB;AA7BlB,oGAAA,QAAQ,OAAA;AA8BV,0CAoBoB;AAnBlB,oGAAA,QAAQ,OAAA;AAoBV,oDA2CiC;AA1C/B,uGAAA,cAAc,OAAA;AA2ChB,gDAsBuB;AArBrB,0GAAA,WAAW,OAAA;AAsBb,wCAemB;AAdjB,kGAAA,OAAO,OAAA;AAeT,4CA6ByB;AA5BvB,+FAAA,MAAM,OAAA;AA6BR,4CAUqB;AATnB,qGAAA,QAAQ,OAAA;AAUV,sCA2CkB;AA1ChB,gGAAA,MAAM,OAAA;AA2CR,4CAsBqB;AArBnB,sGAAA,SAAS,OAAA;AAsBX,oDA+BiC;AA9B/B,uGAAA,cAAc,OAAA;AA+BhB,0CAyCoB;AAxClB,oGAAA,QAAQ,OAAA;AAyCV,8BAAiE;AAAxD,wFAAA,EAAE,OAAA;AACX,4CAiBqB;AAhBnB,sGAAA,SAAS,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,UAAU,EAAmD,0BAAsB;AAC5F,OAAO,EACL,QAAQ,GA6BT,uBAAmB;AACpB,OAAO,EACL,QAAQ,GAmBT,uBAAmB;AACpB,OAAO,EACL,cAAc,GA0Cf,oCAAgC;AACjC,OAAO,EACL,WAAW,GAqBZ,0BAAsB;AACvB,OAAO,EACL,OAAO,GAcR,sBAAkB;AACnB,OAAO,EACL,MAAM,GA4BP,4BAAwB;AACzB,OAAO,EACL,QAAQ,GAST,wBAAoB;AACrB,OAAO,EACL,MAAM,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,UAAU,EAAmD,0BAAsB;AAC5F,OAAO,EACL,QAAQ,GA6BT,uBAAmB;AACpB,OAAO,EACL,QAAQ,GAmBT,uBAAmB;AACpB,OAAO,EACL,cAAc,GA0Cf,oCAAgC;AACjC,OAAO,EACL,WAAW,GAqBZ,0BAAsB;AACvB,OAAO,EACL,OAAO,GAcR,sBAAkB;AACnB,OAAO,EACL,MAAM,GA4BP,4BAAwB;AACzB,OAAO,EACL,QAAQ,GAST,wBAAoB;AACrB,OAAO,EACL,MAAM,GA0CP,qBAAiB;AAClB,OAAO,EACL,SAAS,GAqBV,wBAAoB;AACrB,OAAO,EACL,cAAc,GA8Bf,oCAAgC;AACjC,OAAO,EACL,QAAQ,GAwCT,uBAAmB;AACpB,OAAO,EAAE,EAAE,EAAyC,iBAAa;AACjE,OAAO,EACL,SAAS,GAgBV,wBAAoB"}
|
|
@@ -8,9 +8,14 @@ import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
|
8
8
|
*/
|
|
9
9
|
export declare class Responses extends APIResource {
|
|
10
10
|
/**
|
|
11
|
-
* Cancel a queued or running response.
|
|
12
|
-
*
|
|
13
|
-
*
|
|
11
|
+
* Cancel a queued or running response. Canceling a running response (Stop) also
|
|
12
|
+
* cancels every queued response in the thread that answers a user message.
|
|
13
|
+
* Canceling a queued response (withdraw) cancels only that response; the running
|
|
14
|
+
* response and other queued responses continue. Cancellation is idempotent after
|
|
15
|
+
* the response becomes terminal. Each canceled response still produces a finalized
|
|
16
|
+
* assistant message with outcome `canceled` in the thread history. Canceling a
|
|
17
|
+
* response that ended `steered` or `merged` stops the response that continues its
|
|
18
|
+
* work, with the same effect as Stop.
|
|
14
19
|
*
|
|
15
20
|
* Authorization uses the linked account before any cancellation.
|
|
16
21
|
*
|
|
@@ -26,12 +31,15 @@ export declare class Responses extends APIResource {
|
|
|
26
31
|
/**
|
|
27
32
|
* Poll the current snapshot of an in-progress or completed assistant response.
|
|
28
33
|
* While its status is `queued` or `running`, content may be partial and include
|
|
29
|
-
* thinking parts. Continue polling until it becomes `succeeded`, `failed`,
|
|
30
|
-
* `canceled`.
|
|
34
|
+
* thinking parts. Continue polling until it becomes `succeeded`, `failed`,
|
|
35
|
+
* `canceled`, `steered`, or `merged`. Treat an unknown status as terminal. On
|
|
36
|
+
* `steered` or `merged`, poll `GET /omni-ai/threads/{thread_id}/response` at once
|
|
37
|
+
* for the response that continues the work.
|
|
31
38
|
*
|
|
32
39
|
* Once terminal, the finalized message is available through
|
|
33
|
-
* `GET /omni-ai/threads/{thread_id}/messages
|
|
34
|
-
* parent thread account, including for
|
|
40
|
+
* `GET /omni-ai/threads/{thread_id}/messages`; refresh messages when a response
|
|
41
|
+
* ends. Authorization uses the current parent thread account, including for
|
|
42
|
+
* responses created before the account link.
|
|
35
43
|
*
|
|
36
44
|
* @example
|
|
37
45
|
* ```ts
|
|
@@ -50,6 +58,10 @@ export interface CancelResponsePayload {
|
|
|
50
58
|
* Shared sanitized error payload.
|
|
51
59
|
*/
|
|
52
60
|
export interface ErrorStatus {
|
|
61
|
+
/**
|
|
62
|
+
* `FAILED`, or `execution_interrupted` when Omni lost the worker running the
|
|
63
|
+
* response; partial content is kept; send the message again.
|
|
64
|
+
*/
|
|
53
65
|
code: string;
|
|
54
66
|
message: string;
|
|
55
67
|
/**
|
|
@@ -64,10 +76,15 @@ export interface Response {
|
|
|
64
76
|
id: string;
|
|
65
77
|
/**
|
|
66
78
|
* Dynamic lifecycle status for a pollable response.
|
|
79
|
+
*
|
|
80
|
+
* `succeeded`, `failed`, `canceled`, `steered` and `merged` are terminal.
|
|
81
|
+
* `steered`: the response ended as written because the user sent a newer message,
|
|
82
|
+
* and a later response in the thread continues the work. `merged`: the response
|
|
83
|
+
* ended without text, and a later response answers its message. Treat an unknown
|
|
84
|
+
* status as terminal.
|
|
67
85
|
*/
|
|
68
86
|
status: ResponseStatus;
|
|
69
87
|
thread_id: string;
|
|
70
|
-
user_message_id: string;
|
|
71
88
|
/**
|
|
72
89
|
* When a null/undefined value is observed, it indicates that there is no available
|
|
73
90
|
* data.
|
|
@@ -81,6 +98,13 @@ export interface Response {
|
|
|
81
98
|
* When a null/undefined value is observed, it indicates it does not apply.
|
|
82
99
|
*/
|
|
83
100
|
output_message_id?: string | null;
|
|
101
|
+
/**
|
|
102
|
+
* The user message this response answers. Omitted when the response presents a
|
|
103
|
+
* background result, such as a subagent's report, and answers no user message; its
|
|
104
|
+
* output message then appears in the thread without a preceding request. When a
|
|
105
|
+
* null/undefined value is observed, it indicates it does not apply.
|
|
106
|
+
*/
|
|
107
|
+
user_message_id?: string | null;
|
|
84
108
|
}
|
|
85
109
|
/**
|
|
86
110
|
* Dynamic response content container. May include thinking parts.
|
|
@@ -132,8 +156,14 @@ export declare namespace ResponseContentPart {
|
|
|
132
156
|
}
|
|
133
157
|
/**
|
|
134
158
|
* Dynamic lifecycle status for a pollable response.
|
|
159
|
+
*
|
|
160
|
+
* `succeeded`, `failed`, `canceled`, `steered` and `merged` are terminal.
|
|
161
|
+
* `steered`: the response ended as written because the user sent a newer message,
|
|
162
|
+
* and a later response in the thread continues the work. `merged`: the response
|
|
163
|
+
* ended without text, and a later response answers its message. Treat an unknown
|
|
164
|
+
* status as terminal.
|
|
135
165
|
*/
|
|
136
|
-
export type ResponseStatus = 'queued' | 'running' | 'succeeded' | 'failed' | 'canceled';
|
|
166
|
+
export type ResponseStatus = 'queued' | 'running' | 'succeeded' | 'failed' | 'canceled' | 'steered' | 'merged';
|
|
137
167
|
export interface ResponseCancelResponseResponse extends Shared.BaseResponse {
|
|
138
168
|
data: CancelResponsePayload;
|
|
139
169
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"responses.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/omni-ai/responses.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,MAAM,yBAAqB;AACvC,OAAO,KAAK,SAAS,sBAAkB;AACvC,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC
|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EAAE,qBAAqB,CAAC;CAC7B;AAED,MAAM,WAAW,+BAAgC,SAAQ,MAAM,CAAC,YAAY;IAC1E;;OAEG;IACH,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED,MAAM,WAAW,4BAA4B;IAC3C;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,6BAA6B;IAC5C;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;CACH"}
|
|
@@ -8,9 +8,14 @@ import { RequestOptions } from "../../../internal/request-options.js";
|
|
|
8
8
|
*/
|
|
9
9
|
export declare class Responses extends APIResource {
|
|
10
10
|
/**
|
|
11
|
-
* Cancel a queued or running response.
|
|
12
|
-
*
|
|
13
|
-
*
|
|
11
|
+
* Cancel a queued or running response. Canceling a running response (Stop) also
|
|
12
|
+
* cancels every queued response in the thread that answers a user message.
|
|
13
|
+
* Canceling a queued response (withdraw) cancels only that response; the running
|
|
14
|
+
* response and other queued responses continue. Cancellation is idempotent after
|
|
15
|
+
* the response becomes terminal. Each canceled response still produces a finalized
|
|
16
|
+
* assistant message with outcome `canceled` in the thread history. Canceling a
|
|
17
|
+
* response that ended `steered` or `merged` stops the response that continues its
|
|
18
|
+
* work, with the same effect as Stop.
|
|
14
19
|
*
|
|
15
20
|
* Authorization uses the linked account before any cancellation.
|
|
16
21
|
*
|
|
@@ -26,12 +31,15 @@ export declare class Responses extends APIResource {
|
|
|
26
31
|
/**
|
|
27
32
|
* Poll the current snapshot of an in-progress or completed assistant response.
|
|
28
33
|
* While its status is `queued` or `running`, content may be partial and include
|
|
29
|
-
* thinking parts. Continue polling until it becomes `succeeded`, `failed`,
|
|
30
|
-
* `canceled`.
|
|
34
|
+
* thinking parts. Continue polling until it becomes `succeeded`, `failed`,
|
|
35
|
+
* `canceled`, `steered`, or `merged`. Treat an unknown status as terminal. On
|
|
36
|
+
* `steered` or `merged`, poll `GET /omni-ai/threads/{thread_id}/response` at once
|
|
37
|
+
* for the response that continues the work.
|
|
31
38
|
*
|
|
32
39
|
* Once terminal, the finalized message is available through
|
|
33
|
-
* `GET /omni-ai/threads/{thread_id}/messages
|
|
34
|
-
* parent thread account, including for
|
|
40
|
+
* `GET /omni-ai/threads/{thread_id}/messages`; refresh messages when a response
|
|
41
|
+
* ends. Authorization uses the current parent thread account, including for
|
|
42
|
+
* responses created before the account link.
|
|
35
43
|
*
|
|
36
44
|
* @example
|
|
37
45
|
* ```ts
|
|
@@ -50,6 +58,10 @@ export interface CancelResponsePayload {
|
|
|
50
58
|
* Shared sanitized error payload.
|
|
51
59
|
*/
|
|
52
60
|
export interface ErrorStatus {
|
|
61
|
+
/**
|
|
62
|
+
* `FAILED`, or `execution_interrupted` when Omni lost the worker running the
|
|
63
|
+
* response; partial content is kept; send the message again.
|
|
64
|
+
*/
|
|
53
65
|
code: string;
|
|
54
66
|
message: string;
|
|
55
67
|
/**
|
|
@@ -64,10 +76,15 @@ export interface Response {
|
|
|
64
76
|
id: string;
|
|
65
77
|
/**
|
|
66
78
|
* Dynamic lifecycle status for a pollable response.
|
|
79
|
+
*
|
|
80
|
+
* `succeeded`, `failed`, `canceled`, `steered` and `merged` are terminal.
|
|
81
|
+
* `steered`: the response ended as written because the user sent a newer message,
|
|
82
|
+
* and a later response in the thread continues the work. `merged`: the response
|
|
83
|
+
* ended without text, and a later response answers its message. Treat an unknown
|
|
84
|
+
* status as terminal.
|
|
67
85
|
*/
|
|
68
86
|
status: ResponseStatus;
|
|
69
87
|
thread_id: string;
|
|
70
|
-
user_message_id: string;
|
|
71
88
|
/**
|
|
72
89
|
* When a null/undefined value is observed, it indicates that there is no available
|
|
73
90
|
* data.
|
|
@@ -81,6 +98,13 @@ export interface Response {
|
|
|
81
98
|
* When a null/undefined value is observed, it indicates it does not apply.
|
|
82
99
|
*/
|
|
83
100
|
output_message_id?: string | null;
|
|
101
|
+
/**
|
|
102
|
+
* The user message this response answers. Omitted when the response presents a
|
|
103
|
+
* background result, such as a subagent's report, and answers no user message; its
|
|
104
|
+
* output message then appears in the thread without a preceding request. When a
|
|
105
|
+
* null/undefined value is observed, it indicates it does not apply.
|
|
106
|
+
*/
|
|
107
|
+
user_message_id?: string | null;
|
|
84
108
|
}
|
|
85
109
|
/**
|
|
86
110
|
* Dynamic response content container. May include thinking parts.
|
|
@@ -132,8 +156,14 @@ export declare namespace ResponseContentPart {
|
|
|
132
156
|
}
|
|
133
157
|
/**
|
|
134
158
|
* Dynamic lifecycle status for a pollable response.
|
|
159
|
+
*
|
|
160
|
+
* `succeeded`, `failed`, `canceled`, `steered` and `merged` are terminal.
|
|
161
|
+
* `steered`: the response ended as written because the user sent a newer message,
|
|
162
|
+
* and a later response in the thread continues the work. `merged`: the response
|
|
163
|
+
* ended without text, and a later response answers its message. Treat an unknown
|
|
164
|
+
* status as terminal.
|
|
135
165
|
*/
|
|
136
|
-
export type ResponseStatus = 'queued' | 'running' | 'succeeded' | 'failed' | 'canceled';
|
|
166
|
+
export type ResponseStatus = 'queued' | 'running' | 'succeeded' | 'failed' | 'canceled' | 'steered' | 'merged';
|
|
137
167
|
export interface ResponseCancelResponseResponse extends Shared.BaseResponse {
|
|
138
168
|
data: CancelResponsePayload;
|
|
139
169
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/omni-ai/responses.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,MAAM,wBAAqB;AACvC,OAAO,KAAK,SAAS,qBAAkB;AACvC,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC
|
|
1
|
+
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/omni-ai/responses.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,MAAM,wBAAqB;AACvC,OAAO,KAAK,SAAS,qBAAkB;AACvC,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,cAAc,CACZ,UAAU,EAAE,MAAM,EAClB,MAAM,GAAE,4BAA4B,GAAG,IAAI,GAAG,SAAc,EAC5D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,8BAA8B,CAAC;IAQ7C;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,eAAe,CACb,UAAU,EAAE,MAAM,EAClB,KAAK,GAAE,6BAA6B,GAAG,IAAI,GAAG,SAAc,EAC5D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,+BAA+B,CAAC;CAG/C;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW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AAkB,SAAQ,SAAS,CAAC,wBAAwB;QAC3E,IAAI,EAAE,QAAQ,CAAC;KAChB;CACF;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,cAAc,GACtB,QAAQ,GACR,SAAS,GACT,WAAW,GACX,QAAQ,GACR,UAAU,GACV,SAAS,GACT,QAAQ,CAAC;AAEb,MAAM,WAAW,8BAA+B,SAAQ,MAAM,CAAC,YAAY;IACzE,IAAI,EAAE,qBAAqB,CAAC;CAC7B;AAED,MAAM,WAAW,+BAAgC,SAAQ,MAAM,CAAC,YAAY;IAC1E;;OAEG;IACH,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED,MAAM,WAAW,4BAA4B;IAC3C;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,6BAA6B;IAC5C;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;CACH"}
|
|
@@ -9,9 +9,14 @@ const path_1 = require("../../../internal/utils/path.js");
|
|
|
9
9
|
*/
|
|
10
10
|
class Responses extends resource_1.APIResource {
|
|
11
11
|
/**
|
|
12
|
-
* Cancel a queued or running response.
|
|
13
|
-
*
|
|
14
|
-
*
|
|
12
|
+
* Cancel a queued or running response. Canceling a running response (Stop) also
|
|
13
|
+
* cancels every queued response in the thread that answers a user message.
|
|
14
|
+
* Canceling a queued response (withdraw) cancels only that response; the running
|
|
15
|
+
* response and other queued responses continue. Cancellation is idempotent after
|
|
16
|
+
* the response becomes terminal. Each canceled response still produces a finalized
|
|
17
|
+
* assistant message with outcome `canceled` in the thread history. Canceling a
|
|
18
|
+
* response that ended `steered` or `merged` stops the response that continues its
|
|
19
|
+
* work, with the same effect as Stop.
|
|
15
20
|
*
|
|
16
21
|
* Authorization uses the linked account before any cancellation.
|
|
17
22
|
*
|
|
@@ -33,12 +38,15 @@ class Responses extends resource_1.APIResource {
|
|
|
33
38
|
/**
|
|
34
39
|
* Poll the current snapshot of an in-progress or completed assistant response.
|
|
35
40
|
* While its status is `queued` or `running`, content may be partial and include
|
|
36
|
-
* thinking parts. Continue polling until it becomes `succeeded`, `failed`,
|
|
37
|
-
* `canceled`.
|
|
41
|
+
* thinking parts. Continue polling until it becomes `succeeded`, `failed`,
|
|
42
|
+
* `canceled`, `steered`, or `merged`. Treat an unknown status as terminal. On
|
|
43
|
+
* `steered` or `merged`, poll `GET /omni-ai/threads/{thread_id}/response` at once
|
|
44
|
+
* for the response that continues the work.
|
|
38
45
|
*
|
|
39
46
|
* Once terminal, the finalized message is available through
|
|
40
|
-
* `GET /omni-ai/threads/{thread_id}/messages
|
|
41
|
-
* parent thread account, including for
|
|
47
|
+
* `GET /omni-ai/threads/{thread_id}/messages`; refresh messages when a response
|
|
48
|
+
* ends. Authorization uses the current parent thread account, including for
|
|
49
|
+
* responses created before the account link.
|
|
42
50
|
*
|
|
43
51
|
* @example
|
|
44
52
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"responses.js","sourceRoot":"","sources":["../../../src/resources/v1/omni-ai/responses.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAKrD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,SAAU,SAAQ,sBAAW;IACxC
|
|
1
|
+
{"version":3,"file":"responses.js","sourceRoot":"","sources":["../../../src/resources/v1/omni-ai/responses.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAKrD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,cAAc,CACZ,UAAkB,EAClB,SAA0D,EAAE,EAC5D,OAAwB;QAExB,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,yBAAyB,UAAU,EAAE,EAAE;YACpE,KAAK,EAAE,EAAE,UAAU,EAAE;YACrB,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,eAAe,CACb,UAAkB,EAClB,QAA0D,EAAE,EAC5D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,yBAAyB,UAAU,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;CACF;AA7DD,8BA6DC"}
|
|
@@ -6,9 +6,14 @@ import { path } from "../../../internal/utils/path.mjs";
|
|
|
6
6
|
*/
|
|
7
7
|
export class Responses extends APIResource {
|
|
8
8
|
/**
|
|
9
|
-
* Cancel a queued or running response.
|
|
10
|
-
*
|
|
11
|
-
*
|
|
9
|
+
* Cancel a queued or running response. Canceling a running response (Stop) also
|
|
10
|
+
* cancels every queued response in the thread that answers a user message.
|
|
11
|
+
* Canceling a queued response (withdraw) cancels only that response; the running
|
|
12
|
+
* response and other queued responses continue. Cancellation is idempotent after
|
|
13
|
+
* the response becomes terminal. Each canceled response still produces a finalized
|
|
14
|
+
* assistant message with outcome `canceled` in the thread history. Canceling a
|
|
15
|
+
* response that ended `steered` or `merged` stops the response that continues its
|
|
16
|
+
* work, with the same effect as Stop.
|
|
12
17
|
*
|
|
13
18
|
* Authorization uses the linked account before any cancellation.
|
|
14
19
|
*
|
|
@@ -30,12 +35,15 @@ export class Responses extends APIResource {
|
|
|
30
35
|
/**
|
|
31
36
|
* Poll the current snapshot of an in-progress or completed assistant response.
|
|
32
37
|
* While its status is `queued` or `running`, content may be partial and include
|
|
33
|
-
* thinking parts. Continue polling until it becomes `succeeded`, `failed`,
|
|
34
|
-
* `canceled`.
|
|
38
|
+
* thinking parts. Continue polling until it becomes `succeeded`, `failed`,
|
|
39
|
+
* `canceled`, `steered`, or `merged`. Treat an unknown status as terminal. On
|
|
40
|
+
* `steered` or `merged`, poll `GET /omni-ai/threads/{thread_id}/response` at once
|
|
41
|
+
* for the response that continues the work.
|
|
35
42
|
*
|
|
36
43
|
* Once terminal, the finalized message is available through
|
|
37
|
-
* `GET /omni-ai/threads/{thread_id}/messages
|
|
38
|
-
* parent thread account, including for
|
|
44
|
+
* `GET /omni-ai/threads/{thread_id}/messages`; refresh messages when a response
|
|
45
|
+
* ends. Authorization uses the current parent thread account, including for
|
|
46
|
+
* responses created before the account link.
|
|
39
47
|
*
|
|
40
48
|
* @example
|
|
41
49
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"responses.mjs","sourceRoot":"","sources":["../../../src/resources/v1/omni-ai/responses.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAKrD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC
|
|
1
|
+
{"version":3,"file":"responses.mjs","sourceRoot":"","sources":["../../../src/resources/v1/omni-ai/responses.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAKrD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,cAAc,CACZ,UAAkB,EAClB,SAA0D,EAAE,EAC5D,OAAwB;QAExB,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,yBAAyB,UAAU,EAAE,EAAE;YACpE,KAAK,EAAE,EAAE,UAAU,EAAE;YACrB,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,eAAe,CACb,UAAkB,EAClB,QAA0D,EAAE,EAC5D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,yBAAyB,UAAU,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;CACF"}
|
|
@@ -13,8 +13,13 @@ export declare class Threads extends APIResource {
|
|
|
13
13
|
* Poll the returned `response_id` via `GET /omni-ai/responses/{response_id}` for
|
|
14
14
|
* assistant output.
|
|
15
15
|
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
16
|
+
* A message sent while another response is active is accepted, and its response is
|
|
17
|
+
* `queued`. Omni reads the message at the next safe point of the active response.
|
|
18
|
+
* The active response then ends `steered` if it showed text, or `merged` if it did
|
|
19
|
+
* not, and the response for the newest message answers everything sent so far.
|
|
20
|
+
* Earlier queued responses that it answers also end `merged`. Some requests, such
|
|
21
|
+
* as research, do not steer: their responses, and the responses for messages sent
|
|
22
|
+
* after them, start in order after the earlier responses end.
|
|
18
23
|
*
|
|
19
24
|
* The first accepted selected-account message links an unlinked thread. A linked
|
|
20
25
|
* thread keeps its account regardless of omission or another selection. A changed
|
|
@@ -57,8 +62,14 @@ export declare class Threads extends APIResource {
|
|
|
57
62
|
* the returned page token to navigate history.
|
|
58
63
|
*
|
|
59
64
|
* In-progress assistant output is not included. Poll
|
|
60
|
-
* `GET /omni-ai/
|
|
61
|
-
*
|
|
65
|
+
* `GET /omni-ai/threads/{thread_id}/response` and refresh messages when a response
|
|
66
|
+
* ends to read its finalized message here. Some answers start without a request: a
|
|
67
|
+
* response with no `user_message_id` presents a background result, such as a
|
|
68
|
+
* subagent's report, so keep polling the thread response while the thread is open
|
|
69
|
+
* rather than only after sending a message.
|
|
70
|
+
*
|
|
71
|
+
* Hide assistant messages with outcome `merged`. They have no content, and a later
|
|
72
|
+
* answer covers their turn.
|
|
62
73
|
*
|
|
63
74
|
* @example
|
|
64
75
|
* ```ts
|
|
@@ -84,11 +95,11 @@ export declare class Threads extends APIResource {
|
|
|
84
95
|
*/
|
|
85
96
|
getThreadByID(threadID: string, query?: ThreadGetThreadByIDParams | null | undefined, options?: RequestOptions): APIPromise<ThreadGetThreadByIDResponse>;
|
|
86
97
|
/**
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
*
|
|
98
|
+
* Returns the running response, or else the next queued response. Poll it while a
|
|
99
|
+
* thread is open to follow every response in order, including answers that start
|
|
100
|
+
* without a request: a response with no `user_message_id` presents a background
|
|
101
|
+
* result, such as a subagent's report. Refresh messages when any response ends. An
|
|
102
|
+
* idle owned thread returns HTTP 200 with `data: null`.
|
|
92
103
|
*
|
|
93
104
|
* @example
|
|
94
105
|
* ```ts
|
|
@@ -169,6 +180,10 @@ export interface Message {
|
|
|
169
180
|
created_at: string;
|
|
170
181
|
/**
|
|
171
182
|
* Immutable terminal outcome for a finalized assistant message.
|
|
183
|
+
*
|
|
184
|
+
* `steered`: the message is complete as written; the user sent a newer message
|
|
185
|
+
* before it finished. `merged`: the message has no content, and a later answer
|
|
186
|
+
* covers its turn. Hide `merged` messages.
|
|
172
187
|
*/
|
|
173
188
|
outcome: MessageOutcome;
|
|
174
189
|
/**
|
|
@@ -233,8 +248,12 @@ export declare namespace MessageContentPart {
|
|
|
233
248
|
export type MessageList = Array<Message>;
|
|
234
249
|
/**
|
|
235
250
|
* Immutable terminal outcome for a finalized assistant message.
|
|
251
|
+
*
|
|
252
|
+
* `steered`: the message is complete as written; the user sent a newer message
|
|
253
|
+
* before it finished. `merged`: the message has no content, and a later answer
|
|
254
|
+
* covers its turn. Hide `merged` messages.
|
|
236
255
|
*/
|
|
237
|
-
export type MessageOutcome = 'completed' | 'errored' | 'canceled';
|
|
256
|
+
export type MessageOutcome = 'completed' | 'errored' | 'canceled' | 'steered' | 'merged';
|
|
238
257
|
/**
|
|
239
258
|
* Finalized message role in the public contract.
|
|
240
259
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"threads.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/omni-ai/threads.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,MAAM,yBAAqB;AACvC,OAAO,KAAK,SAAS,sBAAkB;AACvC,OAAO,KAAK,YAAY,wBAAoB;AAC5C,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC
|
|
1
|
+
{"version":3,"file":"threads.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/omni-ai/threads.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,MAAM,yBAAqB;AACvC,OAAO,KAAK,SAAS,sBAAkB;AACvC,OAAO,KAAK,YAAY,wBAAoB;AAC5C,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,aAAa,CACX,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,yBAAyB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,2BAA2B,CAAC;IAI1C;;;;;;;;;;;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