@runtypelabs/sdk 2.1.0 → 2.2.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.d.cts CHANGED
@@ -1107,7 +1107,7 @@ interface ClientConfig {
1107
1107
  apiKey?: string;
1108
1108
  baseUrl?: string;
1109
1109
  apiVersion?: string;
1110
- timeout?: number;
1110
+ timeout?: number | null;
1111
1111
  headers?: Record<string, string>;
1112
1112
  }
1113
1113
  interface PaginationResponse<T> {
@@ -1402,7 +1402,7 @@ type DispatchEnvironment = 'development' | 'production';
1402
1402
  *
1403
1403
  * - `origin: 'sdk'` (default) — caller-defined locals. No name-prefix rule.
1404
1404
  * - `origin: 'webmcp'` — page-discovered tools via
1405
- * `navigator.modelContext.registerTool(...)`. The server applies a
1405
+ * `document.modelContext.registerTool(...)`. The server applies a
1406
1406
  * `webmcp:` name prefix before merge so audit logs are filterable.
1407
1407
  *
1408
1408
  * Use {@link runWithLocalTools} with `{ scope: 'turn' }` to ship these in
@@ -1745,6 +1745,407 @@ interface ReasoningConfig {
1745
1745
  includeThoughts?: boolean;
1746
1746
  }
1747
1747
  type ReasoningValue = boolean | ReasoningConfig;
1748
+ /**
1749
+ * Secret metadata as returned by the API. The plaintext value is never
1750
+ * returned — only a redacted `valuePreview`.
1751
+ */
1752
+ interface Secret {
1753
+ id: string;
1754
+ key: string;
1755
+ description: string | null;
1756
+ valuePreview: string | null;
1757
+ status: string;
1758
+ version: number;
1759
+ lastRotatedAt: string | null;
1760
+ phantomToken: string | null;
1761
+ createdAt: string;
1762
+ updatedAt: string;
1763
+ }
1764
+ interface CreateSecretRequest {
1765
+ key: string;
1766
+ value?: string;
1767
+ description?: string;
1768
+ }
1769
+ interface UpdateSecretRequest {
1770
+ value?: string;
1771
+ description?: string;
1772
+ /** Optimistic-concurrency guard — reject the write if the stored version differs. */
1773
+ expectedVersion?: number;
1774
+ }
1775
+ interface SecretCheckResponse {
1776
+ found: string[];
1777
+ missing: string[];
1778
+ revoked: string[];
1779
+ }
1780
+ interface SecretDeleteResponse {
1781
+ success: boolean;
1782
+ deletedId: string;
1783
+ referenceCount: number;
1784
+ }
1785
+ interface SecretSetupUrlRequest {
1786
+ keys: string[];
1787
+ context?: {
1788
+ type: 'product' | 'agent' | 'tool';
1789
+ id: string;
1790
+ };
1791
+ }
1792
+ interface SecretSetupUrlResponse {
1793
+ url: string | null;
1794
+ missing: string[];
1795
+ revoked: string[];
1796
+ alreadyConfigured: string[];
1797
+ }
1798
+ interface ScheduleExecutionOptions {
1799
+ chunkSize?: number;
1800
+ recordConcurrency?: number;
1801
+ progressFlushSize?: number;
1802
+ timeoutMs?: number;
1803
+ modelOverride?: string;
1804
+ }
1805
+ interface ScheduleMessage {
1806
+ role: 'system' | 'user' | 'assistant';
1807
+ content: MessageContent;
1808
+ }
1809
+ /** A named group of messages (used for batch agent evaluation). */
1810
+ interface ScheduleMessageSet {
1811
+ name?: string;
1812
+ messages: ScheduleMessage[];
1813
+ }
1814
+ type ScheduleMessages = ScheduleMessage[] | ScheduleMessageSet[];
1815
+ interface ScheduleTarget {
1816
+ flowId?: string;
1817
+ agentId?: string;
1818
+ recordIds?: string[];
1819
+ recordType?: string;
1820
+ recordFilter?: JsonValue | null;
1821
+ }
1822
+ interface ScheduleTrigger {
1823
+ type: 'one_time' | 'recurring';
1824
+ /** ISO 8601 datetime — required for `one_time` triggers. */
1825
+ runAt?: string;
1826
+ /** Cron expression — required for `recurring` triggers. */
1827
+ cron?: string;
1828
+ /** IANA timezone — required for `recurring` triggers. */
1829
+ timezone?: string;
1830
+ }
1831
+ /** A schedule row as returned by the API. */
1832
+ interface Schedule {
1833
+ id: string;
1834
+ userId: string;
1835
+ organizationId: string | null;
1836
+ name: string | null;
1837
+ flowId: string | null;
1838
+ agentId: string | null;
1839
+ productSurfaceId: string | null;
1840
+ recordIds: string[] | null;
1841
+ recordType: string | null;
1842
+ recordFilter: JsonValue | null;
1843
+ messages: JsonValue | null;
1844
+ inputs: Record<string, unknown> | null;
1845
+ triggerType: 'one_time' | 'recurring' | string;
1846
+ runAt: string | null;
1847
+ cron: string | null;
1848
+ timezone: string | null;
1849
+ enabled: boolean;
1850
+ nextRunAt: string | null;
1851
+ lastRunAt: string | null;
1852
+ executionOptions: ScheduleExecutionOptions;
1853
+ createdAt: string;
1854
+ updatedAt: string;
1855
+ }
1856
+ interface CreateScheduleRequest {
1857
+ target: ScheduleTarget;
1858
+ trigger: ScheduleTrigger;
1859
+ messages?: ScheduleMessages | null;
1860
+ executionOptions?: ScheduleExecutionOptions;
1861
+ /** Top-level input variables; keys must not start with `_`. */
1862
+ inputs?: Record<string, unknown> | null;
1863
+ }
1864
+ type UpdateScheduleRequest = Partial<CreateScheduleRequest>;
1865
+ interface ScheduleMutationResponse {
1866
+ id: string;
1867
+ status: string;
1868
+ }
1869
+ interface ScheduleStatusResponse {
1870
+ status: string;
1871
+ }
1872
+ /**
1873
+ * Result of triggering a schedule immediately. The exact shape depends on the
1874
+ * target (flow vs. agent, records vs. message sets), so fields are optional.
1875
+ */
1876
+ interface ScheduleRunNowResponse {
1877
+ status?: string;
1878
+ runId?: string | null;
1879
+ batchExecutionId?: string | null;
1880
+ error?: string | null;
1881
+ [key: string]: unknown;
1882
+ }
1883
+ /** A single run in a schedule's run history. */
1884
+ interface ScheduleRun {
1885
+ id: string;
1886
+ scheduleId: string;
1887
+ batchExecutionId: string | null;
1888
+ agentExecutionId: string | null;
1889
+ status: string;
1890
+ startedAt: string | null;
1891
+ completedAt: string | null;
1892
+ error: string | null;
1893
+ createdAt: string;
1894
+ [key: string]: unknown;
1895
+ }
1896
+ interface ScheduleListParams extends ListParams {
1897
+ search?: string;
1898
+ status?: 'active' | 'paused';
1899
+ }
1900
+ interface Surface {
1901
+ id: string;
1902
+ productId: string;
1903
+ name: string;
1904
+ type: string;
1905
+ /** Slack-only safe inbound config; `null` for non-Slack surfaces. */
1906
+ inbound: Record<string, unknown> | null;
1907
+ status: string;
1908
+ environment: string;
1909
+ createdAt: string;
1910
+ updatedAt: string;
1911
+ }
1912
+ interface SurfaceListParams extends ListParams {
1913
+ type?: string;
1914
+ status?: string;
1915
+ environment?: string;
1916
+ }
1917
+ type ConversationSource = 'app' | 'client_token';
1918
+ interface ConversationMessage {
1919
+ id: string;
1920
+ role: 'user' | 'assistant' | 'system';
1921
+ content: string;
1922
+ createdAt?: string;
1923
+ }
1924
+ /** Conversation detail (single conversation, with messages). */
1925
+ interface Conversation {
1926
+ id: string;
1927
+ title: string;
1928
+ modelId: string | null;
1929
+ systemPrompt: string | null;
1930
+ ownerId: string | null;
1931
+ metadata: Record<string, unknown>;
1932
+ messages: Array<Record<string, unknown>>;
1933
+ source: ConversationSource;
1934
+ createdAt: string;
1935
+ updatedAt: string;
1936
+ }
1937
+ /** Conversation summary as returned by the list endpoint. */
1938
+ interface ConversationListItem {
1939
+ id: string;
1940
+ title: string;
1941
+ modelId: string | null;
1942
+ ownerId: string | null;
1943
+ messageCount: number;
1944
+ source: ConversationSource;
1945
+ createdAt: string;
1946
+ updatedAt: string;
1947
+ }
1948
+ /** The conversations list endpoint uses a bespoke envelope (not `data`/`pagination`). */
1949
+ interface ConversationsListResponse {
1950
+ conversations: ConversationListItem[];
1951
+ pagination: {
1952
+ limit: number;
1953
+ hasMore: boolean;
1954
+ nextCursor: string | null;
1955
+ };
1956
+ }
1957
+ interface ConversationListParams {
1958
+ source?: 'all' | ConversationSource;
1959
+ surfaceId?: string;
1960
+ clientTokenId?: string;
1961
+ ownerId?: string;
1962
+ limit?: number;
1963
+ cursor?: string;
1964
+ }
1965
+ interface CreateConversationRequest {
1966
+ title?: string;
1967
+ modelId?: string;
1968
+ systemPrompt?: string;
1969
+ ownerId?: string;
1970
+ metadata?: Record<string, unknown>;
1971
+ }
1972
+ interface UpdateConversationRequest {
1973
+ title?: string;
1974
+ modelId?: string;
1975
+ systemPrompt?: string;
1976
+ ownerId?: string;
1977
+ metadata?: Record<string, unknown>;
1978
+ messages?: ConversationMessage[];
1979
+ }
1980
+ interface LogEntry {
1981
+ timestamp: string;
1982
+ level: string;
1983
+ category?: string;
1984
+ message: string;
1985
+ flowId?: string;
1986
+ agentId?: string;
1987
+ executionId?: string;
1988
+ surfaceId?: string;
1989
+ conversationId?: string;
1990
+ requestId?: string;
1991
+ [key: string]: unknown;
1992
+ }
1993
+ interface LogQueryResult {
1994
+ entries: LogEntry[];
1995
+ pagination: {
1996
+ cursor: string | null;
1997
+ hasMore: boolean;
1998
+ };
1999
+ }
2000
+ /** Logs are wrapped in a `{ success, data }` envelope by the API. */
2001
+ interface LogQueryResponse {
2002
+ success: boolean;
2003
+ data: LogQueryResult;
2004
+ _debug?: unknown;
2005
+ }
2006
+ interface LogStatsResult {
2007
+ total: number;
2008
+ byLevel: Record<string, number>;
2009
+ byCategory: Record<string, number>;
2010
+ byType: Record<string, number>;
2011
+ byStatus: Record<string, number>;
2012
+ histogram: Array<{
2013
+ bucket: string;
2014
+ count: number;
2015
+ errors: number;
2016
+ }>;
2017
+ }
2018
+ interface LogStatsResponse {
2019
+ success: boolean;
2020
+ data: LogStatsResult;
2021
+ cachedAt?: string | null;
2022
+ _debug?: unknown;
2023
+ }
2024
+ interface LogQueryParams {
2025
+ from?: string;
2026
+ to?: string;
2027
+ /** Comma-separated levels (debug,info,warn,error). */
2028
+ level?: string;
2029
+ /** Comma-separated categories (execution,agent,tool,model,system,error). */
2030
+ category?: string;
2031
+ flowId?: string;
2032
+ agentId?: string;
2033
+ executionId?: string;
2034
+ surfaceId?: string;
2035
+ conversationId?: string;
2036
+ search?: string;
2037
+ limit?: number;
2038
+ cursor?: string;
2039
+ order?: 'asc' | 'desc';
2040
+ }
2041
+ /**
2042
+ * Stats accept the same filter params as the log query (the route validates
2043
+ * against the same schema); pagination/order fields are not meaningful here.
2044
+ */
2045
+ type LogStatsParams = Omit<LogQueryParams, 'limit' | 'cursor' | 'order'>;
2046
+ interface AgentVersionListItem {
2047
+ id: string;
2048
+ versionNumber: number;
2049
+ versionType: string;
2050
+ label: string | null;
2051
+ notes: string | null;
2052
+ configSummary: string | null;
2053
+ createdAt: string;
2054
+ }
2055
+ interface AgentVersionsListResponse {
2056
+ agentId: string;
2057
+ publishedVersionId: string | null;
2058
+ draftVersionId: string | null;
2059
+ versions: AgentVersionListItem[];
2060
+ }
2061
+ interface AgentVersionDetail {
2062
+ id: string;
2063
+ agentId: string;
2064
+ versionNumber: number;
2065
+ versionType: string;
2066
+ agentConfig: Record<string, unknown> | null;
2067
+ label: string | null;
2068
+ notes: string | null;
2069
+ createdAt: string;
2070
+ }
2071
+ interface AgentVersionPublishResponse {
2072
+ success: boolean;
2073
+ message: string;
2074
+ agentId: string;
2075
+ versionId: string;
2076
+ }
2077
+ interface FlowVersionListItem {
2078
+ id: string;
2079
+ versionNumber: number;
2080
+ versionType: string;
2081
+ label: string | null;
2082
+ notes: string | null;
2083
+ stepSummary: string | null;
2084
+ stepCount: number;
2085
+ createdAt: string;
2086
+ }
2087
+ interface FlowVersionsListResponse {
2088
+ flowId: string;
2089
+ publishedVersionId: string | null;
2090
+ versions: FlowVersionListItem[];
2091
+ }
2092
+ interface FlowVersionDetail {
2093
+ id: string;
2094
+ flowId: string;
2095
+ versionNumber: number;
2096
+ versionType: string;
2097
+ flowConfig: Record<string, unknown> | null;
2098
+ label: string | null;
2099
+ notes: string | null;
2100
+ createdAt: string;
2101
+ }
2102
+ interface FlowVersionPublishResponse {
2103
+ success: boolean;
2104
+ message: string;
2105
+ flowId: string;
2106
+ versionId: string;
2107
+ }
2108
+ type VersionType = 'published' | 'draft' | 'test' | 'virtual';
2109
+ interface Integration {
2110
+ id: string;
2111
+ name?: string;
2112
+ category?: string;
2113
+ isConfigured?: boolean;
2114
+ requiredCredentials?: string[];
2115
+ missingCredentials?: string[];
2116
+ toolCount?: number;
2117
+ documentationUrl?: string;
2118
+ [key: string]: unknown;
2119
+ }
2120
+ interface IntegrationsListResponse {
2121
+ integrations: Integration[];
2122
+ total: number;
2123
+ }
2124
+ interface IntegrationTool {
2125
+ toolId?: string;
2126
+ name: string;
2127
+ description?: string;
2128
+ parametersSchema?: Record<string, unknown>;
2129
+ [key: string]: unknown;
2130
+ }
2131
+ interface SlackInstallRequest {
2132
+ teamId: string;
2133
+ teamName: string;
2134
+ appId: string;
2135
+ botUserId: string;
2136
+ enterpriseId?: string;
2137
+ enterpriseName?: string;
2138
+ isEnterpriseInstall?: boolean;
2139
+ scopes: string[];
2140
+ botToken: string;
2141
+ signingSecret: string;
2142
+ surfaceId?: string;
2143
+ integrationId?: string;
2144
+ }
2145
+ interface BillingSpendAnalyticsParams {
2146
+ /** Window size in days (1–365). The endpoint computes the range from `days`; defaults to 30. */
2147
+ days?: number;
2148
+ }
1748
2149
 
1749
2150
  /**
1750
2151
  * FlowsNamespace - Static namespace for flow operations
@@ -4944,6 +5345,315 @@ declare class AgentsEndpoint {
4944
5345
  */
4945
5346
  private syncProgressRecord;
4946
5347
  }
