@runtypelabs/sdk 4.19.1 → 4.20.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
@@ -6422,6 +6422,7 @@ interface paths {
6422
6422
  } & {
6423
6423
  [key: string]: unknown;
6424
6424
  };
6425
+ untrustedContentHint?: boolean;
6425
6426
  }[];
6426
6427
  clientToolsFingerprint?: string;
6427
6428
  inputs?: {
@@ -8324,7 +8325,10 @@ interface paths {
8324
8325
  */
8325
8326
  post: {
8326
8327
  parameters: {
8327
- query?: never;
8328
+ query?: {
8329
+ /** @description Set to `unified` to receive the opt-in Persona 4.0 unified SSE vocabulary. Omit for the legacy dispatch SSE event union. */
8330
+ events?: "unified";
8331
+ };
8328
8332
  header?: never;
8329
8333
  path?: never;
8330
8334
  cookie?: never;
@@ -8344,6 +8348,7 @@ interface paths {
8344
8348
  };
8345
8349
  content: {
8346
8350
  "text/event-stream": unknown;
8351
+ "text/event-stream; events=unified": unknown;
8347
8352
  };
8348
8353
  };
8349
8354
  /** @description Validation error */
@@ -8432,7 +8437,10 @@ interface paths {
8432
8437
  */
8433
8438
  post: {
8434
8439
  parameters: {
8435
- query?: never;
8440
+ query?: {
8441
+ /** @description Set to `unified` to receive the opt-in Persona 4.0 unified SSE vocabulary. Omit for the legacy dispatch SSE event union. */
8442
+ events?: "unified";
8443
+ };
8436
8444
  header?: never;
8437
8445
  path?: never;
8438
8446
  cookie?: never;
@@ -8457,6 +8465,7 @@ interface paths {
8457
8465
  };
8458
8466
  content: {
8459
8467
  "text/event-stream": unknown;
8468
+ "text/event-stream; events=unified": unknown;
8460
8469
  };
8461
8470
  };
8462
8471
  /** @description Validation error */
@@ -8518,7 +8527,10 @@ interface paths {
8518
8527
  */
8519
8528
  post: {
8520
8529
  parameters: {
8521
- query?: never;
8530
+ query?: {
8531
+ /** @description Set to `unified` to receive the opt-in Persona 4.0 unified SSE vocabulary. Omit for the legacy dispatch SSE event union. */
8532
+ events?: "unified";
8533
+ };
8522
8534
  header?: never;
8523
8535
  path?: never;
8524
8536
  cookie?: never;
@@ -8543,6 +8555,7 @@ interface paths {
8543
8555
  };
8544
8556
  content: {
8545
8557
  "text/event-stream": unknown;
8558
+ "text/event-stream; events=unified": unknown;
8546
8559
  };
8547
8560
  };
8548
8561
  /** @description Validation error */
@@ -8604,7 +8617,10 @@ interface paths {
8604
8617
  */
8605
8618
  post: {
8606
8619
  parameters: {
8607
- query?: never;
8620
+ query?: {
8621
+ /** @description Set to `unified` to receive the opt-in Persona 4.0 unified SSE vocabulary. Omit for the legacy dispatch SSE event union. */
8622
+ events?: "unified";
8623
+ };
8608
8624
  header?: never;
8609
8625
  path?: never;
8610
8626
  cookie?: never;
@@ -8636,6 +8652,7 @@ interface paths {
8636
8652
  };
8637
8653
  content: {
8638
8654
  "text/event-stream": unknown;
8655
+ "text/event-stream; events=unified": unknown;
8639
8656
  };
8640
8657
  };
8641
8658
  /** @description Validation error */
@@ -20064,7 +20081,7 @@ interface paths {
20064
20081
  put?: never;
20065
20082
  /**
20066
20083
  * Ensure full product (config-as-code converge of the whole FPO)
20067
- * @description Idempotently converge an entire Full Product Object (the nested product graph) in one shot. Fans out to the per-entity ensure services in dependency order (product → capability backing flows/agents → capability-as-tool composition → capability links → surfaces + surface items → records → schedules → secret bindings), returning a per-entity report. Identity is the product name + account scope. NON-atomic by design: a per-entity failure is reported in `entities[].result = "failed"` (and `hasFailures`) and a re-run self-heals; only a top-level product reject aborts. Set dryRun to plan without writing. Whole-FPO fast-probe, pull-fpo, and prune are not yet supported (PR3).
20084
+ * @description Idempotently converge an entire Full Product Object (the nested product graph) in one shot. Fans out to the per-entity ensure services in dependency order (product → capability backing flows/agents → capability-as-tool composition → capability links → surfaces + surface items → records → schedules → secret bindings), returning a per-entity report. Identity is the product name + account scope. NON-atomic by design: a per-entity failure is reported in `entities[].result = "failed"` (and `hasFailures`) and a re-run self-heals; only a top-level product reject aborts. Set dryRun to plan without writing. Set prune to remove product-scoped capabilities/surfaces (and their items) absent from the FPO (account-scoped flows/agents/tools/records are never removed). Whole-FPO fast-probe is not yet supported (PR3).
20068
20085
  */
20069
20086
  post: {
20070
20087
  parameters: {
@@ -20087,6 +20104,8 @@ interface paths {
20087
20104
  * @enum {string}
20088
20105
  */
20089
20106
  onConflict?: "error" | "overwrite";
20107
+ /** @description Opt-in removal of product-scoped capabilities/surfaces (and their items) absent from the FPO, after the converge passes. NEVER touches account-scoped flows/agents/tools/records. Honors createPolicy:"skip". With dryRun, reports would-be removals as `pruned` plan rows. */
20108
+ prune?: boolean;
20090
20109
  };
20091
20110
  };
20092
20111
  };
@@ -20795,6 +20814,83 @@ interface paths {
20795
20814
  patch?: never;
20796
20815
  trace?: never;
20797
20816
  };
20817
+ "/v1/products/pull-fpo": {
20818
+ parameters: {
20819
+ query?: never;
20820
+ header?: never;
20821
+ path?: never;
20822
+ cookie?: never;
20823
+ };
20824
+ /**
20825
+ * Pull full product (reconstruct the whole FPO from the live graph)
20826
+ * @description Reconstruct a self-contained Full Product Object from the live product graph — the absorb-drift direction of ensure-fpo. Composes the per-entity pulls (product, backing flows/agents, surfaces) and mints deterministic FPO-local ids, so feeding the result back into POST /products/ensure-fpo converges to `unchanged`. records/schedules/secrets are NOT reconstructed and `tools` is emitted empty (tool refs are portable `tool:<name>`); see `warnings` for per-pull caveats. The contentHash is recomputed from the live graph, so it is accurate immediately after a dashboard edit.
20827
+ */
20828
+ get: {
20829
+ parameters: {
20830
+ query: {
20831
+ name: string;
20832
+ };
20833
+ header?: never;
20834
+ path?: never;
20835
+ cookie?: never;
20836
+ };
20837
+ requestBody?: never;
20838
+ responses: {
20839
+ /** @description Reconstructed FPO + canonical content hash */
20840
+ 200: {
20841
+ headers: {
20842
+ [name: string]: unknown;
20843
+ };
20844
+ content: {
20845
+ "application/json": components["schemas"]["ProductFpoPullResponse"];
20846
+ };
20847
+ };
20848
+ /** @description Unauthorized */
20849
+ 401: {
20850
+ headers: {
20851
+ [name: string]: unknown;
20852
+ };
20853
+ content: {
20854
+ "application/json": components["schemas"]["Error"];
20855
+ };
20856
+ };
20857
+ /** @description Insufficient permissions */
20858
+ 403: {
20859
+ headers: {
20860
+ [name: string]: unknown;
20861
+ };
20862
+ content: {
20863
+ "application/json": components["schemas"]["Error"];
20864
+ };
20865
+ };
20866
+ /** @description No product with that name in the account scope */
20867
+ 404: {
20868
+ headers: {
20869
+ [name: string]: unknown;
20870
+ };
20871
+ content: {
20872
+ "application/json": components["schemas"]["Error"];
20873
+ };
20874
+ };
20875
+ /** @description Internal server error */
20876
+ 500: {
20877
+ headers: {
20878
+ [name: string]: unknown;
20879
+ };
20880
+ content: {
20881
+ "application/json": components["schemas"]["Error"];
20882
+ };
20883
+ };
20884
+ };
20885
+ };
20886
+ put?: never;
20887
+ post?: never;
20888
+ delete?: never;
20889
+ options?: never;
20890
+ head?: never;
20891
+ patch?: never;
20892
+ trace?: never;
20893
+ };
20798
20894
  "/v1/products/{id}": {
20799
20895
  parameters: {
20800
20896
  query?: never;
@@ -37263,7 +37359,7 @@ interface components {
37263
37359
  contentHash: string;
37264
37360
  entities: {
37265
37361
  error?: string;
37266
- /** @description Resulting platform id (absent on failure/skip). */
37362
+ /** @description Resulting platform id (absent on failure/skip/pruned). */
37267
37363
  id?: string;
37268
37364
  /** @enum {string} */
37269
37365
  kind: "product" | "flow" | "agent" | "capability" | "tool" | "surface" | "record" | "schedule";
@@ -37271,7 +37367,7 @@ interface components {
37271
37367
  /** @description The FPO-local ref (capability id / entity name) for correlation. */
37272
37368
  ref: string;
37273
37369
  /** @enum {string} */
37274
- result: "created" | "updated" | "unchanged" | "failed" | "skipped";
37370
+ result: "created" | "updated" | "unchanged" | "failed" | "skipped" | "pruned";
37275
37371
  }[];
37276
37372
  /** @description True when one or more entities failed to converge (re-run to self-heal). */
37277
37373
  hasFailures: boolean;
@@ -37282,6 +37378,17 @@ interface components {
37282
37378
  */
37283
37379
  result: "unchanged" | "converged" | "plan";
37284
37380
  };
37381
+ ProductFpoPullResponse: {
37382
+ /** @description Server-computed canonical whole-FPO content hash. */
37383
+ contentHash: string;
37384
+ /** @description A self-contained Full Product Object reconstructed from the live graph. Feeding it back into POST /products/ensure-fpo converges to `unchanged`. records/schedules/secrets are not reconstructed (see `warnings`); tool refs are emitted as portable `tool:<name>`. */
37385
+ fpo: {
37386
+ [key: string]: unknown;
37387
+ };
37388
+ productId: string;
37389
+ /** @description Reconstruction caveats (omitted entities, unrepresentable rows). */
37390
+ warnings?: string[];
37391
+ };
37285
37392
  ProductPullResponse: {
37286
37393
  contentHash: string;
37287
37394
  definition: {
@@ -37525,6 +37632,403 @@ interface components {
37525
37632
  toolId: string;
37526
37633
  updatedAt: string | null;
37527
37634
  };
37635
+ UnifiedSSEEvent: {
37636
+ agentId?: string;
37637
+ agentName?: string;
37638
+ config?: {
37639
+ [key: string]: unknown;
37640
+ };
37641
+ executionId: string;
37642
+ flowId?: string;
37643
+ flowName?: string;
37644
+ /** @enum {string} */
37645
+ kind: "agent" | "flow";
37646
+ maxTurns?: number;
37647
+ seq: number;
37648
+ source?: string;
37649
+ startedAt: string;
37650
+ totalSteps?: number;
37651
+ /** @enum {string} */
37652
+ type: "execution_start";
37653
+ } | {
37654
+ completedAt?: string;
37655
+ durationMs?: number;
37656
+ executionId: string;
37657
+ failedSteps?: number;
37658
+ finalOutput?: string;
37659
+ iterations?: number;
37660
+ /** @enum {string} */
37661
+ kind: "agent" | "flow";
37662
+ seq: number;
37663
+ stopReason?: string;
37664
+ success: boolean;
37665
+ successfulSteps?: number;
37666
+ totalCost?: number;
37667
+ totalSteps?: number;
37668
+ totalTokens?: {
37669
+ input: number;
37670
+ output: number;
37671
+ };
37672
+ /** @enum {string} */
37673
+ type: "execution_complete";
37674
+ } | {
37675
+ code?: string;
37676
+ completedAt?: string;
37677
+ error: string | {
37678
+ code: string;
37679
+ details?: {
37680
+ [key: string]: unknown;
37681
+ };
37682
+ message: string;
37683
+ };
37684
+ executionId: string;
37685
+ /** @enum {string} */
37686
+ kind: "agent" | "flow";
37687
+ seq: number;
37688
+ /** @enum {string} */
37689
+ type: "execution_error";
37690
+ upgradeUrl?: string;
37691
+ } | {
37692
+ executionId: string;
37693
+ id: string;
37694
+ iteration?: number;
37695
+ /** @enum {string} */
37696
+ role: "user" | "assistant" | "system";
37697
+ seq: number;
37698
+ turnIndex?: number;
37699
+ /** @enum {string} */
37700
+ type: "turn_start";
37701
+ } | {
37702
+ completedAt?: string;
37703
+ content?: string;
37704
+ cost?: number;
37705
+ executionId: string;
37706
+ fallback?: {
37707
+ attempts: {
37708
+ attempt: number;
37709
+ error?: string;
37710
+ model?: string;
37711
+ success: boolean;
37712
+ /** @enum {string} */
37713
+ type: "retry" | "model" | "message" | "flow";
37714
+ }[];
37715
+ exhausted: boolean;
37716
+ model?: string;
37717
+ reason?: string | null;
37718
+ used: boolean;
37719
+ };
37720
+ id: string;
37721
+ iteration?: number;
37722
+ /** @enum {string} */
37723
+ role: "user" | "assistant" | "system";
37724
+ seq: number;
37725
+ /** @enum {string} */
37726
+ stopReason?: "end_turn" | "max_tool_calls" | "length" | "content_filter" | "error" | "unknown";
37727
+ tokens?: {
37728
+ input: number;
37729
+ output: number;
37730
+ };
37731
+ /** @enum {string} */
37732
+ type: "turn_complete";
37733
+ } | {
37734
+ executionId: string;
37735
+ id: string;
37736
+ index?: number;
37737
+ name?: string;
37738
+ outputVariable?: string;
37739
+ seq: number;
37740
+ startedAt?: string;
37741
+ stepType?: string;
37742
+ totalSteps?: number;
37743
+ /** @enum {string} */
37744
+ type: "step_start";
37745
+ } | {
37746
+ completedAt?: string;
37747
+ durationMs?: number;
37748
+ error?: string;
37749
+ executionId: string;
37750
+ fallback?: {
37751
+ attempts: {
37752
+ attempt: number;
37753
+ error?: string;
37754
+ model?: string;
37755
+ success: boolean;
37756
+ /** @enum {string} */
37757
+ type: "retry" | "model" | "message" | "flow";
37758
+ }[];
37759
+ exhausted: boolean;
37760
+ model?: string;
37761
+ reason?: string | null;
37762
+ used: boolean;
37763
+ };
37764
+ id: string;
37765
+ name?: string;
37766
+ result?: unknown;
37767
+ seq: number;
37768
+ stepType?: string;
37769
+ /** @enum {string} */
37770
+ stopReason?: "end_turn" | "max_tool_calls" | "length" | "content_filter" | "error" | "unknown";
37771
+ success?: boolean;
37772
+ /** @enum {string} */
37773
+ type: "step_complete";
37774
+ unresolvedVariables?: string[];
37775
+ } | {
37776
+ executionId: string;
37777
+ id: string;
37778
+ index?: number;
37779
+ name?: string;
37780
+ seq: number;
37781
+ skippedAt?: string;
37782
+ stepType?: string;
37783
+ totalSteps?: number;
37784
+ /** @enum {string} */
37785
+ type: "step_skip";
37786
+ when?: string;
37787
+ } | {
37788
+ executionId: string;
37789
+ id: string;
37790
+ /** @enum {string} */
37791
+ role?: "user" | "assistant" | "system";
37792
+ seq: number;
37793
+ stepId?: string;
37794
+ turnId?: string;
37795
+ /** @enum {string} */
37796
+ type: "text_start";
37797
+ } | {
37798
+ delta: string;
37799
+ executionId: string;
37800
+ id: string;
37801
+ seq: number;
37802
+ /** @enum {string} */
37803
+ type: "text_delta";
37804
+ } | {
37805
+ executionId: string;
37806
+ id: string;
37807
+ seq: number;
37808
+ text?: string;
37809
+ /** @enum {string} */
37810
+ type: "text_complete";
37811
+ } | {
37812
+ executionId: string;
37813
+ id: string;
37814
+ /** @enum {string} */
37815
+ scope?: "turn" | "loop";
37816
+ seq: number;
37817
+ /** @enum {string} */
37818
+ type: "reasoning_start";
37819
+ } | {
37820
+ delta: string;
37821
+ executionId: string;
37822
+ id: string;
37823
+ seq: number;
37824
+ /** @enum {string} */
37825
+ type: "reasoning_delta";
37826
+ } | {
37827
+ executionId: string;
37828
+ id: string;
37829
+ /** @enum {string} */
37830
+ scope?: "turn" | "loop";
37831
+ seq: number;
37832
+ text?: string;
37833
+ /** @enum {string} */
37834
+ type: "reasoning_complete";
37835
+ } | {
37836
+ executionId: string;
37837
+ id: string;
37838
+ mediaType: string;
37839
+ /** @enum {string} */
37840
+ role?: "user" | "assistant" | "system";
37841
+ seq: number;
37842
+ toolCallId?: string;
37843
+ /** @enum {string} */
37844
+ type: "media_start";
37845
+ } | {
37846
+ delta: string;
37847
+ executionId: string;
37848
+ id: string;
37849
+ seq: number;
37850
+ /** @enum {string} */
37851
+ type: "media_delta";
37852
+ } | {
37853
+ data?: string;
37854
+ executionId: string;
37855
+ id: string;
37856
+ mediaType?: string;
37857
+ seq: number;
37858
+ toolCallId?: string;
37859
+ /** @enum {string} */
37860
+ type: "media_complete";
37861
+ url?: string;
37862
+ } | {
37863
+ /** @enum {string} */
37864
+ artifactType: "markdown" | "component";
37865
+ component?: string;
37866
+ executionId?: string;
37867
+ id: string;
37868
+ seq?: number;
37869
+ title?: string;
37870
+ /** @enum {string} */
37871
+ type: "artifact_start";
37872
+ } | {
37873
+ delta: string;
37874
+ executionId?: string;
37875
+ id: string;
37876
+ seq?: number;
37877
+ /** @enum {string} */
37878
+ type: "artifact_delta";
37879
+ } | {
37880
+ component: string;
37881
+ executionId?: string;
37882
+ id: string;
37883
+ props: {
37884
+ [key: string]: unknown;
37885
+ };
37886
+ seq?: number;
37887
+ /** @enum {string} */
37888
+ type: "artifact_update";
37889
+ } | {
37890
+ executionId?: string;
37891
+ id: string;
37892
+ seq?: number;
37893
+ /** @enum {string} */
37894
+ type: "artifact_complete";
37895
+ } | ({
37896
+ executionId: string;
37897
+ id?: string;
37898
+ seq: number;
37899
+ sourceType?: string;
37900
+ title?: string;
37901
+ /** @enum {string} */
37902
+ type: "source";
37903
+ url?: string;
37904
+ } & {
37905
+ [key: string]: unknown;
37906
+ }) | {
37907
+ executionId: string;
37908
+ hiddenParameterNames?: string[];
37909
+ iteration?: number;
37910
+ /** @enum {string} */
37911
+ origin?: "webmcp" | "sdk";
37912
+ pageOrigin?: string;
37913
+ parameters?: {
37914
+ [key: string]: unknown;
37915
+ };
37916
+ seq: number;
37917
+ startedAt?: string;
37918
+ stepId?: string;
37919
+ toolCallId: string;
37920
+ toolName: string;
37921
+ toolType: string;
37922
+ /** @enum {string} */
37923
+ type: "tool_start";
37924
+ } | {
37925
+ delta: string;
37926
+ executionId: string;
37927
+ seq: number;
37928
+ toolCallId: string;
37929
+ /** @enum {string} */
37930
+ type: "tool_input_delta";
37931
+ } | {
37932
+ executionId: string;
37933
+ hiddenParameterNames?: string[];
37934
+ parameters: {
37935
+ [key: string]: unknown;
37936
+ };
37937
+ seq: number;
37938
+ toolCallId: string;
37939
+ toolName?: string;
37940
+ /** @enum {string} */
37941
+ type: "tool_input_complete";
37942
+ } | {
37943
+ delta: string;
37944
+ executionId: string;
37945
+ seq: number;
37946
+ toolCallId: string;
37947
+ /** @enum {string} */
37948
+ type: "tool_output_delta";
37949
+ } | {
37950
+ error?: string;
37951
+ executionId: string;
37952
+ executionTime?: number;
37953
+ iteration?: number;
37954
+ result?: unknown;
37955
+ seq: number;
37956
+ stepId?: string;
37957
+ success: boolean;
37958
+ toolCallId: string;
37959
+ toolName?: string;
37960
+ /** @enum {string} */
37961
+ type: "tool_complete";
37962
+ } | {
37963
+ approvalId: string;
37964
+ description?: string;
37965
+ executionId: string;
37966
+ iteration?: number;
37967
+ parameters?: {
37968
+ [key: string]: unknown;
37969
+ };
37970
+ reason?: string;
37971
+ seq: number;
37972
+ startedAt?: string;
37973
+ timeout?: number;
37974
+ toolCallId?: string;
37975
+ toolName: string;
37976
+ toolType?: string;
37977
+ /** @enum {string} */
37978
+ type: "approval_start";
37979
+ } | {
37980
+ approvalId: string;
37981
+ completedAt?: string;
37982
+ /** @enum {string} */
37983
+ decision: "approved" | "denied" | "timeout";
37984
+ executionId: string;
37985
+ /** @enum {string} */
37986
+ resolvedBy?: "user" | "system";
37987
+ seq: number;
37988
+ /** @enum {string} */
37989
+ type: "approval_complete";
37990
+ } | {
37991
+ awaitedAt?: string;
37992
+ executionId: string;
37993
+ /** @enum {string} */
37994
+ origin?: "webmcp" | "sdk";
37995
+ pageOrigin?: string;
37996
+ parameters?: {
37997
+ [key: string]: unknown;
37998
+ };
37999
+ seq: number;
38000
+ toolCallId?: string;
38001
+ toolId?: string;
38002
+ toolName?: string;
38003
+ /** @enum {string} */
38004
+ type: "await";
38005
+ } | {
38006
+ error: string | {
38007
+ code: string;
38008
+ details?: {
38009
+ [key: string]: unknown;
38010
+ };
38011
+ message: string;
38012
+ };
38013
+ executionId: string;
38014
+ recoverable?: boolean;
38015
+ seq: number;
38016
+ /** @enum {string} */
38017
+ type: "error";
38018
+ } | {
38019
+ executionId: string;
38020
+ seq: number;
38021
+ timestamp: string;
38022
+ /** @enum {string} */
38023
+ type: "ping";
38024
+ } | {
38025
+ executionId?: string;
38026
+ name: string;
38027
+ seq?: number;
38028
+ /** @enum {string} */
38029
+ type: "custom";
38030
+ value?: unknown;
38031
+ };
37528
38032
  UpdateUserProfileResponse: {
37529
38033
  email?: string;
37530
38034
  firstName?: string;
@@ -39156,6 +39660,13 @@ interface ClientToolDefinition {
39156
39660
  parametersSchema: Record<string, unknown>;
39157
39661
  origin?: 'webmcp' | 'sdk';
39158
39662
  pageOrigin?: string;
39663
+ /**
39664
+ * When `true`, the server spotlights (delimiter-wraps) this tool's output
39665
+ * before the model reads it, treating it as untrusted data. `origin: 'webmcp'`
39666
+ * output is spotlighted unconditionally; set this to opt an `origin: 'sdk'`
39667
+ * tool in (e.g. one that relays third-party / user-supplied content).
39668
+ */
39669
+ untrustedContentHint?: boolean;
39159
39670
  }
39160
39671
  type CreateFlowRequestBody = NonNullable<paths['/v1/flows']['post']['requestBody']>['content']['application/json'];
39161
39672
  /**
@@ -42147,13 +42658,21 @@ interface EnsureFpoOptions {
42147
42658
  dryRun?: boolean;
42148
42659
  /** Per nested entity: "overwrite" converges over dashboard/API edits. */
42149
42660
  onConflict?: 'error' | 'overwrite';
42661
+ /**
42662
+ * Opt-in removal of product-scoped capabilities/surfaces (and their items)
42663
+ * absent from the FPO, after the converge passes. Account-scoped
42664
+ * flows/agents/tools/records are never removed; `createPolicy: 'skip'`
42665
+ * entities are kept. With `dryRun`, would-be removals are reported as `pruned`
42666
+ * plan rows.
42667
+ */
42668
+ prune?: boolean;
42150
42669
  }
42151
42670
  /** One nested entity's converge result. */
42152
42671
  interface FpoEntityOutcome {
42153
42672
  kind: 'product' | 'flow' | 'agent' | 'capability' | 'tool' | 'surface' | 'record' | 'schedule';
42154
42673
  ref: string;
42155
42674
  name: string;
42156
- result: 'created' | 'updated' | 'unchanged' | 'failed' | 'skipped';
42675
+ result: 'created' | 'updated' | 'unchanged' | 'failed' | 'skipped' | 'pruned';
42157
42676
  id?: string;
42158
42677
  error?: string;
42159
42678
  }
@@ -42164,6 +42683,18 @@ interface EnsureFpoResult {
42164
42683
  entities: FpoEntityOutcome[];
42165
42684
  hasFailures: boolean;
42166
42685
  }
42686
+ interface PullFpoResult {
42687
+ productId: string;
42688
+ /**
42689
+ * A self-contained FPO reconstructed from the live graph. Feeding it back into
42690
+ * `products.ensureFpo` converges to `unchanged`. records/schedules/secrets are
42691
+ * not reconstructed (see `warnings`); tool refs are portable `tool:<name>`.
42692
+ */
42693
+ fpo: FpoInput;
42694
+ contentHash: string;
42695
+ /** Reconstruction caveats (omitted entities, unrepresentable rows). */
42696
+ warnings?: string[];
42697
+ }
42167
42698
  /**
42168
42699
  * Converge an entire FPO onto the platform. Ships the full FPO (no hash-only
42169
42700
  * probe in this release); the server fans out to the per-entity ensure services
@@ -42171,6 +42702,14 @@ interface EnsureFpoResult {
42171
42702
  * `result.hasFailures` / `entities[].result` and re-run to self-heal.
42172
42703
  */
42173
42704
  declare function ensureFpo(client: RuntypeClient$1, fpo: FpoInput, options?: EnsureFpoOptions): Promise<EnsureFpoResult>;
42705
+ /**
42706
+ * Reconstruct a self-contained FPO from the live product graph (resolved by
42707
+ * name) — the absorb-drift direction of `ensureFpo`. Feeding the returned `fpo`
42708
+ * back into `ensureFpo` converges to `unchanged`. records/schedules/secrets are
42709
+ * not reconstructed and `tools` is emitted empty (refs are portable
42710
+ * `tool:<name>`); inspect `warnings` for per-pull caveats.
42711
+ */
42712
+ declare function pullFpo(client: RuntypeClient$1, name: string): Promise<PullFpoResult>;
42174
42713
 
42175
42714
  /**
42176
42715
  * ProductsNamespace — config-as-code operations for products.
@@ -42232,6 +42771,22 @@ declare class ProductsNamespace {
42232
42771
  * ```
42233
42772
  */
42234
42773
  ensureFpo(fpo: FpoInput, options?: EnsureFpoOptions): Promise<EnsureFpoResult>;
42774
+ /**
42775
+ * Reconstruct a self-contained Full Product Object from the live product graph
42776
+ * (resolved by name) — the absorb-drift direction of `ensureFpo`. Feeding the
42777
+ * returned `fpo` back into `ensureFpo` converges to `unchanged`.
42778
+ *
42779
+ * records/schedules/secrets are not reconstructed and `tools` is emitted empty
42780
+ * (tool refs are portable `tool:<name>`); inspect `result.warnings` for
42781
+ * per-pull caveats.
42782
+ *
42783
+ * @example
42784
+ * ```typescript
42785
+ * const { fpo } = await Runtype.products.pullFpo('Support Copilot')
42786
+ * await Runtype.products.ensureFpo(fpo, { dryRun: true }) // → result: 'unchanged'
42787
+ * ```
42788
+ */
42789
+ pullFpo(name: string): Promise<PullFpoResult>;
42235
42790
  }
42236
42791
 
42237
42792
  /**
@@ -45604,6 +46159,12 @@ interface LocalToolEntry {
45604
46159
  execute: (args: unknown) => Promise<unknown>;
45605
46160
  origin?: 'webmcp' | 'sdk';
45606
46161
  pageOrigin?: string;
46162
+ /**
46163
+ * When `true`, the server spotlights (delimiter-wraps) this tool's output as
46164
+ * untrusted before the model reads it. Use for `origin: 'sdk'` tools that
46165
+ * relay third-party / user-supplied content. See {@link ClientToolDefinition}.
46166
+ */
46167
+ untrustedContentHint?: boolean;
45607
46168
  }
45608
46169
  /**
45609
46170
  * Options accepted by {@link RuntypeClient.runWithLocalTools}.
@@ -45797,6 +46358,23 @@ declare class RuntypeApiError extends Error {
45797
46358
  */
45798
46359
  declare function createClient(config?: ClientConfig): RuntypeClient;
45799
46360
 
46361
+ declare const SDK_VERSION: string;
46362
+ /**
46363
+ * Canonical client identity the API uses for attribution
46364
+ * (`detectActorSource` in apps/api/src/lib/audit-log.ts keys `'sdk'` off the
46365
+ * `X-Runtype-Client` header and the `runtype-sdk/<version>` User-Agent prefix).
46366
+ */
46367
+ declare const RUNTYPE_CLIENT_KIND = "sdk";
46368
+ /**
46369
+ * Normalized SDK User-Agent, e.g. `runtype-sdk/4.19.1 (typescript)`. The
46370
+ * `runtype-sdk/` prefix is what the API's detectActorSource matches to attribute
46371
+ * SDK traffic; the `(typescript)` comment distinguishes it from the Python SDK
46372
+ * (which sends `runtype-sdk/<version> (python)`). `User-Agent` is a forbidden
46373
+ * header in browsers — `fetch` silently drops it there — so `X-Runtype-Client`
46374
+ * is the reliable cross-environment signal; this UA carries the version + language.
46375
+ */
46376
+ declare const SDK_USER_AGENT: string;
46377
+
45800
46378
  /**
45801
46379
  * Offload marker contract — the single source of truth for the reference
45802
46380
  * strings that replace large tool outputs in marathon send views.
@@ -47275,4 +47853,4 @@ declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | u
47275
47853
  declare function getDefaultPlanPath(taskName: string): string;
47276
47854
  declare function sanitizeTaskSlug(taskName: string): string;
47277
47855
 
47278
- 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 ConditionalGetResult, 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 DefineSkillInput, type DefineSurfaceInput, 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 EnsureFpoOptions, type EnsureFpoResult, type EnsureProductConverged, type EnsureProductOptions, type EnsureProductPlan, type EnsureProductResult, type EnsureSkillConverged, type EnsureSkillOptions, type EnsureSkillPlan, type EnsureSkillResult, type EnsureSurfaceConverged, type EnsureSurfaceOptions, type EnsureSurfacePlan, type EnsureSurfaceResult, 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 FpoEntityOutcome, type FpoInput, 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 SkillScanFinding as RuntypeSkillScanFinding, type SkillScanResult as RuntypeSkillScanResult, type SkillScanVerdict as RuntypeSkillScanVerdict, 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 SkillDefinition, SkillDriftError, SkillEnsureConflictError, type SkillListPage, type SkillListPagination, type SkillListParams, type SkillManifestInput, type SkillMarkdownInput, type SkillOrigin, type SkillProposalStatus, SkillProposalsNamespace, type SkillPullResult, 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 SurfaceDefinition, type SurfaceDefinitionEnvironment, type SurfaceDefinitionStatus, type SurfaceDefinitionType, SurfaceDriftError, SurfaceEnsureConflictError, type SurfaceListParams, type SurfacePullResult, SurfacesEndpoint, SurfacesNamespace, type TextContentPart, type Tool, type ToolApprovalGrant, ToolApprovalGrantsEndpoint, 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, computeFpoContentHash, computeProductContentHash, computeSkillContentHash, computeSurfaceContentHash, computeToolContentHash, createClient, createExternalTool, defaultWorkflow, defaultWorkflowConfig, defineAgent, defineFlow, defineFpo, definePlaybook, defineProduct, defineSkill, defineSurface, defineTool, deployWorkflow, ensureDefaultWorkflowHooks, ensureFpo, evaluateGeneratedRuntimeToolProposal, extractDeclaredToolResultChars, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, interpolateWorkflowTemplate, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, isWorkflowHookRef, listWorkflowHooks, normalizeAgentDefinition, normalizeCandidatePath, normalizeFpoDefinition, normalizeProductDefinition, normalizeSkillDefinition, normalizeSurfaceDefinition, normalizeToolDefinition, parseFinalBuffer, parseLedgerArtifactRelativePath, parseOffloadedOutputId, parseSSEChunk, processStream, registerWorkflowHook, resolveStallStopAfter, resolveWorkflowHook, sanitizeTaskSlug, shouldInjectEmptySessionNudge, shouldRequestModelEscalation, streamEvents, unregisterWorkflowHook };
47856
+ 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 ConditionalGetResult, 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 DefineSkillInput, type DefineSurfaceInput, 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 EnsureFpoOptions, type EnsureFpoResult, type EnsureProductConverged, type EnsureProductOptions, type EnsureProductPlan, type EnsureProductResult, type EnsureSkillConverged, type EnsureSkillOptions, type EnsureSkillPlan, type EnsureSkillResult, type EnsureSurfaceConverged, type EnsureSurfaceOptions, type EnsureSurfacePlan, type EnsureSurfaceResult, 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 FpoEntityOutcome, type FpoInput, 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 PullFpoResult, RUNTYPE_CLIENT_KIND, 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 SkillScanFinding as RuntypeSkillScanFinding, type SkillScanResult as RuntypeSkillScanResult, type SkillScanVerdict as RuntypeSkillScanVerdict, type SkillVersion as RuntypeSkillVersion, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, SDK_USER_AGENT, SDK_VERSION, 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 SkillDefinition, SkillDriftError, SkillEnsureConflictError, type SkillListPage, type SkillListPagination, type SkillListParams, type SkillManifestInput, type SkillMarkdownInput, type SkillOrigin, type SkillProposalStatus, SkillProposalsNamespace, type SkillPullResult, 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 SurfaceDefinition, type SurfaceDefinitionEnvironment, type SurfaceDefinitionStatus, type SurfaceDefinitionType, SurfaceDriftError, SurfaceEnsureConflictError, type SurfaceListParams, type SurfacePullResult, SurfacesEndpoint, SurfacesNamespace, type TextContentPart, type Tool, type ToolApprovalGrant, ToolApprovalGrantsEndpoint, 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, computeFpoContentHash, computeProductContentHash, computeSkillContentHash, computeSurfaceContentHash, computeToolContentHash, createClient, createExternalTool, defaultWorkflow, defaultWorkflowConfig, defineAgent, defineFlow, defineFpo, definePlaybook, defineProduct, defineSkill, defineSurface, defineTool, deployWorkflow, ensureDefaultWorkflowHooks, ensureFpo, evaluateGeneratedRuntimeToolProposal, extractDeclaredToolResultChars, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, interpolateWorkflowTemplate, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, isWorkflowHookRef, listWorkflowHooks, normalizeAgentDefinition, normalizeCandidatePath, normalizeFpoDefinition, normalizeProductDefinition, normalizeSkillDefinition, normalizeSurfaceDefinition, normalizeToolDefinition, parseFinalBuffer, parseLedgerArtifactRelativePath, parseOffloadedOutputId, parseSSEChunk, processStream, pullFpo, registerWorkflowHook, resolveStallStopAfter, resolveWorkflowHook, sanitizeTaskSlug, shouldInjectEmptySessionNudge, shouldRequestModelEscalation, streamEvents, unregisterWorkflowHook };