@runtypelabs/sdk 4.14.0 → 4.15.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.cjs +308 -52
- package/dist/index.d.cts +519 -1
- package/dist/index.d.ts +519 -1
- package/dist/index.mjs +302 -52
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -19880,6 +19880,153 @@ interface paths {
|
|
|
19880
19880
|
patch?: never;
|
|
19881
19881
|
trace?: never;
|
|
19882
19882
|
};
|
|
19883
|
+
"/v1/products/ensure": {
|
|
19884
|
+
parameters: {
|
|
19885
|
+
query?: never;
|
|
19886
|
+
header?: never;
|
|
19887
|
+
path?: never;
|
|
19888
|
+
cookie?: never;
|
|
19889
|
+
};
|
|
19890
|
+
get?: never;
|
|
19891
|
+
put?: never;
|
|
19892
|
+
/**
|
|
19893
|
+
* Ensure product (config-as-code converge)
|
|
19894
|
+
* @description Idempotently converge a repo-defined product definition onto the platform. Identity is name + account scope. Hash-only probes skip the payload in the steady state (a miss is a normal 200 `definitionRequired` response, not an error); full requests create the product or update it when the canonical content hash differs. The converge covers the top-level product record only (description, icon, spec) — not nested capabilities/surfaces/tools or canvas layout. The response always carries the server-computed canonical hash. Set dryRun to plan without writing (CI drift gate), and onConflict: "overwrite" to converge over dashboard/API edits. Products have no version snapshots, so there is no publish option.
|
|
19895
|
+
*/
|
|
19896
|
+
post: {
|
|
19897
|
+
parameters: {
|
|
19898
|
+
query?: never;
|
|
19899
|
+
header?: never;
|
|
19900
|
+
path?: never;
|
|
19901
|
+
cookie?: never;
|
|
19902
|
+
};
|
|
19903
|
+
requestBody?: {
|
|
19904
|
+
content: {
|
|
19905
|
+
"application/json": {
|
|
19906
|
+
contentHash?: string;
|
|
19907
|
+
definition?: {
|
|
19908
|
+
description?: string | null;
|
|
19909
|
+
icon?: string | null;
|
|
19910
|
+
name: string;
|
|
19911
|
+
spec?: {
|
|
19912
|
+
aiUseCases?: string[];
|
|
19913
|
+
complianceNeeds?: string[];
|
|
19914
|
+
dataSourceTypes?: string[];
|
|
19915
|
+
deploymentTargets?: string[];
|
|
19916
|
+
existingTools?: string[];
|
|
19917
|
+
importedFrom?: {
|
|
19918
|
+
importedAt: string;
|
|
19919
|
+
/** @enum {string} */
|
|
19920
|
+
source: "github" | "linear" | "chatprd" | "manual";
|
|
19921
|
+
sourceId?: string;
|
|
19922
|
+
syncEnabled?: boolean;
|
|
19923
|
+
};
|
|
19924
|
+
internalDocs?: {
|
|
19925
|
+
content?: string;
|
|
19926
|
+
resources?: {
|
|
19927
|
+
content?: string;
|
|
19928
|
+
title: string;
|
|
19929
|
+
type: string;
|
|
19930
|
+
url?: string;
|
|
19931
|
+
}[];
|
|
19932
|
+
tags?: string[];
|
|
19933
|
+
} | null;
|
|
19934
|
+
/** @enum {string} */
|
|
19935
|
+
loggingPolicy?: "default" | "on" | "off";
|
|
19936
|
+
preferredModels?: string[];
|
|
19937
|
+
productGoal?: string;
|
|
19938
|
+
/** @enum {string} */
|
|
19939
|
+
productStage?: "idea" | "prototype" | "beta" | "production" | "scaling";
|
|
19940
|
+
targetAudience?: string;
|
|
19941
|
+
techStack?: {
|
|
19942
|
+
backend?: string[];
|
|
19943
|
+
database?: string[];
|
|
19944
|
+
frontend?: string[];
|
|
19945
|
+
infrastructure?: string[];
|
|
19946
|
+
languages?: string[];
|
|
19947
|
+
};
|
|
19948
|
+
};
|
|
19949
|
+
};
|
|
19950
|
+
dryRun?: boolean;
|
|
19951
|
+
expectedRemoteHash?: string;
|
|
19952
|
+
name: string;
|
|
19953
|
+
/** @enum {string} */
|
|
19954
|
+
onConflict?: "error" | "overwrite";
|
|
19955
|
+
};
|
|
19956
|
+
};
|
|
19957
|
+
};
|
|
19958
|
+
responses: {
|
|
19959
|
+
/** @description Converge result: unchanged | created | updated | definitionRequired (hash miss — retry with the full definition) | plan (dryRun) */
|
|
19960
|
+
200: {
|
|
19961
|
+
headers: {
|
|
19962
|
+
[name: string]: unknown;
|
|
19963
|
+
};
|
|
19964
|
+
content: {
|
|
19965
|
+
"application/json": components["schemas"]["ProductEnsureResponse"];
|
|
19966
|
+
};
|
|
19967
|
+
};
|
|
19968
|
+
/** @description Validation error */
|
|
19969
|
+
400: {
|
|
19970
|
+
headers: {
|
|
19971
|
+
[name: string]: unknown;
|
|
19972
|
+
};
|
|
19973
|
+
content: {
|
|
19974
|
+
"application/json": components["schemas"]["Error"];
|
|
19975
|
+
};
|
|
19976
|
+
};
|
|
19977
|
+
/** @description Unauthorized */
|
|
19978
|
+
401: {
|
|
19979
|
+
headers: {
|
|
19980
|
+
[name: string]: unknown;
|
|
19981
|
+
};
|
|
19982
|
+
content: {
|
|
19983
|
+
"application/json": components["schemas"]["Error"];
|
|
19984
|
+
};
|
|
19985
|
+
};
|
|
19986
|
+
/** @description Insufficient permissions */
|
|
19987
|
+
403: {
|
|
19988
|
+
headers: {
|
|
19989
|
+
[name: string]: unknown;
|
|
19990
|
+
};
|
|
19991
|
+
content: {
|
|
19992
|
+
"application/json": components["schemas"]["Error"];
|
|
19993
|
+
};
|
|
19994
|
+
};
|
|
19995
|
+
/** @description Conflict: external_modification (last write was not ensure; pass onConflict: "overwrite") or remote_changed (expectedRemoteHash guard) */
|
|
19996
|
+
409: {
|
|
19997
|
+
headers: {
|
|
19998
|
+
[name: string]: unknown;
|
|
19999
|
+
};
|
|
20000
|
+
content: {
|
|
20001
|
+
"application/json": components["schemas"]["ProductEnsureConflict"];
|
|
20002
|
+
};
|
|
20003
|
+
};
|
|
20004
|
+
/** @description Submitted contentHash does not match the server-recomputed canonical hash */
|
|
20005
|
+
422: {
|
|
20006
|
+
headers: {
|
|
20007
|
+
[name: string]: unknown;
|
|
20008
|
+
};
|
|
20009
|
+
content: {
|
|
20010
|
+
"application/json": components["schemas"]["ProductEnsureHashMismatch"];
|
|
20011
|
+
};
|
|
20012
|
+
};
|
|
20013
|
+
/** @description Internal server error */
|
|
20014
|
+
500: {
|
|
20015
|
+
headers: {
|
|
20016
|
+
[name: string]: unknown;
|
|
20017
|
+
};
|
|
20018
|
+
content: {
|
|
20019
|
+
"application/json": components["schemas"]["Error"];
|
|
20020
|
+
};
|
|
20021
|
+
};
|
|
20022
|
+
};
|
|
20023
|
+
};
|
|
20024
|
+
delete?: never;
|
|
20025
|
+
options?: never;
|
|
20026
|
+
head?: never;
|
|
20027
|
+
patch?: never;
|
|
20028
|
+
trace?: never;
|
|
20029
|
+
};
|
|
19883
20030
|
"/v1/products/generation/sessions": {
|
|
19884
20031
|
parameters: {
|
|
19885
20032
|
query?: never;
|
|
@@ -20436,6 +20583,83 @@ interface paths {
|
|
|
20436
20583
|
patch?: never;
|
|
20437
20584
|
trace?: never;
|
|
20438
20585
|
};
|
|
20586
|
+
"/v1/products/pull": {
|
|
20587
|
+
parameters: {
|
|
20588
|
+
query?: never;
|
|
20589
|
+
header?: never;
|
|
20590
|
+
path?: never;
|
|
20591
|
+
cookie?: never;
|
|
20592
|
+
};
|
|
20593
|
+
/**
|
|
20594
|
+
* Pull product definition (config-as-code)
|
|
20595
|
+
* @description Return the canonical config-as-code definition and provenance for a product by name — the absorb-drift direction of the ensure protocol. The contentHash is recomputed from the live product state, so it is accurate even immediately after a dashboard edit. Returns the top-level product record only (description, icon, spec); nested capabilities/surfaces and canvas layout are not included.
|
|
20596
|
+
*/
|
|
20597
|
+
get: {
|
|
20598
|
+
parameters: {
|
|
20599
|
+
query: {
|
|
20600
|
+
name: string;
|
|
20601
|
+
};
|
|
20602
|
+
header?: never;
|
|
20603
|
+
path?: never;
|
|
20604
|
+
cookie?: never;
|
|
20605
|
+
};
|
|
20606
|
+
requestBody?: never;
|
|
20607
|
+
responses: {
|
|
20608
|
+
/** @description Canonical definition + provenance */
|
|
20609
|
+
200: {
|
|
20610
|
+
headers: {
|
|
20611
|
+
[name: string]: unknown;
|
|
20612
|
+
};
|
|
20613
|
+
content: {
|
|
20614
|
+
"application/json": components["schemas"]["ProductPullResponse"];
|
|
20615
|
+
};
|
|
20616
|
+
};
|
|
20617
|
+
/** @description Unauthorized */
|
|
20618
|
+
401: {
|
|
20619
|
+
headers: {
|
|
20620
|
+
[name: string]: unknown;
|
|
20621
|
+
};
|
|
20622
|
+
content: {
|
|
20623
|
+
"application/json": components["schemas"]["Error"];
|
|
20624
|
+
};
|
|
20625
|
+
};
|
|
20626
|
+
/** @description Insufficient permissions */
|
|
20627
|
+
403: {
|
|
20628
|
+
headers: {
|
|
20629
|
+
[name: string]: unknown;
|
|
20630
|
+
};
|
|
20631
|
+
content: {
|
|
20632
|
+
"application/json": components["schemas"]["Error"];
|
|
20633
|
+
};
|
|
20634
|
+
};
|
|
20635
|
+
/** @description No product with that name in the account scope */
|
|
20636
|
+
404: {
|
|
20637
|
+
headers: {
|
|
20638
|
+
[name: string]: unknown;
|
|
20639
|
+
};
|
|
20640
|
+
content: {
|
|
20641
|
+
"application/json": components["schemas"]["Error"];
|
|
20642
|
+
};
|
|
20643
|
+
};
|
|
20644
|
+
/** @description Internal server error */
|
|
20645
|
+
500: {
|
|
20646
|
+
headers: {
|
|
20647
|
+
[name: string]: unknown;
|
|
20648
|
+
};
|
|
20649
|
+
content: {
|
|
20650
|
+
"application/json": components["schemas"]["Error"];
|
|
20651
|
+
};
|
|
20652
|
+
};
|
|
20653
|
+
};
|
|
20654
|
+
};
|
|
20655
|
+
put?: never;
|
|
20656
|
+
post?: never;
|
|
20657
|
+
delete?: never;
|
|
20658
|
+
options?: never;
|
|
20659
|
+
head?: never;
|
|
20660
|
+
patch?: never;
|
|
20661
|
+
trace?: never;
|
|
20662
|
+
};
|
|
20439
20663
|
"/v1/products/{id}": {
|
|
20440
20664
|
parameters: {
|
|
20441
20665
|
query?: never;
|
|
@@ -36239,6 +36463,89 @@ interface components {
|
|
|
36239
36463
|
totalCount?: number;
|
|
36240
36464
|
totalPages?: number;
|
|
36241
36465
|
};
|
|
36466
|
+
ProductEnsureConflict: {
|
|
36467
|
+
/** @enum {string} */
|
|
36468
|
+
code: "external_modification" | "remote_changed";
|
|
36469
|
+
currentHash?: string | null;
|
|
36470
|
+
error: string;
|
|
36471
|
+
lastModifiedSource?: string;
|
|
36472
|
+
modifiedAt?: string | null;
|
|
36473
|
+
};
|
|
36474
|
+
ProductEnsureHashMismatch: {
|
|
36475
|
+
/** @enum {string} */
|
|
36476
|
+
code: "content_hash_mismatch";
|
|
36477
|
+
/** @description The server-computed canonical hash of the submitted definition. */
|
|
36478
|
+
contentHash: string;
|
|
36479
|
+
error: string;
|
|
36480
|
+
};
|
|
36481
|
+
ProductEnsureResponse: {
|
|
36482
|
+
/** @description Server-computed canonical content hash. Clients should echo this hash in probes. */
|
|
36483
|
+
contentHash: string;
|
|
36484
|
+
productId: string;
|
|
36485
|
+
/** @enum {string} */
|
|
36486
|
+
result: "unchanged" | "created" | "updated";
|
|
36487
|
+
} | {
|
|
36488
|
+
/** @enum {string} */
|
|
36489
|
+
result: "definitionRequired";
|
|
36490
|
+
} | {
|
|
36491
|
+
changedKeys: string[];
|
|
36492
|
+
/** @enum {string} */
|
|
36493
|
+
changes: "none" | "create" | "update";
|
|
36494
|
+
contentHash: string;
|
|
36495
|
+
productId?: string;
|
|
36496
|
+
remoteHash?: string;
|
|
36497
|
+
/** @enum {string} */
|
|
36498
|
+
result: "plan";
|
|
36499
|
+
};
|
|
36500
|
+
ProductPullResponse: {
|
|
36501
|
+
contentHash: string;
|
|
36502
|
+
definition: {
|
|
36503
|
+
description?: string | null;
|
|
36504
|
+
icon?: string | null;
|
|
36505
|
+
name: string;
|
|
36506
|
+
spec?: {
|
|
36507
|
+
aiUseCases?: string[];
|
|
36508
|
+
complianceNeeds?: string[];
|
|
36509
|
+
dataSourceTypes?: string[];
|
|
36510
|
+
deploymentTargets?: string[];
|
|
36511
|
+
existingTools?: string[];
|
|
36512
|
+
importedFrom?: {
|
|
36513
|
+
importedAt: string;
|
|
36514
|
+
/** @enum {string} */
|
|
36515
|
+
source: "github" | "linear" | "chatprd" | "manual";
|
|
36516
|
+
sourceId?: string;
|
|
36517
|
+
syncEnabled?: boolean;
|
|
36518
|
+
};
|
|
36519
|
+
internalDocs?: {
|
|
36520
|
+
content?: string;
|
|
36521
|
+
resources?: {
|
|
36522
|
+
content?: string;
|
|
36523
|
+
title: string;
|
|
36524
|
+
type: string;
|
|
36525
|
+
url?: string;
|
|
36526
|
+
}[];
|
|
36527
|
+
tags?: string[];
|
|
36528
|
+
} | null;
|
|
36529
|
+
/** @enum {string} */
|
|
36530
|
+
loggingPolicy?: "default" | "on" | "off";
|
|
36531
|
+
preferredModels?: string[];
|
|
36532
|
+
productGoal?: string;
|
|
36533
|
+
/** @enum {string} */
|
|
36534
|
+
productStage?: "idea" | "prototype" | "beta" | "production" | "scaling";
|
|
36535
|
+
targetAudience?: string;
|
|
36536
|
+
techStack?: {
|
|
36537
|
+
backend?: string[];
|
|
36538
|
+
database?: string[];
|
|
36539
|
+
frontend?: string[];
|
|
36540
|
+
infrastructure?: string[];
|
|
36541
|
+
languages?: string[];
|
|
36542
|
+
};
|
|
36543
|
+
};
|
|
36544
|
+
};
|
|
36545
|
+
lastModifiedSource: string | null;
|
|
36546
|
+
productId: string;
|
|
36547
|
+
updatedAt: string | null;
|
|
36548
|
+
};
|
|
36242
36549
|
RecordFilterCondition: {
|
|
36243
36550
|
field: string;
|
|
36244
36551
|
/** @enum {string} */
|
|
@@ -40536,6 +40843,188 @@ declare class ToolsNamespace {
|
|
|
40536
40843
|
pull(name: string): Promise<ToolPullResult>;
|
|
40537
40844
|
}
|
|
40538
40845
|
|
|
40846
|
+
/**
|
|
40847
|
+
* Product config-as-code: `defineProduct`, `products.ensure`, `products.pull`.
|
|
40848
|
+
*
|
|
40849
|
+
* The deploy-time convergence postcondition for the top-level product record:
|
|
40850
|
+
* "make the platform's definition of this product match this object; no-op if
|
|
40851
|
+
* it already does." Identity is name + account scope (the API key's org, else
|
|
40852
|
+
* personal); environment is whichever API the client points at. `ensure` never
|
|
40853
|
+
* deletes, and renaming a definition orphans the old product and creates a new
|
|
40854
|
+
* one.
|
|
40855
|
+
*
|
|
40856
|
+
* SCOPE (v1): the converge covers the TOP-LEVEL product record only — name
|
|
40857
|
+
* (identity), description, icon, and the `spec` (ProductSpec). It does NOT
|
|
40858
|
+
* converge nested capabilities/surfaces/tools/records/schedules, and it does
|
|
40859
|
+
* NOT converge `canvas` (architecture-viewer UI layout state).
|
|
40860
|
+
*
|
|
40861
|
+
* Wire protocol (POST /v1/products/ensure — APQ-shaped, both APQ scars fixed):
|
|
40862
|
+
* 1. Hash-only probe `{ name, contentHash }`. A match is
|
|
40863
|
+
* `{ result: 'unchanged' }`; a miss is a NORMAL 200
|
|
40864
|
+
* `{ result: 'definitionRequired' }`, never an error.
|
|
40865
|
+
* 2. On a miss, retry with the full `definition`. The server recomputes the
|
|
40866
|
+
* canonical hash itself and returns it on every response — this SDK
|
|
40867
|
+
* echoes the server's hash (memoized per client instance) rather than
|
|
40868
|
+
* trusting its own serialization.
|
|
40869
|
+
*
|
|
40870
|
+
* Unlike agents/flows, products have NO version snapshots: there is no
|
|
40871
|
+
* `release: 'publish'` option and no `versionId` on the result.
|
|
40872
|
+
*
|
|
40873
|
+
* The content hash is the canonical product hash (`computeProductContentHash` —
|
|
40874
|
+
* mirrored from `packages/shared/src/utils/product-content-hash.ts`; this
|
|
40875
|
+
* package is dependency-free by convention) over `{ description, icon, spec }`.
|
|
40876
|
+
* `name` is identity, not content, so it is excluded from the hash; `canvas` is
|
|
40877
|
+
* UI state and is excluded too.
|
|
40878
|
+
*
|
|
40879
|
+
* See docs/adr/0003-agent-config-as-code-ensure.md for the design rationale.
|
|
40880
|
+
*/
|
|
40881
|
+
|
|
40882
|
+
/** Canonical normalized form of a product definition (name + canvas excluded). */
|
|
40883
|
+
declare function normalizeProductDefinition(definition: ProductContentInput): {
|
|
40884
|
+
description?: string;
|
|
40885
|
+
icon?: string;
|
|
40886
|
+
spec: Record<string, unknown>;
|
|
40887
|
+
};
|
|
40888
|
+
/** SHA-256 (hex) over the canonical normalized product definition. */
|
|
40889
|
+
declare function computeProductContentHash(definition: ProductContentInput): Promise<string>;
|
|
40890
|
+
interface ProductContentInput {
|
|
40891
|
+
description?: string | null;
|
|
40892
|
+
icon?: string | null;
|
|
40893
|
+
spec?: Record<string, unknown> | null;
|
|
40894
|
+
}
|
|
40895
|
+
/** `defineProduct` input: identity (name) + the convergeable content fields. */
|
|
40896
|
+
interface DefineProductInput {
|
|
40897
|
+
name: string;
|
|
40898
|
+
description?: string | null;
|
|
40899
|
+
icon?: string | null;
|
|
40900
|
+
spec?: Record<string, unknown> | null;
|
|
40901
|
+
}
|
|
40902
|
+
/** The canonical (wire) definition produced by `defineProduct`. */
|
|
40903
|
+
interface ProductDefinition {
|
|
40904
|
+
name: string;
|
|
40905
|
+
description?: string | null;
|
|
40906
|
+
icon?: string | null;
|
|
40907
|
+
spec?: Record<string, unknown> | null;
|
|
40908
|
+
}
|
|
40909
|
+
/**
|
|
40910
|
+
* Pure-local declarative constructor for a product definition. No I/O.
|
|
40911
|
+
* Validates structure and rejects unknown fields. Deep validation (spec shape)
|
|
40912
|
+
* happens server-side at ensure time, mirroring the create/update routes.
|
|
40913
|
+
*
|
|
40914
|
+
* @example
|
|
40915
|
+
* ```typescript
|
|
40916
|
+
* const product = defineProduct({
|
|
40917
|
+
* name: 'Support Copilot',
|
|
40918
|
+
* description: 'An AI support assistant',
|
|
40919
|
+
* icon: '🤖',
|
|
40920
|
+
* spec: { productGoal: 'Deflect tier-1 tickets', productStage: 'beta' },
|
|
40921
|
+
* })
|
|
40922
|
+
* ```
|
|
40923
|
+
*/
|
|
40924
|
+
declare function defineProduct(input: DefineProductInput): ProductDefinition;
|
|
40925
|
+
interface EnsureProductOptions {
|
|
40926
|
+
/** Plan without writing (the CI drift gate). Sends the full definition. */
|
|
40927
|
+
dryRun?: boolean;
|
|
40928
|
+
/**
|
|
40929
|
+
* What to do when the product's last write came from the dashboard/API
|
|
40930
|
+
* rather than ensure. Default 'error' (HTTP 409 → ProductEnsureConflictError).
|
|
40931
|
+
*/
|
|
40932
|
+
onConflict?: 'error' | 'overwrite';
|
|
40933
|
+
/**
|
|
40934
|
+
* TOCTOU guard binding a dry run to its apply: the write only proceeds if
|
|
40935
|
+
* the remote still hashes to this value (409 remote_changed otherwise).
|
|
40936
|
+
*/
|
|
40937
|
+
expectedRemoteHash?: string;
|
|
40938
|
+
/** Implies dryRun; throws ProductDriftError unless the plan is 'none'. */
|
|
40939
|
+
expectNoChanges?: boolean;
|
|
40940
|
+
}
|
|
40941
|
+
interface EnsureProductConverged {
|
|
40942
|
+
result: 'unchanged' | 'created' | 'updated';
|
|
40943
|
+
productId: string;
|
|
40944
|
+
/** The server-computed canonical hash (echo this — never your own). */
|
|
40945
|
+
contentHash: string;
|
|
40946
|
+
}
|
|
40947
|
+
interface EnsureProductPlan {
|
|
40948
|
+
result: 'plan';
|
|
40949
|
+
changes: 'none' | 'create' | 'update';
|
|
40950
|
+
changedKeys: string[];
|
|
40951
|
+
contentHash: string;
|
|
40952
|
+
remoteHash?: string;
|
|
40953
|
+
productId?: string;
|
|
40954
|
+
}
|
|
40955
|
+
type EnsureProductResult = EnsureProductConverged | EnsureProductPlan;
|
|
40956
|
+
interface ProductPullResult {
|
|
40957
|
+
productId: string;
|
|
40958
|
+
definition: ProductDefinition;
|
|
40959
|
+
contentHash: string;
|
|
40960
|
+
lastModifiedSource: string | null;
|
|
40961
|
+
updatedAt: string | null;
|
|
40962
|
+
}
|
|
40963
|
+
/** A 409 from the ensure protocol (external_modification or remote_changed). */
|
|
40964
|
+
declare class ProductEnsureConflictError extends Error {
|
|
40965
|
+
readonly code: 'external_modification' | 'remote_changed';
|
|
40966
|
+
readonly lastModifiedSource?: string;
|
|
40967
|
+
readonly modifiedAt?: string | null;
|
|
40968
|
+
readonly currentHash?: string | null;
|
|
40969
|
+
constructor(body: {
|
|
40970
|
+
error?: string;
|
|
40971
|
+
code: 'external_modification' | 'remote_changed';
|
|
40972
|
+
lastModifiedSource?: string;
|
|
40973
|
+
modifiedAt?: string | null;
|
|
40974
|
+
currentHash?: string | null;
|
|
40975
|
+
});
|
|
40976
|
+
}
|
|
40977
|
+
/** Thrown by `ensure(def, { expectNoChanges: true })` when drift is detected. */
|
|
40978
|
+
declare class ProductDriftError extends Error {
|
|
40979
|
+
readonly plan: EnsureProductPlan;
|
|
40980
|
+
constructor(plan: EnsureProductPlan);
|
|
40981
|
+
}
|
|
40982
|
+
|
|
40983
|
+
/**
|
|
40984
|
+
* ProductsNamespace — config-as-code operations for products.
|
|
40985
|
+
*
|
|
40986
|
+
* `products.ensure` is the deploy-time, non-executing converge (create-or-update
|
|
40987
|
+
* a product by name + account scope); `products.pull` is the absorb-drift
|
|
40988
|
+
* direction. Both delegate to the implementation in `products-ensure.ts`.
|
|
40989
|
+
*
|
|
40990
|
+
* SCOPE (v1): the converge covers the top-level product record only
|
|
40991
|
+
* (description, icon, spec). Nested capabilities/surfaces/tools and the
|
|
40992
|
+
* `canvas` UI layout state are not converged.
|
|
40993
|
+
*/
|
|
40994
|
+
|
|
40995
|
+
declare class ProductsNamespace {
|
|
40996
|
+
private getClient;
|
|
40997
|
+
constructor(getClient: () => RuntypeClient$1);
|
|
40998
|
+
/**
|
|
40999
|
+
* Idempotently converge a `defineProduct` definition onto the platform.
|
|
41000
|
+
* Hash-first: the steady state is one tiny probe request. Creates or updates
|
|
41001
|
+
* the top-level product record; never deletes. Identity is name + account
|
|
41002
|
+
* scope.
|
|
41003
|
+
*
|
|
41004
|
+
* @example
|
|
41005
|
+
* ```typescript
|
|
41006
|
+
* const product = defineProduct({
|
|
41007
|
+
* name: 'Support Copilot',
|
|
41008
|
+
* description: 'An AI support assistant',
|
|
41009
|
+
* icon: '🤖',
|
|
41010
|
+
* spec: { productGoal: 'Deflect tier-1 tickets', productStage: 'beta' },
|
|
41011
|
+
* })
|
|
41012
|
+
*
|
|
41013
|
+
* // Converge (CI/deploy).
|
|
41014
|
+
* const result = await Runtype.products.ensure(product)
|
|
41015
|
+
*
|
|
41016
|
+
* // PR drift gate.
|
|
41017
|
+
* await Runtype.products.ensure(product, { expectNoChanges: true })
|
|
41018
|
+
* ```
|
|
41019
|
+
*/
|
|
41020
|
+
ensure(definition: ProductDefinition, options?: EnsureProductOptions): Promise<EnsureProductResult>;
|
|
41021
|
+
/**
|
|
41022
|
+
* Pull the canonical definition + provenance for a product by name — the
|
|
41023
|
+
* absorb-drift direction of the ensure protocol.
|
|
41024
|
+
*/
|
|
41025
|
+
pull(name: string): Promise<ProductPullResult>;
|
|
41026
|
+
}
|
|
41027
|
+
|
|
40539
41028
|
/**
|
|
40540
41029
|
* Runtype - The unified SDK client for building and executing flows, batches, evals, and prompts
|
|
40541
41030
|
*
|
|
@@ -40837,6 +41326,35 @@ declare class Runtype {
|
|
|
40837
41326
|
* ```
|
|
40838
41327
|
*/
|
|
40839
41328
|
static get tools(): ToolsNamespace;
|
|
41329
|
+
/**
|
|
41330
|
+
* Products namespace - Product config-as-code (define / ensure / pull)
|
|
41331
|
+
*
|
|
41332
|
+
* Converges the top-level product record (description, icon, spec). Nested
|
|
41333
|
+
* capabilities/surfaces/tools and the canvas UI layout state are not
|
|
41334
|
+
* converged by ensure.
|
|
41335
|
+
*
|
|
41336
|
+
* @example
|
|
41337
|
+
* ```typescript
|
|
41338
|
+
* import { defineProduct, Runtype } from '@runtypelabs/sdk'
|
|
41339
|
+
*
|
|
41340
|
+
* const product = defineProduct({
|
|
41341
|
+
* name: 'Support Copilot',
|
|
41342
|
+
* description: 'An AI support assistant',
|
|
41343
|
+
* icon: '🤖',
|
|
41344
|
+
* spec: { productGoal: 'Deflect tier-1 tickets', productStage: 'beta' },
|
|
41345
|
+
* })
|
|
41346
|
+
*
|
|
41347
|
+
* // Converge at deploy time (idempotent; one tiny probe in steady state)
|
|
41348
|
+
* await Runtype.products.ensure(product)
|
|
41349
|
+
*
|
|
41350
|
+
* // CI drift gate
|
|
41351
|
+
* await Runtype.products.ensure(product, { expectNoChanges: true })
|
|
41352
|
+
*
|
|
41353
|
+
* // Absorb a dashboard edit back into the repo
|
|
41354
|
+
* const { definition } = await Runtype.products.pull('Support Copilot')
|
|
41355
|
+
* ```
|
|
41356
|
+
*/
|
|
41357
|
+
static get products(): ProductsNamespace;
|
|
40840
41358
|
}
|
|
40841
41359
|
|
|
40842
41360
|
/**
|
|
@@ -45235,4 +45753,4 @@ declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | u
|
|
|
45235
45753
|
declare function getDefaultPlanPath(taskName: string): string;
|
|
45236
45754
|
declare function sanitizeTaskSlug(taskName: string): string;
|
|
45237
45755
|
|
|
45238
|
-
export { type Agent, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentDefinition, type AgentDefinitionConfig, AgentDriftError, AgentEnsureConflictError, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMediaEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentPullResult, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, type AgentStreamEvent, 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, AgentsNamespace, AnalyticsEndpoint, type ApiClient, type ApiKey, ApiKeysEndpoint, type ApiResponse, type App, type AppManifest, type AppVersion, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, AppsEndpoint, type AssetReferenceContentPart, type AttachRuntimeToolsOptions, type BaseAgentEvent, BatchBuilder, type BatchClient, type BatchListParams, type BatchOptions, type BatchRequest, type BatchResult, type BatchScheduleConfig, type BatchStatus, BatchesNamespace, BillingEndpoint, type BillingSpendAnalyticsParams, type BindSkillInput, 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 CreateAppRequest, 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, DEFAULT_RECOVERY_AFTER_EMPTY_SESSIONS, DEFAULT_STALL_STOP_AFTER, type DefineAgentInput, type DefineFlowInput, type DefineToolInput, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DiscoveredModel, type DispatchClient, DispatchEndpoint, type DispatchEnvironment, type DispatchEvent, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type EnsureAgentConverged, type EnsureAgentOptions, type EnsureAgentPlan, type EnsureAgentResult, type EnsureFlowConverged, type EnsureFlowOptions, type EnsureFlowPlan, type EnsureFlowResult, type EnsureToolConverged, type EnsureToolOptions, type EnsureToolPlan, type EnsureToolResult, 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 FallbackTrigger, type FallbackTriggerType, 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 FlowDefinition, type FlowDefinitionStep, FlowDriftError, FlowEnsureConflictError, type FlowErrorEvent, type FlowFallback, type FlowListItem, type FlowPausedEvent, type FlowPullResult, FlowResult, type FlowStartEvent, type FlowStep, type FlowStepDefinition, type FlowStepType, FlowStepsEndpoint, type FlowStreamEvent, type FlowSummary, type FlowToolConfig, type FlowValidationClient, type FlowValidationIssue, type FlowValidationResult, 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, LEDGER_ARTIFACT_LINE_PREFIX, 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 MessageFallback, 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 ProviderKeyModel, ProviderKeysEndpoint, type ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordConfig$1 as RecordConfig, type RecordCostAggregation, type RecordCostModelBreakdown, type RecordFilter, type RecordFilterCondition, type RecordFilterGroup, type RecordFilterOperator, type RecordListItem, type RecordListParams, type RecordStepResult, type RecordStepResultsParams, type RecordStepResultsResponse, type RecordWriteResponse, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContextSummaryEntry, type RunTaskContinuation, type RunTaskOffloadRecorder, 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, type AgentSkillBinding as RuntypeAgentSkillBinding, 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 Skill as RuntypeSkill, type SkillCapabilities as RuntypeSkillCapabilities, type SkillFrontmatter as RuntypeSkillFrontmatter, type SkillManifest as RuntypeSkillManifest, type SkillProposal as RuntypeSkillProposal, type SkillRuntypeExtensions as RuntypeSkillRuntypeExtensions, type SkillVersion as RuntypeSkillVersion, 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 SkillListPage, type SkillListPagination, type SkillListParams, type SkillManifestInput, type SkillMarkdownInput, type SkillOrigin, type SkillProposalStatus, SkillProposalsNamespace, type SkillStatus, type SkillTrustLevel, type SkillVersionStatus, type SkillWithVersion, type SkillWriteInput, SkillsNamespace, type SlackInstallRequest, type StepCompleteEvent, type StepDeltaEvent, type StepFallback, type StepFieldMeta, type StepStartEvent, type StepWaitingLocalEvent, type StreamCallbacks, type StreamEvent, type StreamEventOf, type SubagentToolConfig, type Surface, type SurfaceListParams, SurfacesEndpoint, type TextContentPart, type Tool, type ToolConfig, type ToolDefinition, type ToolDefinitionType, ToolDriftError, ToolEnsureConflictError, type ToolPullResult, type ToolWithValidation, type ToolsConfig, ToolsEndpoint, ToolsNamespace, type TransformDataStepConfig$1 as TransformDataStepConfig, type UpdateAppRequest, type UpdateClientTokenRequest, type UpdateConversationRequest, type UpdatePromptData, type UpdateProviderKeyRequest, type UpdateScheduleRequest, type UpdateSecretRequest, type UpdateToolRequest, type UpdatedFlow, 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 WorkflowCompileDeps, type WorkflowCompletionCriteriaConfig, type WorkflowConfig, type WorkflowConfigFactory, type WorkflowContext, type WorkflowDefinition, type WorkflowHookEntry, type WorkflowHookKind, type WorkflowHookRef, type WorkflowHookSignatures, type WorkflowMilestoneConfig, type WorkflowPhase, type WorkflowPolicyConfig, type WorkflowRecoveryConfig, type WorkflowSlot, type WorkflowStallPolicy, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildEmptySessionNudge, buildGeneratedRuntimeToolGateOutput, buildLedgerOffloadReference, buildPolicyGuidance, buildSendViewOffloadMarker, compileWorkflowConfig, computeAgentContentHash, computeFlowContentHash, computeToolContentHash, createClient, createExternalTool, defaultWorkflow, defaultWorkflowConfig, defineAgent, defineFlow, definePlaybook, defineTool, deployWorkflow, ensureDefaultWorkflowHooks, evaluateGeneratedRuntimeToolProposal, extractDeclaredToolResultChars, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, interpolateWorkflowTemplate, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, isWorkflowHookRef, listWorkflowHooks, normalizeAgentDefinition, normalizeCandidatePath, normalizeToolDefinition, parseFinalBuffer, parseLedgerArtifactRelativePath, parseOffloadedOutputId, parseSSEChunk, processStream, registerWorkflowHook, resolveStallStopAfter, resolveWorkflowHook, sanitizeTaskSlug, shouldInjectEmptySessionNudge, shouldRequestModelEscalation, streamEvents, unregisterWorkflowHook };
|
|
45756
|
+
export { type Agent, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentDefinition, type AgentDefinitionConfig, AgentDriftError, AgentEnsureConflictError, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMediaEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentPullResult, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, type AgentStreamEvent, 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, AgentsNamespace, AnalyticsEndpoint, type ApiClient, type ApiKey, ApiKeysEndpoint, type ApiResponse, type App, type AppManifest, type AppVersion, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, AppsEndpoint, type AssetReferenceContentPart, type AttachRuntimeToolsOptions, type BaseAgentEvent, BatchBuilder, type BatchClient, type BatchListParams, type BatchOptions, type BatchRequest, type BatchResult, type BatchScheduleConfig, type BatchStatus, BatchesNamespace, BillingEndpoint, type BillingSpendAnalyticsParams, type BindSkillInput, 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 CreateAppRequest, 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, DEFAULT_RECOVERY_AFTER_EMPTY_SESSIONS, DEFAULT_STALL_STOP_AFTER, type DefineAgentInput, type DefineFlowInput, type DefineProductInput, type DefineToolInput, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DiscoveredModel, type DispatchClient, DispatchEndpoint, type DispatchEnvironment, type DispatchEvent, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type EnsureAgentConverged, type EnsureAgentOptions, type EnsureAgentPlan, type EnsureAgentResult, type EnsureFlowConverged, type EnsureFlowOptions, type EnsureFlowPlan, type EnsureFlowResult, type EnsureProductConverged, type EnsureProductOptions, type EnsureProductPlan, type EnsureProductResult, type EnsureToolConverged, type EnsureToolOptions, type EnsureToolPlan, type EnsureToolResult, 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 FallbackTrigger, type FallbackTriggerType, 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 FlowDefinition, type FlowDefinitionStep, FlowDriftError, FlowEnsureConflictError, type FlowErrorEvent, type FlowFallback, type FlowListItem, type FlowPausedEvent, type FlowPullResult, FlowResult, type FlowStartEvent, type FlowStep, type FlowStepDefinition, type FlowStepType, FlowStepsEndpoint, type FlowStreamEvent, type FlowSummary, type FlowToolConfig, type FlowValidationClient, type FlowValidationIssue, type FlowValidationResult, 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, LEDGER_ARTIFACT_LINE_PREFIX, 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 MessageFallback, type Metadata, type ModelConfig, ModelConfigsEndpoint, type ModelFallback, type ModelOverride, type ModelUsageDetail, type ModelUsageQueryParams, type ModelUsageResponse, type ModelUsageSummary, type ModelUsageTimeSeries, type PaginationResponse, type ProductDefinition, ProductDriftError, ProductEnsureConflictError, type ProductPullResult, ProductsNamespace, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptRunOptions, PromptRunner, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ProviderKeyModel, ProviderKeysEndpoint, type ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordConfig$1 as RecordConfig, type RecordCostAggregation, type RecordCostModelBreakdown, type RecordFilter, type RecordFilterCondition, type RecordFilterGroup, type RecordFilterOperator, type RecordListItem, type RecordListParams, type RecordStepResult, type RecordStepResultsParams, type RecordStepResultsResponse, type RecordWriteResponse, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContextSummaryEntry, type RunTaskContinuation, type RunTaskOffloadRecorder, 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, type AgentSkillBinding as RuntypeAgentSkillBinding, 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 Skill as RuntypeSkill, type SkillCapabilities as RuntypeSkillCapabilities, type SkillFrontmatter as RuntypeSkillFrontmatter, type SkillManifest as RuntypeSkillManifest, type SkillProposal as RuntypeSkillProposal, type SkillRuntypeExtensions as RuntypeSkillRuntypeExtensions, type SkillVersion as RuntypeSkillVersion, 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 SkillListPage, type SkillListPagination, type SkillListParams, type SkillManifestInput, type SkillMarkdownInput, type SkillOrigin, type SkillProposalStatus, SkillProposalsNamespace, type SkillStatus, type SkillTrustLevel, type SkillVersionStatus, type SkillWithVersion, type SkillWriteInput, SkillsNamespace, type SlackInstallRequest, type StepCompleteEvent, type StepDeltaEvent, type StepFallback, type StepFieldMeta, type StepStartEvent, type StepWaitingLocalEvent, type StreamCallbacks, type StreamEvent, type StreamEventOf, type SubagentToolConfig, type Surface, type SurfaceListParams, SurfacesEndpoint, type TextContentPart, type Tool, type ToolConfig, type ToolDefinition, type ToolDefinitionType, ToolDriftError, ToolEnsureConflictError, type ToolPullResult, type ToolWithValidation, type ToolsConfig, ToolsEndpoint, ToolsNamespace, type TransformDataStepConfig$1 as TransformDataStepConfig, type UpdateAppRequest, type UpdateClientTokenRequest, type UpdateConversationRequest, type UpdatePromptData, type UpdateProviderKeyRequest, type UpdateScheduleRequest, type UpdateSecretRequest, type UpdateToolRequest, type UpdatedFlow, 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 WorkflowCompileDeps, type WorkflowCompletionCriteriaConfig, type WorkflowConfig, type WorkflowConfigFactory, type WorkflowContext, type WorkflowDefinition, type WorkflowHookEntry, type WorkflowHookKind, type WorkflowHookRef, type WorkflowHookSignatures, type WorkflowMilestoneConfig, type WorkflowPhase, type WorkflowPolicyConfig, type WorkflowRecoveryConfig, type WorkflowSlot, type WorkflowStallPolicy, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildEmptySessionNudge, buildGeneratedRuntimeToolGateOutput, buildLedgerOffloadReference, buildPolicyGuidance, buildSendViewOffloadMarker, compileWorkflowConfig, computeAgentContentHash, computeFlowContentHash, computeProductContentHash, computeToolContentHash, createClient, createExternalTool, defaultWorkflow, defaultWorkflowConfig, defineAgent, defineFlow, definePlaybook, defineProduct, defineTool, deployWorkflow, ensureDefaultWorkflowHooks, evaluateGeneratedRuntimeToolProposal, extractDeclaredToolResultChars, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, interpolateWorkflowTemplate, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, isWorkflowHookRef, listWorkflowHooks, normalizeAgentDefinition, normalizeCandidatePath, normalizeProductDefinition, normalizeToolDefinition, parseFinalBuffer, parseLedgerArtifactRelativePath, parseOffloadedOutputId, parseSSEChunk, processStream, registerWorkflowHook, resolveStallStopAfter, resolveWorkflowHook, sanitizeTaskSlug, shouldInjectEmptySessionNudge, shouldRequestModelEscalation, streamEvents, unregisterWorkflowHook };
|