5348
+ /**
5349
+ * Secrets endpoint handlers
5350
+ *
5351
+ * Manages the encrypted secret store. The plaintext value is never returned by
5352
+ * the API — reads expose only a redacted `valuePreview`.
5353
+ */
5354
+ declare class SecretsEndpoint {
5355
+ private client;
5356
+ constructor(client: ApiClient);
5357
+ /**
5358
+ * List all secrets (metadata only) for the authenticated user/org.
5359
+ */
5360
+ list(): Promise<{
5361
+ data: Secret[];
5362
+ total: number;
5363
+ }>;
5364
+ /**
5365
+ * Get metadata for a single secret by ID.
5366
+ */
5367
+ get(id: string): Promise<Secret>;
5368
+ /**
5369
+ * Create a secret. Omitting `value` provisions a key with no value yet
5370
+ * (get-or-create semantics).
5371
+ */
5372
+ create(data: CreateSecretRequest): Promise<Secret>;
5373
+ /**
5374
+ * Update or rotate a secret. Pass `expectedVersion` for optimistic concurrency.
5375
+ */
5376
+ update(id: string, data: UpdateSecretRequest): Promise<Secret>;
5377
+ /**
5378
+ * Delete a secret. Returns the number of tool configs that still reference it.
5379
+ */
5380
+ delete(id: string): Promise<SecretDeleteResponse>;
5381
+ /**
5382
+ * Check which of the given keys exist, are missing, or are revoked.
5383
+ */
5384
+ check(keys: string[]): Promise<SecretCheckResponse>;
5385
+ /**
5386
+ * Generate a dashboard URL for configuring missing secrets.
5387
+ */
5388
+ setupUrl(data: SecretSetupUrlRequest): Promise<SecretSetupUrlResponse>;
5389
+ }
5390
+ /**
5391
+ * Schedules endpoint handlers
5392
+ *
5393
+ * CRUD plus lifecycle actions (pause / resume / run-now) and run history for
5394
+ * recurring or one-time flow/agent execution.
5395
+ */
5396
+ declare class SchedulesEndpoint {
5397
+ private client;
5398
+ constructor(client: ApiClient);
5399
+ /**
5400
+ * List schedules with cursor pagination. Filter by `search` (name) or `status`.
5401
+ */
5402
+ list(params?: ScheduleListParams): Promise<PaginationResponse<Schedule>>;
5403
+ /**
5404
+ * Get a single schedule by ID.
5405
+ */
5406
+ get(id: string): Promise<Schedule>;
5407
+ /**
5408
+ * Create a schedule. Provide exactly one of `target.flowId` or `target.agentId`.
5409
+ */
5410
+ create(data: CreateScheduleRequest): Promise<ScheduleMutationResponse>;
5411
+ /**
5412
+ * Update a schedule (partial update supported).
5413
+ */
5414
+ update(id: string, data: UpdateScheduleRequest): Promise<ScheduleMutationResponse>;
5415
+ /**
5416
+ * Delete a schedule.
5417
+ */
5418
+ delete(id: string): Promise<{
5419
+ success: boolean;
5420
+ }>;
5421
+ /**
5422
+ * Trigger an immediate execution, bypassing the schedule's normal timing.
5423
+ */
5424
+ runNow(id: string): Promise<ScheduleRunNowResponse>;
5425
+ /**
5426
+ * Pause a schedule (prevents future executions until resumed).
5427
+ */
5428
+ pause(id: string): Promise<ScheduleStatusResponse>;
5429
+ /**
5430
+ * Resume a paused schedule.
5431
+ */
5432
+ resume(id: string): Promise<ScheduleStatusResponse>;
5433
+ /**
5434
+ * List the run history for a specific schedule.
5435
+ */
5436
+ listRuns(id: string): Promise<{
5437
+ data: ScheduleRun[];
5438
+ }>;
5439
+ /**
5440
+ * Get statistics (success rate, average duration/cost, 7-day history) for a schedule.
5441
+ */
5442
+ getStats(id: string): Promise<Record<string, unknown>>;
5443
+ /**
5444
+ * List all runs across every schedule the user owns.
5445
+ */
5446
+ listAllRuns(params?: ListParams): Promise<PaginationResponse<ScheduleRun>>;
5447
+ }
5448
+ /**
5449
+ * Surfaces endpoint handlers
5450
+ *
5451
+ * Lists product surfaces across all of the authenticated user/org's products.
5452
+ * (Surface creation and per-surface management live under the products API.)
5453
+ */
5454
+ declare class SurfacesEndpoint {
5455
+ private client;
5456
+ constructor(client: ApiClient);
5457
+ /**
5458
+ * List surfaces with cursor pagination. Filter by `type`, `status`, or `environment`.
5459
+ */
5460
+ list(params?: SurfaceListParams): Promise<PaginationResponse<Surface>>;
5461
+ }
5462
+ /**
5463
+ * Conversations endpoint handlers
5464
+ *
5465
+ * Management-tier CRUD over both app-created and client-token-created
5466
+ * conversations.
5467
+ */
5468
+ declare class ConversationsEndpoint {
5469
+ private client;
5470
+ constructor(client: ApiClient);
5471
+ /**
5472
+ * List conversations. Filter by source, surface, client token, or owner.
5473
+ *
5474
+ * Note: this endpoint returns a bespoke `{ conversations, pagination }`
5475
+ * envelope rather than the standard `{ data, pagination }` shape.
5476
+ */
5477
+ list(params?: ConversationListParams): Promise<ConversationsListResponse>;
5478
+ /**
5479
+ * Get a single conversation (including its messages) by ID.
5480
+ */
5481
+ get(id: string): Promise<Conversation>;
5482
+ /**
5483
+ * Create a conversation.
5484
+ */
5485
+ create(data?: CreateConversationRequest): Promise<Conversation>;
5486
+ /**
5487
+ * Update a conversation (title, model, system prompt, owner, metadata, messages).
5488
+ */
5489
+ update(id: string, data: UpdateConversationRequest): Promise<Conversation>;
5490
+ /**
5491
+ * Delete a conversation.
5492
+ */
5493
+ delete(id: string): Promise<void>;
5494
+ }
5495
+ /**
5496
+ * Logs endpoint handlers
5497
+ *
5498
+ * Query structured execution/agent/tool logs, aggregate stats, and trace trees.
5499
+ */
5500
+ declare class LogsEndpoint {
5501
+ private client;
5502
+ constructor(client: ApiClient);
5503
+ /**
5504
+ * Query logs with filtering and cursor pagination. Returns the
5505
+ * `{ success, data: { entries, pagination } }` envelope.
5506
+ */
5507
+ list(params?: LogQueryParams): Promise<LogQueryResponse>;
5508
+ /**
5509
+ * Convenience wrapper around {@link list} that returns just the log entries.
5510
+ */
5511
+ listEntries(params?: LogQueryParams): Promise<LogEntry[]>;
5512
+ /**
5513
+ * Get aggregate log statistics (counts by level/category, time-series histogram).
5514
+ */
5515
+ getStats(params?: LogStatsParams): Promise<LogStatsResponse>;
5516
+ /**
5517
+ * Get the trace tree for a single execution.
5518
+ */
5519
+ traceExecution(executionId: string): Promise<Record<string, unknown>>;
5520
+ /**
5521
+ * Get the trace tree for a conversation (all executions within it).
5522
+ */
5523
+ traceConversation(conversationId: string): Promise<Record<string, unknown>>;
5524
+ }
5525
+ /**
5526
+ * Agent Versions endpoint handlers
5527
+ *
5528
+ * Version history, retrieval, and publishing for agents. These hang off the
5529
+ * standalone `/agent-versions` path (keyed by agent ID), not `/agents/:id`.
5530
+ */
5531
+ declare class AgentVersionsEndpoint {
5532
+ private client;
5533
+ constructor(client: ApiClient);
5534
+ /**
5535
+ * List versions for an agent, optionally filtered by version `type`.
5536
+ */
5537
+ list(agentId: string, params?: {
5538
+ type?: VersionType;
5539
+ }): Promise<AgentVersionsListResponse>;
5540
+ /**
5541
+ * Get the published version for an agent.
5542
+ */
5543
+ getPublished(agentId: string): Promise<AgentVersionDetail>;
5544
+ /**
5545
+ * Get a specific version of an agent.
5546
+ */
5547
+ get(agentId: string, versionId: string): Promise<AgentVersionDetail>;
5548
+ /**
5549
+ * Publish a version (promote it to the agent's published version).
5550
+ */
5551
+ publish(agentId: string, versionId: string): Promise<AgentVersionPublishResponse>;
5552
+ }
5553
+ /**
5554
+ * Flow Versions endpoint handlers
5555
+ *
5556
+ * Version history, retrieval, and publishing for flows. These hang off the
5557
+ * standalone `/flow-versions` path (keyed by flow ID), not `/flows/:id`.
5558
+ */
5559
+ declare class FlowVersionsEndpoint {
5560
+ private client;
5561
+ constructor(client: ApiClient);
5562
+ /**
5563
+ * List versions for a flow, optionally filtered by version `type`.
5564
+ */
5565
+ list(flowId: string, params?: {
5566
+ type?: VersionType;
5567
+ }): Promise<FlowVersionsListResponse>;
5568
+ /**
5569
+ * Get the published version for a flow.
5570
+ */
5571
+ getPublished(flowId: string): Promise<FlowVersionDetail>;
5572
+ /**
5573
+ * Get a specific version of a flow.
5574
+ */
5575
+ get(flowId: string, versionId: string): Promise<FlowVersionDetail>;
5576
+ /**
5577
+ * Publish a version (promote it to the flow's published version).
5578
+ */
5579
+ publish(flowId: string, versionId: string): Promise<FlowVersionPublishResponse>;
5580
+ }
5581
+ /**
5582
+ * Integrations endpoint handlers
5583
+ *
5584
+ * Read access to the integration registry + configured-credential status, plus
5585
+ * Slack installation. (Telegram/credential-rotation flows are intentionally
5586
+ * omitted — they are dashboard/OAuth-driven.)
5587
+ */
5588
+ declare class IntegrationsEndpoint {
5589
+ private client;
5590
+ constructor(client: ApiClient);
5591
+ /**
5592
+ * List all integrations with the caller's per-integration configuration status.
5593
+ */
5594
+ list(params?: {
5595
+ environment?: 'development' | 'production';
5596
+ }): Promise<IntegrationsListResponse>;
5597
+ /**
5598
+ * Get a single integration by ID.
5599
+ */
5600
+ get(integrationId: string): Promise<Integration>;
5601
+ /**
5602
+ * List integrations within a category (e.g. `slack`, `mcp`).
5603
+ */
5604
+ listByCategory(category: string): Promise<{
5605
+ integrations: Integration[];
5606
+ category: string;
5607
+ }>;
5608
+ /**
5609
+ * Per-environment credential status across the caller's integrations.
5610
+ */
5611
+ getCredentialsStatus(): Promise<Record<string, unknown>>;
5612
+ /**
5613
+ * List all tools exposed across the caller's configured integrations.
5614
+ */
5615
+ listTools(): Promise<{
5616
+ tools: IntegrationTool[];
5617
+ }>;
5618
+ /**
5619
+ * List the tools exposed by a single integration.
5620
+ */
5621
+ getIntegrationTools(integrationId: string): Promise<{
5622
+ integrationId: string;
5623
+ tools: IntegrationTool[];
5624
+ }>;
5625
+ /**
5626
+ * Get the definition of a single tool within an integration.
5627
+ */
5628
+ getTool(integrationId: string, toolName: string): Promise<IntegrationTool>;
5629
+ /**
5630
+ * Install a Slack integration from a completed OAuth handshake.
5631
+ */
5632
+ installSlack(data: SlackInstallRequest): Promise<Record<string, unknown>>;
5633
+ }
5634
+ /**
5635
+ * Billing endpoint handlers
5636
+ *
5637
+ * Read access to subscription status, credit grants, and spend analytics.
5638
+ * (Checkout / portal / token endpoints are dashboard-session only and reject
5639
+ * API-key callers, so they are intentionally not exposed here.)
5640
+ */
5641
+ declare class BillingEndpoint {
5642
+ private client;
5643
+ constructor(client: ApiClient);
5644
+ /**
5645
+ * Get the caller's subscription status, plan limits, and current usage.
5646
+ */
5647
+ getStatus(): Promise<Record<string, unknown>>;
5648
+ /**
5649
+ * Get the caller's credit grants and available/used totals.
5650
+ */
5651
+ getCredits(): Promise<Record<string, unknown>>;
5652
+ /**
5653
+ * Get spend analytics. The window is controlled by `days` (1–365, defaults to 30).
5654
+ */
5655
+ getSpendAnalytics(params?: BillingSpendAnalyticsParams): Promise<Record<string, unknown>>;
5656
+ }
4947
5657
 
