deepline 0.1.91 → 0.1.93

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.d.mts CHANGED
@@ -717,12 +717,19 @@ type PlayLiveEvent = LiveEventEnvelope<unknown> & {
717
717
  * Result returned by {@link DeeplineClient.stopPlay}.
718
718
  */
719
719
  interface StopPlayRunResult {
720
- /** Public play-run identifier that was stopped. */
720
+ /** Public play-run identifier the stop request targeted. */
721
721
  runId: string;
722
- /** Stop request acknowledgement. */
723
- stopped: true;
722
+ /** Whether the server confirmed the run was stopped. */
723
+ stopped: boolean;
724
724
  /** Number of open HITL interactions marked cancelled. */
725
725
  hitlCancelledCount: number;
726
+ /**
727
+ * True when the scheduler state for the run was stale and the stop could
728
+ * not be confirmed. Absent on older servers (treated as confirmed).
729
+ */
730
+ staleSchedulerState?: boolean;
731
+ /** Server-side error detail when the stop was not confirmed. */
732
+ error?: string;
726
733
  }
727
734
  /**
728
735
  * Summary of a single play run, returned by {@link DeeplineClient.listPlayRuns}.
@@ -1251,10 +1258,28 @@ type RunsListOptions = {
1251
1258
  /** Streaming options for `client.runs.tail(...)`. */
1252
1259
  type RunsTailOptions = {
1253
1260
  signal?: AbortSignal;
1261
+ /**
1262
+ * Called before each stream reconnect. Server stream windows are finite, so
1263
+ * long runs reconnect with backoff until a terminal status is observed.
1264
+ */
1265
+ onReconnect?: (info: {
1266
+ attempt: number;
1267
+ delayMs: number;
1268
+ reason: string;
1269
+ }) => void;
1270
+ /**
1271
+ * Display-only transport notices: subscription-transport reconnects,
1272
+ * staleness warnings, and the one-time fallback notice when the server
1273
+ * cannot serve the Convex subscription transport (ADR-0008).
1274
+ */
1275
+ onNotice?: (message: string) => void;
1254
1276
  };
1255
1277
  /** Log fetch options for `client.runs.logs(...)`. */
1256
1278
  type RunsLogsOptions = {
1279
+ /** Return the LAST `limit` stored log lines (default 200). */
1257
1280
  limit?: number;
1281
+ /** Fetch every stored log line, paginating to the full totalCount. */
1282
+ all?: boolean;
1258
1283
  };
1259
1284
  /** Persisted log response for one play run. */
1260
1285
  type RunsLogsResult = {
@@ -1266,6 +1291,11 @@ type RunsLogsResult = {
1266
1291
  truncated: boolean;
1267
1292
  hasMore: boolean;
1268
1293
  entries: string[];
1294
+ /**
1295
+ * True when the run crossed the Run Log Stream retention cap: `totalCount`
1296
+ * keeps counting, but stored line bodies end at a loud truncation marker.
1297
+ */
1298
+ logsTruncated?: boolean;
1269
1299
  };
1270
1300
  /** One persisted runtime-sheet row returned by `client.runs.exportDatasetRows(...)`. */
1271
1301
  type PlaySheetRow = {
@@ -1804,7 +1834,37 @@ declare class DeeplineClient {
1804
1834
  * ```
1805
1835
  */
1806
1836
  listRuns(options: RunsListOptions): Promise<PlayRunListItem[]>;
1807
- /** Read the canonical run stream and return the latest run snapshot. */
1837
+ /**
1838
+ * Observe one run's live events through the Convex Run Snapshot
1839
+ * subscription transport (ADR-0008). Yields the same `play.*` event
1840
+ * envelopes as {@link streamPlayRunEvents} and ends after the terminal
1841
+ * snapshot. Throws {@link RunObserveTransportUnavailableError} when this
1842
+ * server cannot serve the transport (older server, unconfigured grants, or
1843
+ * unreachable Convex) — callers fall back to the SSE stream with a notice.
1844
+ */
1845
+ observeRunEvents(runId: string, options?: {
1846
+ signal?: AbortSignal;
1847
+ onNotice?: (message: string) => void;
1848
+ }): AsyncGenerator<PlayLiveEvent>;
1849
+ /**
1850
+ * Tail one run through the subscription transport until terminal, then
1851
+ * return one durable REST status read (the final Run Response Package).
1852
+ */
1853
+ private tailRunViaObserveTransport;
1854
+ /**
1855
+ * Read the canonical run stream until a terminal run status is observed.
1856
+ *
1857
+ * Tries the Convex Run Snapshot subscription transport first (ADR-0008);
1858
+ * when the server cannot serve it (grant endpoint missing/unconfigured or
1859
+ * Convex unreachable) it falls back — with one `onNotice` message — to the
1860
+ * support-window SSE stream below.
1861
+ *
1862
+ * Server stream windows are finite: they end cleanly at the function
1863
+ * ceiling even while the run keeps executing. A window that ends (cleanly
1864
+ * or via transient network error) without a terminal event triggers one
1865
+ * durable-status re-check followed by a backed-off reconnect, so long runs
1866
+ * tail to completion. Abort via `options.signal` to stop waiting.
1867
+ */
1808
1868
  tailRun(runId: string, options?: RunsTailOptions): Promise<PlayStatus>;
1809
1869
  /**
1810
1870
  * Fetch persisted logs for a run using the public runs resource model.
@@ -2034,6 +2094,15 @@ declare class DeeplineClient {
2034
2094
  }>;
2035
2095
  }
2036
2096
 
2097
+ /**
2098
+ * Bootstrap failure: this server/deployment cannot serve the subscription
2099
+ * transport. Callers fall back to the support-window SSE stream (ADR-0008).
2100
+ */
2101
+ declare class RunObserveTransportUnavailableError extends Error {
2102
+ readonly reason: string;
2103
+ constructor(message: string, reason: string);
2104
+ }
2105
+
2037
2106
  declare const SDK_VERSION: string;
2038
2107
  declare const SDK_API_CONTRACT: string;
2039
2108
 
@@ -3791,4 +3860,4 @@ declare function writeCsvOutputFile(rows: Array<Record<string, unknown>>, stem:
3791
3860
  */
3792
3861
  declare function extractSummaryFields(payload: unknown): Record<string, Scalar>;
3793
3862
 
3794
- export { AuthError, type ClearPlayHistoryRequest, type ClearPlayHistoryResult, type ColumnMap, type ColumnResolver, type ConditionalStepResolver, ConfigError, type CsvInput, type CsvOptions, type CustomerDbQueryResult, DEEPLINE_EXTRACTOR_TARGETS, DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS, DEEPLINE_TOOL_CATEGORIES, type DatasetBuilder, type DatasetColumnDefinition, type DatasetColumnRunInput, Deepline, DeeplineClient, type DeeplineClientOptions, DeeplineContext, type DeeplineEmailStatusGetterValue, DeeplineError, type DeeplineExtractorTarget, type DeeplineGetterValue, type DeeplineGetterValueMap, type DeeplineNamedPlay, type DeeplinePlayRuntimeContext, type DeeplinePlaysNamespace, type DeeplineToolCategory, type DeeplineToolsNamespace, type DefinePlayConfig, type DefinedPlay, type FileInput, JOB_CHANGE_STATUS_VALUES, type JobChangeStatus, type LiveEventEnvelope, PHONE_STATUS_VALUES, PLAY_BOOTSTRAP_COMPANY_FIELDS, PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY, PLAY_BOOTSTRAP_CONTACT_FIELDS, PLAY_BOOTSTRAP_FINDER_KINDS, PLAY_BOOTSTRAP_OUTPUT_FIELD_BY_FINDER, PLAY_BOOTSTRAP_PEOPLE_PROVIDER_CATEGORY, PLAY_BOOTSTRAP_PROVIDER_CATEGORY_BY_FINDER, PLAY_BOOTSTRAP_SOURCE_KINDS, PLAY_BOOTSTRAP_STAGE_KINDS, PLAY_BOOTSTRAP_TEMPLATES, PROD_URL, type PhoneStatus, type PlayBindings, type PlayBootstrapEntityKind, type PlayBootstrapFinderKind, type PlayDataset, type PlayDatasetInput, type PlayInputContract, type PlayJob, type PlayListItem, type PlayLiveEvent, type PlayRevisionSummary, type PlayRunResult, type PlayRunStart, type PlaySheetRow, type PlaySheetRowsResult, type PlayStatus, type PlayStepProgramStep, type PrebuiltPlayRef, type PreviousCell, type PublishPlayVersionRequest, type PublishPlayVersionResult, RateLimitError, type ResolvedConfig, type RunsListOptions, type RunsLogsOptions, type RunsLogsResult, type RunsNamespace, type RunsTailOptions, SDK_API_CONTRACT, SDK_VERSION, type StaleAfterSeconds, type StartPlayRunRequest, type StepOptions, type StepProgram, type StepProgramResolver, type StepResolver, type StopPlayRunResult, type ToolDefinition, type ToolExecuteResult, type ToolExecution, type ToolExecutionRequest, type ToolMetadata, type ToolSearchOptions, type ToolSearchResult, defineInput, definePlay, defineWorkflow, extractSummaryFields, formatPlayBootstrapFinderKinds, formatPlayBootstrapFinderKindsForSentence, formatPlayBootstrapTemplates, getDefinedPlayMetadata, isDeeplineExtractorTarget, isPlayBootstrapFinderKind, isPlayBootstrapTemplate, resolveConfig, runIf, steps, tryConvertToList, writeCsvOutputFile, writeJsonOutputFile };
3863
+ export { AuthError, type ClearPlayHistoryRequest, type ClearPlayHistoryResult, type ColumnMap, type ColumnResolver, type ConditionalStepResolver, ConfigError, type CsvInput, type CsvOptions, type CustomerDbQueryResult, DEEPLINE_EXTRACTOR_TARGETS, DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS, DEEPLINE_TOOL_CATEGORIES, type DatasetBuilder, type DatasetColumnDefinition, type DatasetColumnRunInput, Deepline, DeeplineClient, type DeeplineClientOptions, DeeplineContext, type DeeplineEmailStatusGetterValue, DeeplineError, type DeeplineExtractorTarget, type DeeplineGetterValue, type DeeplineGetterValueMap, type DeeplineNamedPlay, type DeeplinePlayRuntimeContext, type DeeplinePlaysNamespace, type DeeplineToolCategory, type DeeplineToolsNamespace, type DefinePlayConfig, type DefinedPlay, type FileInput, JOB_CHANGE_STATUS_VALUES, type JobChangeStatus, type LiveEventEnvelope, PHONE_STATUS_VALUES, PLAY_BOOTSTRAP_COMPANY_FIELDS, PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY, PLAY_BOOTSTRAP_CONTACT_FIELDS, PLAY_BOOTSTRAP_FINDER_KINDS, PLAY_BOOTSTRAP_OUTPUT_FIELD_BY_FINDER, PLAY_BOOTSTRAP_PEOPLE_PROVIDER_CATEGORY, PLAY_BOOTSTRAP_PROVIDER_CATEGORY_BY_FINDER, PLAY_BOOTSTRAP_SOURCE_KINDS, PLAY_BOOTSTRAP_STAGE_KINDS, PLAY_BOOTSTRAP_TEMPLATES, PROD_URL, type PhoneStatus, type PlayBindings, type PlayBootstrapEntityKind, type PlayBootstrapFinderKind, type PlayDataset, type PlayDatasetInput, type PlayInputContract, type PlayJob, type PlayListItem, type PlayLiveEvent, type PlayRevisionSummary, type PlayRunResult, type PlayRunStart, type PlaySheetRow, type PlaySheetRowsResult, type PlayStatus, type PlayStepProgramStep, type PrebuiltPlayRef, type PreviousCell, type PublishPlayVersionRequest, type PublishPlayVersionResult, RateLimitError, type ResolvedConfig, RunObserveTransportUnavailableError, type RunsListOptions, type RunsLogsOptions, type RunsLogsResult, type RunsNamespace, type RunsTailOptions, SDK_API_CONTRACT, SDK_VERSION, type StaleAfterSeconds, type StartPlayRunRequest, type StepOptions, type StepProgram, type StepProgramResolver, type StepResolver, type StopPlayRunResult, type ToolDefinition, type ToolExecuteResult, type ToolExecution, type ToolExecutionRequest, type ToolMetadata, type ToolSearchOptions, type ToolSearchResult, defineInput, definePlay, defineWorkflow, extractSummaryFields, formatPlayBootstrapFinderKinds, formatPlayBootstrapFinderKindsForSentence, formatPlayBootstrapTemplates, getDefinedPlayMetadata, isDeeplineExtractorTarget, isPlayBootstrapFinderKind, isPlayBootstrapTemplate, resolveConfig, runIf, steps, tryConvertToList, writeCsvOutputFile, writeJsonOutputFile };
package/dist/index.d.ts CHANGED
@@ -717,12 +717,19 @@ type PlayLiveEvent = LiveEventEnvelope<unknown> & {
717
717
  * Result returned by {@link DeeplineClient.stopPlay}.
718
718
  */
719
719
  interface StopPlayRunResult {
720
- /** Public play-run identifier that was stopped. */
720
+ /** Public play-run identifier the stop request targeted. */
721
721
  runId: string;
722
- /** Stop request acknowledgement. */
723
- stopped: true;
722
+ /** Whether the server confirmed the run was stopped. */
723
+ stopped: boolean;
724
724
  /** Number of open HITL interactions marked cancelled. */
725
725
  hitlCancelledCount: number;
726
+ /**
727
+ * True when the scheduler state for the run was stale and the stop could
728
+ * not be confirmed. Absent on older servers (treated as confirmed).
729
+ */
730
+ staleSchedulerState?: boolean;
731
+ /** Server-side error detail when the stop was not confirmed. */
732
+ error?: string;
726
733
  }
727
734
  /**
728
735
  * Summary of a single play run, returned by {@link DeeplineClient.listPlayRuns}.
@@ -1251,10 +1258,28 @@ type RunsListOptions = {
1251
1258
  /** Streaming options for `client.runs.tail(...)`. */
1252
1259
  type RunsTailOptions = {
1253
1260
  signal?: AbortSignal;
1261
+ /**
1262
+ * Called before each stream reconnect. Server stream windows are finite, so
1263
+ * long runs reconnect with backoff until a terminal status is observed.
1264
+ */
1265
+ onReconnect?: (info: {
1266
+ attempt: number;
1267
+ delayMs: number;
1268
+ reason: string;
1269
+ }) => void;
1270
+ /**
1271
+ * Display-only transport notices: subscription-transport reconnects,
1272
+ * staleness warnings, and the one-time fallback notice when the server
1273
+ * cannot serve the Convex subscription transport (ADR-0008).
1274
+ */
1275
+ onNotice?: (message: string) => void;
1254
1276
  };
1255
1277
  /** Log fetch options for `client.runs.logs(...)`. */
1256
1278
  type RunsLogsOptions = {
1279
+ /** Return the LAST `limit` stored log lines (default 200). */
1257
1280
  limit?: number;
1281
+ /** Fetch every stored log line, paginating to the full totalCount. */
1282
+ all?: boolean;
1258
1283
  };
1259
1284
  /** Persisted log response for one play run. */
1260
1285
  type RunsLogsResult = {
@@ -1266,6 +1291,11 @@ type RunsLogsResult = {
1266
1291
  truncated: boolean;
1267
1292
  hasMore: boolean;
1268
1293
  entries: string[];
1294
+ /**
1295
+ * True when the run crossed the Run Log Stream retention cap: `totalCount`
1296
+ * keeps counting, but stored line bodies end at a loud truncation marker.
1297
+ */
1298
+ logsTruncated?: boolean;
1269
1299
  };
1270
1300
  /** One persisted runtime-sheet row returned by `client.runs.exportDatasetRows(...)`. */
1271
1301
  type PlaySheetRow = {
@@ -1804,7 +1834,37 @@ declare class DeeplineClient {
1804
1834
  * ```
1805
1835
  */
1806
1836
  listRuns(options: RunsListOptions): Promise<PlayRunListItem[]>;
1807
- /** Read the canonical run stream and return the latest run snapshot. */
1837
+ /**
1838
+ * Observe one run's live events through the Convex Run Snapshot
1839
+ * subscription transport (ADR-0008). Yields the same `play.*` event
1840
+ * envelopes as {@link streamPlayRunEvents} and ends after the terminal
1841
+ * snapshot. Throws {@link RunObserveTransportUnavailableError} when this
1842
+ * server cannot serve the transport (older server, unconfigured grants, or
1843
+ * unreachable Convex) — callers fall back to the SSE stream with a notice.
1844
+ */
1845
+ observeRunEvents(runId: string, options?: {
1846
+ signal?: AbortSignal;
1847
+ onNotice?: (message: string) => void;
1848
+ }): AsyncGenerator<PlayLiveEvent>;
1849
+ /**
1850
+ * Tail one run through the subscription transport until terminal, then
1851
+ * return one durable REST status read (the final Run Response Package).
1852
+ */
1853
+ private tailRunViaObserveTransport;
1854
+ /**
1855
+ * Read the canonical run stream until a terminal run status is observed.
1856
+ *
1857
+ * Tries the Convex Run Snapshot subscription transport first (ADR-0008);
1858
+ * when the server cannot serve it (grant endpoint missing/unconfigured or
1859
+ * Convex unreachable) it falls back — with one `onNotice` message — to the
1860
+ * support-window SSE stream below.
1861
+ *
1862
+ * Server stream windows are finite: they end cleanly at the function
1863
+ * ceiling even while the run keeps executing. A window that ends (cleanly
1864
+ * or via transient network error) without a terminal event triggers one
1865
+ * durable-status re-check followed by a backed-off reconnect, so long runs
1866
+ * tail to completion. Abort via `options.signal` to stop waiting.
1867
+ */
1808
1868
  tailRun(runId: string, options?: RunsTailOptions): Promise<PlayStatus>;
1809
1869
  /**
1810
1870
  * Fetch persisted logs for a run using the public runs resource model.
@@ -2034,6 +2094,15 @@ declare class DeeplineClient {
2034
2094
  }>;
2035
2095
  }
2036
2096
 
2097
+ /**
2098
+ * Bootstrap failure: this server/deployment cannot serve the subscription
2099
+ * transport. Callers fall back to the support-window SSE stream (ADR-0008).
2100
+ */
2101
+ declare class RunObserveTransportUnavailableError extends Error {
2102
+ readonly reason: string;
2103
+ constructor(message: string, reason: string);
2104
+ }
2105
+
2037
2106
  declare const SDK_VERSION: string;
2038
2107
  declare const SDK_API_CONTRACT: string;
2039
2108
 
@@ -3791,4 +3860,4 @@ declare function writeCsvOutputFile(rows: Array<Record<string, unknown>>, stem:
3791
3860
  */
3792
3861
  declare function extractSummaryFields(payload: unknown): Record<string, Scalar>;
3793
3862
 
3794
- export { AuthError, type ClearPlayHistoryRequest, type ClearPlayHistoryResult, type ColumnMap, type ColumnResolver, type ConditionalStepResolver, ConfigError, type CsvInput, type CsvOptions, type CustomerDbQueryResult, DEEPLINE_EXTRACTOR_TARGETS, DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS, DEEPLINE_TOOL_CATEGORIES, type DatasetBuilder, type DatasetColumnDefinition, type DatasetColumnRunInput, Deepline, DeeplineClient, type DeeplineClientOptions, DeeplineContext, type DeeplineEmailStatusGetterValue, DeeplineError, type DeeplineExtractorTarget, type DeeplineGetterValue, type DeeplineGetterValueMap, type DeeplineNamedPlay, type DeeplinePlayRuntimeContext, type DeeplinePlaysNamespace, type DeeplineToolCategory, type DeeplineToolsNamespace, type DefinePlayConfig, type DefinedPlay, type FileInput, JOB_CHANGE_STATUS_VALUES, type JobChangeStatus, type LiveEventEnvelope, PHONE_STATUS_VALUES, PLAY_BOOTSTRAP_COMPANY_FIELDS, PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY, PLAY_BOOTSTRAP_CONTACT_FIELDS, PLAY_BOOTSTRAP_FINDER_KINDS, PLAY_BOOTSTRAP_OUTPUT_FIELD_BY_FINDER, PLAY_BOOTSTRAP_PEOPLE_PROVIDER_CATEGORY, PLAY_BOOTSTRAP_PROVIDER_CATEGORY_BY_FINDER, PLAY_BOOTSTRAP_SOURCE_KINDS, PLAY_BOOTSTRAP_STAGE_KINDS, PLAY_BOOTSTRAP_TEMPLATES, PROD_URL, type PhoneStatus, type PlayBindings, type PlayBootstrapEntityKind, type PlayBootstrapFinderKind, type PlayDataset, type PlayDatasetInput, type PlayInputContract, type PlayJob, type PlayListItem, type PlayLiveEvent, type PlayRevisionSummary, type PlayRunResult, type PlayRunStart, type PlaySheetRow, type PlaySheetRowsResult, type PlayStatus, type PlayStepProgramStep, type PrebuiltPlayRef, type PreviousCell, type PublishPlayVersionRequest, type PublishPlayVersionResult, RateLimitError, type ResolvedConfig, type RunsListOptions, type RunsLogsOptions, type RunsLogsResult, type RunsNamespace, type RunsTailOptions, SDK_API_CONTRACT, SDK_VERSION, type StaleAfterSeconds, type StartPlayRunRequest, type StepOptions, type StepProgram, type StepProgramResolver, type StepResolver, type StopPlayRunResult, type ToolDefinition, type ToolExecuteResult, type ToolExecution, type ToolExecutionRequest, type ToolMetadata, type ToolSearchOptions, type ToolSearchResult, defineInput, definePlay, defineWorkflow, extractSummaryFields, formatPlayBootstrapFinderKinds, formatPlayBootstrapFinderKindsForSentence, formatPlayBootstrapTemplates, getDefinedPlayMetadata, isDeeplineExtractorTarget, isPlayBootstrapFinderKind, isPlayBootstrapTemplate, resolveConfig, runIf, steps, tryConvertToList, writeCsvOutputFile, writeJsonOutputFile };
3863
+ export { AuthError, type ClearPlayHistoryRequest, type ClearPlayHistoryResult, type ColumnMap, type ColumnResolver, type ConditionalStepResolver, ConfigError, type CsvInput, type CsvOptions, type CustomerDbQueryResult, DEEPLINE_EXTRACTOR_TARGETS, DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS, DEEPLINE_TOOL_CATEGORIES, type DatasetBuilder, type DatasetColumnDefinition, type DatasetColumnRunInput, Deepline, DeeplineClient, type DeeplineClientOptions, DeeplineContext, type DeeplineEmailStatusGetterValue, DeeplineError, type DeeplineExtractorTarget, type DeeplineGetterValue, type DeeplineGetterValueMap, type DeeplineNamedPlay, type DeeplinePlayRuntimeContext, type DeeplinePlaysNamespace, type DeeplineToolCategory, type DeeplineToolsNamespace, type DefinePlayConfig, type DefinedPlay, type FileInput, JOB_CHANGE_STATUS_VALUES, type JobChangeStatus, type LiveEventEnvelope, PHONE_STATUS_VALUES, PLAY_BOOTSTRAP_COMPANY_FIELDS, PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY, PLAY_BOOTSTRAP_CONTACT_FIELDS, PLAY_BOOTSTRAP_FINDER_KINDS, PLAY_BOOTSTRAP_OUTPUT_FIELD_BY_FINDER, PLAY_BOOTSTRAP_PEOPLE_PROVIDER_CATEGORY, PLAY_BOOTSTRAP_PROVIDER_CATEGORY_BY_FINDER, PLAY_BOOTSTRAP_SOURCE_KINDS, PLAY_BOOTSTRAP_STAGE_KINDS, PLAY_BOOTSTRAP_TEMPLATES, PROD_URL, type PhoneStatus, type PlayBindings, type PlayBootstrapEntityKind, type PlayBootstrapFinderKind, type PlayDataset, type PlayDatasetInput, type PlayInputContract, type PlayJob, type PlayListItem, type PlayLiveEvent, type PlayRevisionSummary, type PlayRunResult, type PlayRunStart, type PlaySheetRow, type PlaySheetRowsResult, type PlayStatus, type PlayStepProgramStep, type PrebuiltPlayRef, type PreviousCell, type PublishPlayVersionRequest, type PublishPlayVersionResult, RateLimitError, type ResolvedConfig, RunObserveTransportUnavailableError, type RunsListOptions, type RunsLogsOptions, type RunsLogsResult, type RunsNamespace, type RunsTailOptions, SDK_API_CONTRACT, SDK_VERSION, type StaleAfterSeconds, type StartPlayRunRequest, type StepOptions, type StepProgram, type StepProgramResolver, type StepResolver, type StopPlayRunResult, type ToolDefinition, type ToolExecuteResult, type ToolExecution, type ToolExecutionRequest, type ToolMetadata, type ToolSearchOptions, type ToolSearchResult, defineInput, definePlay, defineWorkflow, extractSummaryFields, formatPlayBootstrapFinderKinds, formatPlayBootstrapFinderKindsForSentence, formatPlayBootstrapTemplates, getDefinedPlayMetadata, isDeeplineExtractorTarget, isPlayBootstrapFinderKind, isPlayBootstrapTemplate, resolveConfig, runIf, steps, tryConvertToList, writeCsvOutputFile, writeJsonOutputFile };