4948
5658
  /**
4949
5659
  * @layer sdk
@@ -5021,6 +5731,15 @@ declare class RuntypeClient implements ApiClient {
5021
5731
  eval: EvalEndpoint;
5022
5732
  clientTokens: ClientTokensEndpoint;
5023
5733
  agents: AgentsEndpoint;
5734
+ secrets: SecretsEndpoint;
5735
+ schedules: SchedulesEndpoint;
5736
+ surfaces: SurfacesEndpoint;
5737
+ conversations: ConversationsEndpoint;
5738
+ logs: LogsEndpoint;
5739
+ agentVersions: AgentVersionsEndpoint;
5740
+ flowVersions: FlowVersionsEndpoint;
5741
+ integrations: IntegrationsEndpoint;
5742
+ billing: BillingEndpoint;
5024
5743
  constructor(config?: ClientConfig);
5025
5744
  /**
5026
5745
  * Set the API key for authentication
@@ -5633,4 +6352,4 @@ declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | u
5633
6352
  declare function getDefaultPlanPath(taskName: string): string;
5634
6353
  declare function sanitizeTaskSlug(taskName: string): string;
5635
6354
 
5636
- export { type Agent, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMediaEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, type AgentSubagentConfig, type AgentToolCompleteEvent, type AgentToolDeltaEvent, type AgentToolInputCompleteEvent, type AgentToolInputDeltaEvent, type AgentToolStartEvent, type AgentTurnCompleteEvent, type AgentTurnDeltaEvent, type AgentTurnStartEvent, AgentsEndpoint, AnalyticsEndpoint, type ApiClient, type ApiKey, ApiKeysEndpoint, type ApiResponse, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, type AttachRuntimeToolsOptions, type BaseAgentEvent, BatchBuilder, type BatchClient, type BatchListParams, type BatchOptions, type BatchRequest, type BatchResult, type BatchScheduleConfig, type BatchStatus, BatchesNamespace, type BuiltInTool, type BulkEditCondition, type BulkEditRequest, type BulkEditResponse, type BulkEditResult, ChatEndpoint, ClientBatchBuilder, type ClientConfig, type ClientConversation, ClientEvalBuilder, ClientFlowBuilder, type ClientToken, type ClientTokenConfig, type ClientTokenEnvironment, type ClientTokenVersionPin, ClientTokensEndpoint, type ClientToolDefinition, type ClientWidgetTheme, type ConditionalStepConfig$1 as ConditionalStepConfig, type ContextErrorHandling, type ContextFallback, ContextTemplatesEndpoint, type CreateApiKeyRequest, type CreateClientTokenRequest, type CreateClientTokenResponse, type CreateFlowRequest, type CreateModelConfigRequest, type CreatePromptData, type CreatePromptRequest, type CreateProviderKeyRequest, type CreateRecordRequest, type CreateToolRequest, type CustomMCPServer, type CustomMCPServerAuth, type CustomToolConfig, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DispatchClient, DispatchEndpoint, type DispatchEnvironment, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type ErrorHandlingMode, EvalBuilder, type EvalClient, EvalEndpoint, type EvalListParams, type EvalOptions, type EvalRecord, type EvalRequest, type EvalResult, type EvalRunConfig, EvalRunner, type EvalStatus, EvalsNamespace, type ExecuteToolRequest, type ExecuteToolResponse, type ExternalAgentContext, type ExternalToolConfig, type FallbackFailEvent, type FallbackStartEvent, type FallbackSuccessEvent, type FallbacksExhaustedEvent, type FallbacksInitiatedEvent, type FetchGitHubStepConfig$1 as FetchGitHubStepConfig, type FetchUrlStepConfig$1 as FetchUrlStepConfig, type FieldFormat, type FileContentPart, type Flow, type FlowAttachment, FlowBuilder, type FlowCompleteEvent, type FlowConfig$1 as FlowConfig, type FlowErrorEvent, type FlowFallback, type FlowPausedEvent, FlowResult, type FlowStartEvent, type FlowStep, FlowStepsEndpoint, type FlowSummary, type FlowToolConfig, FlowsEndpoint, FlowsNamespace, type GenerateEmbeddingStepConfig$1 as GenerateEmbeddingStepConfig, type GeneratedRuntimeToolGateDecision, type GeneratedRuntimeToolGateOptions, type ImageContentPart, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, type ListConversationsResponse, type ListParams, type LocalToolConfig, type LocalToolDefinition, type LocalToolExecutionCompleteEvent, type LocalToolExecutionLoopSnapshotSlice, type LocalToolExecutionStartEvent, type Message$1 as Message, type MessageContent, type Metadata, type ModelConfig, ModelConfigsEndpoint, type ModelFallback, type ModelOverride, type ModelUsageDetail, type ModelUsageQueryParams, type ModelUsageResponse, type ModelUsageSummary, type ModelUsageTimeSeries, type PaginationResponse, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptRunOptions, PromptRunner, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordConfig$1 as RecordConfig, type RecordFilter, type RecordFilterCondition, type RecordFilterGroup, type RecordFilterOperator, type RecordListParams, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContinuation, type RunTaskOnContextCompaction, type RunTaskOnContextNotice, type RunTaskOnSession, type RunTaskOptions, type RunTaskResult, type RunTaskResumeState, type RunTaskSessionSummary, type RunTaskState, type RunTaskStateSlice, type RunTaskStatus, type RunTaskToolTraceSlice, type RuntimeCustomToolConfig, type RuntimeExternalToolConfig, type RuntimeFlowToolConfig, type RuntimeLocalToolConfig, type RuntimeSubagentToolConfig, type RuntimeTool, type RuntimeToolConfig, Runtype, RuntypeApiError, RuntypeClient, type ConditionalStepConfig as RuntypeConditionalStepConfig, type RuntypeConfig, type FetchGitHubStepConfig as RuntypeFetchGitHubStepConfig, type FetchUrlStepConfig as RuntypeFetchUrlStepConfig, RuntypeFlowBuilder, type FlowConfig as RuntypeFlowConfig, type GenerateEmbeddingStepConfig as RuntypeGenerateEmbeddingStepConfig, type Message as RuntypeMessage, type ModelOverride$1 as RuntypeModelOverride, type Prompt as RuntypePrompt, type PromptStepConfig as RuntypePromptStepConfig, type RuntypeRecord, type RecordConfig as RuntypeRecordConfig, type RetrieveRecordStepConfig as RuntypeRetrieveRecordStepConfig, type SearchStepConfig as RuntypeSearchStepConfig, type SendEmailStepConfig as RuntypeSendEmailStepConfig, type SendEventStepConfig as RuntypeSendEventStepConfig, type SendStreamStepConfig as RuntypeSendStreamStepConfig, type SendTextStepConfig as RuntypeSendTextStepConfig, type SetVariableStepConfig as RuntypeSetVariableStepConfig, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, STEP_FIELD_REGISTRY, STEP_TYPE_TO_METHOD, type SearchStepConfig$1 as SearchStepConfig, type SendEmailStepConfig$1 as SendEmailStepConfig, type SendEventStepConfig$1 as SendEventStepConfig, type SendStreamStepConfig$1 as SendStreamStepConfig, type SendTextStepConfig$1 as SendTextStepConfig, type SetVariableStepConfig$1 as SetVariableStepConfig, type StepCompleteEvent, type StepDeltaEvent, type StepFallback, type StepFieldMeta, type StepStartEvent, type StepWaitingLocalEvent, type StreamCallbacks, type StreamEvent, type SubagentToolConfig, type TextContentPart, type Tool, type ToolConfig, type ToolExecution, type ToolsConfig, ToolsEndpoint, type TransformDataStepConfig$1 as TransformDataStepConfig, type UpdateClientTokenRequest, type UpdatePromptData, type UpdateProviderKeyRequest, type UpdateToolRequest, type UpsertFlowConfig$1 as UpsertFlowConfig, type UpsertOptions, type UpsertRecordStepConfig$1 as UpsertRecordStepConfig, type UserProfile, UsersEndpoint, type VectorSearchStepConfig$1 as VectorSearchStepConfig, type WaitUntilStepConfig$1 as WaitUntilStepConfig, type WorkflowContext, type WorkflowDefinition, type WorkflowPhase, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildGeneratedRuntimeToolGateOutput, createClient, createExternalTool, defaultWorkflow, deployWorkflow, evaluateGeneratedRuntimeToolProposal, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, normalizeCandidatePath, parseFinalBuffer, parseSSEChunk, processStream, sanitizeTaskSlug, streamEvents };
6355
+ export { type Agent, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMediaEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, type AgentSubagentConfig, type AgentToolCompleteEvent, type AgentToolDeltaEvent, type AgentToolInputCompleteEvent, type AgentToolInputDeltaEvent, type AgentToolStartEvent, type AgentTurnCompleteEvent, type AgentTurnDeltaEvent, type AgentTurnStartEvent, type AgentVersionDetail, type AgentVersionListItem, type AgentVersionPublishResponse, AgentVersionsEndpoint, type AgentVersionsListResponse, AgentsEndpoint, AnalyticsEndpoint, type ApiClient, type ApiKey, ApiKeysEndpoint, type ApiResponse, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, type AttachRuntimeToolsOptions, type BaseAgentEvent, BatchBuilder, type BatchClient, type BatchListParams, type BatchOptions, type BatchRequest, type BatchResult, type BatchScheduleConfig, type BatchStatus, BatchesNamespace, BillingEndpoint, type BillingSpendAnalyticsParams, type BuiltInTool, type BulkEditCondition, type BulkEditRequest, type BulkEditResponse, type BulkEditResult, ChatEndpoint, ClientBatchBuilder, type ClientConfig, type ClientConversation, ClientEvalBuilder, ClientFlowBuilder, type ClientToken, type ClientTokenConfig, type ClientTokenEnvironment, type ClientTokenVersionPin, ClientTokensEndpoint, type ClientToolDefinition, type ClientWidgetTheme, type ConditionalStepConfig$1 as ConditionalStepConfig, type ContextErrorHandling, type ContextFallback, ContextTemplatesEndpoint, type Conversation, type ConversationListItem, type ConversationListParams, type ConversationMessage, type ConversationSource, ConversationsEndpoint, type ConversationsListResponse, type CreateApiKeyRequest, type CreateClientTokenRequest, type CreateClientTokenResponse, type CreateConversationRequest, type CreateFlowRequest, type CreateModelConfigRequest, type CreatePromptData, type CreatePromptRequest, type CreateProviderKeyRequest, type CreateRecordRequest, type CreateScheduleRequest, type CreateSecretRequest, type CreateToolRequest, type CustomMCPServer, type CustomMCPServerAuth, type CustomToolConfig, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DispatchClient, DispatchEndpoint, type DispatchEnvironment, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type ErrorHandlingMode, EvalBuilder, type EvalClient, EvalEndpoint, type EvalListParams, type EvalOptions, type EvalRecord, type EvalRequest, type EvalResult, type EvalRunConfig, EvalRunner, type EvalStatus, EvalsNamespace, type ExecuteToolRequest, type ExecuteToolResponse, type ExternalAgentContext, type ExternalToolConfig, type FallbackFailEvent, type FallbackStartEvent, type FallbackSuccessEvent, type FallbacksExhaustedEvent, type FallbacksInitiatedEvent, type FetchGitHubStepConfig$1 as FetchGitHubStepConfig, type FetchUrlStepConfig$1 as FetchUrlStepConfig, type FieldFormat, type FileContentPart, type Flow, type FlowAttachment, FlowBuilder, type FlowCompleteEvent, type FlowConfig$1 as FlowConfig, type FlowErrorEvent, type FlowFallback, type FlowPausedEvent, FlowResult, type FlowStartEvent, type FlowStep, FlowStepsEndpoint, type FlowSummary, type FlowToolConfig, type FlowVersionDetail, type FlowVersionListItem, type FlowVersionPublishResponse, FlowVersionsEndpoint, type FlowVersionsListResponse, FlowsEndpoint, FlowsNamespace, type GenerateEmbeddingStepConfig$1 as GenerateEmbeddingStepConfig, type GeneratedRuntimeToolGateDecision, type GeneratedRuntimeToolGateOptions, type ImageContentPart, type Integration, type IntegrationTool, IntegrationsEndpoint, type IntegrationsListResponse, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, type ListConversationsResponse, type ListParams, type LocalToolConfig, type LocalToolDefinition, type LocalToolExecutionCompleteEvent, type LocalToolExecutionLoopSnapshotSlice, type LocalToolExecutionStartEvent, type LogEntry, type LogQueryParams, type LogQueryResponse, type LogQueryResult, type LogStatsParams, type LogStatsResponse, type LogStatsResult, LogsEndpoint, type Message$1 as Message, type MessageContent, type Metadata, type ModelConfig, ModelConfigsEndpoint, type ModelFallback, type ModelOverride, type ModelUsageDetail, type ModelUsageQueryParams, type ModelUsageResponse, type ModelUsageSummary, type ModelUsageTimeSeries, type PaginationResponse, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptRunOptions, PromptRunner, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordConfig$1 as RecordConfig, type RecordFilter, type RecordFilterCondition, type RecordFilterGroup, type RecordFilterOperator, type RecordListParams, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContinuation, type RunTaskOnContextCompaction, type RunTaskOnContextNotice, type RunTaskOnSession, type RunTaskOptions, type RunTaskResult, type RunTaskResumeState, type RunTaskSessionSummary, type RunTaskState, type RunTaskStateSlice, type RunTaskStatus, type RunTaskToolTraceSlice, type RuntimeCustomToolConfig, type RuntimeExternalToolConfig, type RuntimeFlowToolConfig, type RuntimeLocalToolConfig, type RuntimeSubagentToolConfig, type RuntimeTool, type RuntimeToolConfig, Runtype, RuntypeApiError, RuntypeClient, type ConditionalStepConfig as RuntypeConditionalStepConfig, type RuntypeConfig, type FetchGitHubStepConfig as RuntypeFetchGitHubStepConfig, type FetchUrlStepConfig as RuntypeFetchUrlStepConfig, RuntypeFlowBuilder, type FlowConfig as RuntypeFlowConfig, type GenerateEmbeddingStepConfig as RuntypeGenerateEmbeddingStepConfig, type Message as RuntypeMessage, type ModelOverride$1 as RuntypeModelOverride, type Prompt as RuntypePrompt, type PromptStepConfig as RuntypePromptStepConfig, type RuntypeRecord, type RecordConfig as RuntypeRecordConfig, type RetrieveRecordStepConfig as RuntypeRetrieveRecordStepConfig, type SearchStepConfig as RuntypeSearchStepConfig, type SendEmailStepConfig as RuntypeSendEmailStepConfig, type SendEventStepConfig as RuntypeSendEventStepConfig, type SendStreamStepConfig as RuntypeSendStreamStepConfig, type SendTextStepConfig as RuntypeSendTextStepConfig, type SetVariableStepConfig as RuntypeSetVariableStepConfig, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, STEP_FIELD_REGISTRY, STEP_TYPE_TO_METHOD, type Schedule, type ScheduleExecutionOptions, type ScheduleListParams, type ScheduleMessage, type ScheduleMessageSet, type ScheduleMessages, type ScheduleMutationResponse, type ScheduleRun, type ScheduleRunNowResponse, type ScheduleStatusResponse, type ScheduleTarget, type ScheduleTrigger, SchedulesEndpoint, type SearchStepConfig$1 as SearchStepConfig, type Secret, type SecretCheckResponse, type SecretDeleteResponse, type SecretSetupUrlRequest, type SecretSetupUrlResponse, SecretsEndpoint, type SendEmailStepConfig$1 as SendEmailStepConfig, type SendEventStepConfig$1 as SendEventStepConfig, type SendStreamStepConfig$1 as SendStreamStepConfig, type SendTextStepConfig$1 as SendTextStepConfig, type SetVariableStepConfig$1 as SetVariableStepConfig, type SlackInstallRequest, type StepCompleteEvent, type StepDeltaEvent, type StepFallback, type StepFieldMeta, type StepStartEvent, type StepWaitingLocalEvent, type StreamCallbacks, type StreamEvent, type SubagentToolConfig, type Surface, type SurfaceListParams, SurfacesEndpoint, type TextContentPart, type Tool, type ToolConfig, type ToolExecution, type ToolsConfig, ToolsEndpoint, type TransformDataStepConfig$1 as TransformDataStepConfig, type UpdateClientTokenRequest, type UpdateConversationRequest, type UpdatePromptData, type UpdateProviderKeyRequest, type UpdateScheduleRequest, type UpdateSecretRequest, type UpdateToolRequest, type UpsertFlowConfig$1 as UpsertFlowConfig, type UpsertOptions, type UpsertRecordStepConfig$1 as UpsertRecordStepConfig, type UserProfile, UsersEndpoint, type VectorSearchStepConfig$1 as VectorSearchStepConfig, type VersionType, type WaitUntilStepConfig$1 as WaitUntilStepConfig, type WorkflowContext, type WorkflowDefinition, type WorkflowPhase, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildGeneratedRuntimeToolGateOutput, createClient, createExternalTool, defaultWorkflow, deployWorkflow, evaluateGeneratedRuntimeToolProposal, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, normalizeCandidatePath, parseFinalBuffer, parseSSEChunk, processStream, sanitizeTaskSlug, streamEvents };