@runtypelabs/sdk 6.5.1 → 6.6.1

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
@@ -5134,7 +5134,7 @@ interface paths {
5134
5134
  maxRetries?: number;
5135
5135
  /** @description Model id applied to every prompt step in this batch. */
5136
5136
  modelOverride?: string;
5137
- /** @description Completed results buffered before partial progress is persisted. */
5137
+ /** @description Deprecated and ignored. Completed results are now persisted per record as they finish, so no partial progress is held in memory and this threshold has no effect. Still accepted for backward compatibility. */
5138
5138
  progressFlushSize?: number;
5139
5139
  /** @description Max records dispatched in parallel within a processing chunk. */
5140
5140
  recordConcurrency?: number;
@@ -7403,6 +7403,72 @@ interface paths {
7403
7403
  patch?: never;
7404
7404
  trace?: never;
7405
7405
  };
7406
+ "/v1/collections/types.d.ts": {
7407
+ parameters: {
7408
+ query?: never;
7409
+ header?: never;
7410
+ path?: never;
7411
+ cookie?: never;
7412
+ };
7413
+ /**
7414
+ * Generate TypeScript types for schematized collections
7415
+ * @description Emit a TypeScript `.d.ts` module (one interface per schematized collection plus a `declare module '@runtypelabs/sdk'` augmentation of `RecordCollections`) so `client.records.from('<slug>')` types record metadata. Fetch it with `runtype records typegen`; commit and diff-check the output in CI to catch collection-schema drift.
7416
+ */
7417
+ get: {
7418
+ parameters: {
7419
+ query?: never;
7420
+ header?: never;
7421
+ path?: never;
7422
+ cookie?: never;
7423
+ };
7424
+ requestBody?: never;
7425
+ responses: {
7426
+ /** @description A TypeScript declaration module */
7427
+ 200: {
7428
+ headers: {
7429
+ [name: string]: unknown;
7430
+ };
7431
+ content: {
7432
+ "text/plain": string;
7433
+ };
7434
+ };
7435
+ /** @description Unauthorized */
7436
+ 401: {
7437
+ headers: {
7438
+ [name: string]: unknown;
7439
+ };
7440
+ content: {
7441
+ "application/json": components["schemas"]["Error"];
7442
+ };
7443
+ };
7444
+ /** @description Insufficient permissions */
7445
+ 403: {
7446
+ headers: {
7447
+ [name: string]: unknown;
7448
+ };
7449
+ content: {
7450
+ "application/json": components["schemas"]["Error"];
7451
+ };
7452
+ };
7453
+ /** @description Internal server error */
7454
+ 500: {
7455
+ headers: {
7456
+ [name: string]: unknown;
7457
+ };
7458
+ content: {
7459
+ "application/json": components["schemas"]["Error"];
7460
+ };
7461
+ };
7462
+ };
7463
+ };
7464
+ put?: never;
7465
+ post?: never;
7466
+ delete?: never;
7467
+ options?: never;
7468
+ head?: never;
7469
+ patch?: never;
7470
+ trace?: never;
7471
+ };
7406
7472
  "/v1/collections/{slug}": {
7407
7473
  parameters: {
7408
7474
  query?: never;
@@ -10090,6 +10156,9 @@ interface paths {
10090
10156
  [key: string]: unknown;
10091
10157
  };
10092
10158
  flow: {
10159
+ agents?: {
10160
+ [key: string]: unknown;
10161
+ };
10093
10162
  contentHash?: string;
10094
10163
  description?: string;
10095
10164
  id?: string;
@@ -10451,6 +10520,9 @@ interface paths {
10451
10520
  [key: string]: unknown;
10452
10521
  };
10453
10522
  flow?: {
10523
+ agents?: {
10524
+ [key: string]: unknown;
10525
+ };
10454
10526
  contentHash?: string;
10455
10527
  description?: string;
10456
10528
  id?: string;
@@ -14782,6 +14854,108 @@ interface paths {
14782
14854
  patch?: never;
14783
14855
  trace?: never;
14784
14856
  };
14857
+ "/v1/executions/{executionId}/journal": {
14858
+ parameters: {
14859
+ query?: never;
14860
+ header?: never;
14861
+ path?: never;
14862
+ cookie?: never;
14863
+ };
14864
+ /**
14865
+ * Read an execution journal
14866
+ * @description Returns the durable flow-execution journal events for an execution the caller owns, in replay order. At most 1000 events are returned; when the execution has more, the response is capped at that many rows and `truncated` is true.
14867
+ */
14868
+ get: {
14869
+ parameters: {
14870
+ query?: never;
14871
+ header?: never;
14872
+ path: {
14873
+ /** @description Execution ID to read */
14874
+ executionId: string;
14875
+ };
14876
+ cookie?: never;
14877
+ };
14878
+ requestBody?: never;
14879
+ responses: {
14880
+ /** @description Journal events returned */
14881
+ 200: {
14882
+ headers: {
14883
+ [name: string]: unknown;
14884
+ };
14885
+ content: {
14886
+ "application/json": {
14887
+ executionId: string;
14888
+ journalEvents: {
14889
+ attempt: number | null;
14890
+ createdAt: string | null;
14891
+ eventName: string;
14892
+ id: string;
14893
+ payload: {
14894
+ [key: string]: unknown;
14895
+ };
14896
+ seq: number;
14897
+ stepId: string | null;
14898
+ }[];
14899
+ /** @description True when the execution has more than 1000 journal events and the returned list is capped. */
14900
+ truncated: boolean;
14901
+ };
14902
+ };
14903
+ };
14904
+ /** @description Invalid execution ID */
14905
+ 400: {
14906
+ headers: {
14907
+ [name: string]: unknown;
14908
+ };
14909
+ content: {
14910
+ "application/json": components["schemas"]["Error"];
14911
+ };
14912
+ };
14913
+ /** @description Unauthorized */
14914
+ 401: {
14915
+ headers: {
14916
+ [name: string]: unknown;
14917
+ };
14918
+ content: {
14919
+ "application/json": components["schemas"]["Error"];
14920
+ };
14921
+ };
14922
+ /** @description Insufficient API key permissions */
14923
+ 403: {
14924
+ headers: {
14925
+ [name: string]: unknown;
14926
+ };
14927
+ content: {
14928
+ "application/json": components["schemas"]["Error"];
14929
+ };
14930
+ };
14931
+ /** @description Not found */
14932
+ 404: {
14933
+ headers: {
14934
+ [name: string]: unknown;
14935
+ };
14936
+ content: {
14937
+ "application/json": components["schemas"]["Error"];
14938
+ };
14939
+ };
14940
+ /** @description Internal server error */
14941
+ 500: {
14942
+ headers: {
14943
+ [name: string]: unknown;
14944
+ };
14945
+ content: {
14946
+ "application/json": components["schemas"]["Error"];
14947
+ };
14948
+ };
14949
+ };
14950
+ };
14951
+ put?: never;
14952
+ post?: never;
14953
+ delete?: never;
14954
+ options?: never;
14955
+ head?: never;
14956
+ patch?: never;
14957
+ trace?: never;
14958
+ };
14785
14959
  "/v1/feedback": {
14786
14960
  parameters: {
14787
14961
  query?: never;
@@ -27207,7 +27381,7 @@ interface paths {
27207
27381
  put?: never;
27208
27382
  /**
27209
27383
  * Create surface
27210
- * @description Create a new surface for a product. Checks entitlement limits via Schematic.
27384
+ * @description Create a new surface for a product.
27211
27385
  */
27212
27386
  post: {
27213
27387
  parameters: {
@@ -27287,15 +27461,6 @@ interface paths {
27287
27461
  "application/json": components["schemas"]["Error"];
27288
27462
  };
27289
27463
  };
27290
- /** @description Surface limit exceeded */
27291
- 402: {
27292
- headers: {
27293
- [name: string]: unknown;
27294
- };
27295
- content: {
27296
- "application/json": components["schemas"]["Error"];
27297
- };
27298
- };
27299
27464
  /** @description Insufficient permissions */
27300
27465
  403: {
27301
27466
  headers: {
@@ -27411,15 +27576,6 @@ interface paths {
27411
27576
  "application/json": components["schemas"]["Error"];
27412
27577
  };
27413
27578
  };
27414
- /** @description Plan surface limit reached for the target environment (only a create counts against the quota) */
27415
- 402: {
27416
- headers: {
27417
- [name: string]: unknown;
27418
- };
27419
- content: {
27420
- "application/json": components["schemas"]["Error"];
27421
- };
27422
- };
27423
27579
  /** @description Insufficient permissions */
27424
27580
  403: {
27425
27581
  headers: {
@@ -27764,15 +27920,6 @@ interface paths {
27764
27920
  "application/json": components["schemas"]["Error"];
27765
27921
  };
27766
27922
  };
27767
- /** @description Surface limit exceeded */
27768
- 402: {
27769
- headers: {
27770
- [name: string]: unknown;
27771
- };
27772
- content: {
27773
- "application/json": components["schemas"]["Error"];
27774
- };
27775
- };
27776
27923
  /** @description Insufficient permissions */
27777
27924
  403: {
27778
27925
  headers: {
@@ -36040,11 +36187,23 @@ interface paths {
36040
36187
  record: {
36041
36188
  createdAt: string;
36042
36189
  id: string;
36190
+ messages?: {
36191
+ content: string;
36192
+ role: string;
36193
+ }[] | null;
36043
36194
  metadata: {
36044
36195
  [key: string]: unknown;
36045
36196
  };
36197
+ metadataLabels?: {
36198
+ [key: string]: string;
36199
+ } | null;
36200
+ metadataSchema?: {
36201
+ [key: string]: unknown;
36202
+ } | null;
36046
36203
  name: string;
36047
36204
  organizationId: string | null;
36205
+ productSurfaceId?: string | null;
36206
+ schemaValid?: boolean | null;
36048
36207
  type: string;
36049
36208
  updatedAt: string;
36050
36209
  userId: string;
@@ -36194,11 +36353,23 @@ interface paths {
36194
36353
  records: {
36195
36354
  createdAt: string;
36196
36355
  id: string;
36356
+ messages?: {
36357
+ content: string;
36358
+ role: string;
36359
+ }[] | null;
36197
36360
  metadata: {
36198
36361
  [key: string]: unknown;
36199
36362
  };
36363
+ metadataLabels?: {
36364
+ [key: string]: string;
36365
+ } | null;
36366
+ metadataSchema?: {
36367
+ [key: string]: unknown;
36368
+ } | null;
36200
36369
  name: string;
36201
36370
  organizationId: string | null;
36371
+ productSurfaceId?: string | null;
36372
+ schemaValid?: boolean | null;
36202
36373
  type: string;
36203
36374
  updatedAt: string;
36204
36375
  userId: string;
@@ -36328,11 +36499,23 @@ interface paths {
36328
36499
  record: {
36329
36500
  createdAt: string;
36330
36501
  id: string;
36502
+ messages?: {
36503
+ content: string;
36504
+ role: string;
36505
+ }[] | null;
36331
36506
  metadata: {
36332
36507
  [key: string]: unknown;
36333
36508
  };
36509
+ metadataLabels?: {
36510
+ [key: string]: string;
36511
+ } | null;
36512
+ metadataSchema?: {
36513
+ [key: string]: unknown;
36514
+ } | null;
36334
36515
  name: string;
36335
36516
  organizationId: string | null;
36517
+ productSurfaceId?: string | null;
36518
+ schemaValid?: boolean | null;
36336
36519
  type: string;
36337
36520
  updatedAt: string;
36338
36521
  userId: string;
@@ -36464,11 +36647,23 @@ interface paths {
36464
36647
  record: {
36465
36648
  createdAt: string;
36466
36649
  id: string;
36650
+ messages?: {
36651
+ content: string;
36652
+ role: string;
36653
+ }[] | null;
36467
36654
  metadata: {
36468
36655
  [key: string]: unknown;
36469
36656
  };
36657
+ metadataLabels?: {
36658
+ [key: string]: string;
36659
+ } | null;
36660
+ metadataSchema?: {
36661
+ [key: string]: unknown;
36662
+ } | null;
36470
36663
  name: string;
36471
36664
  organizationId: string | null;
36665
+ productSurfaceId?: string | null;
36666
+ schemaValid?: boolean | null;
36472
36667
  type: string;
36473
36668
  updatedAt: string;
36474
36669
  userId: string;
@@ -36879,7 +37074,7 @@ interface paths {
36879
37074
  [name: string]: unknown;
36880
37075
  };
36881
37076
  content: {
36882
- "application/json": components["schemas"]["Error"];
37077
+ "application/json": components["schemas"]["ScheduleEntitlementError"];
36883
37078
  };
36884
37079
  };
36885
37080
  /** @description Insufficient permissions */
@@ -37430,7 +37625,7 @@ interface paths {
37430
37625
  [name: string]: unknown;
37431
37626
  };
37432
37627
  content: {
37433
- "application/json": components["schemas"]["Error"];
37628
+ "application/json": components["schemas"]["ScheduleEntitlementError"];
37434
37629
  };
37435
37630
  };
37436
37631
  /** @description Insufficient permissions */
@@ -37645,7 +37840,7 @@ interface paths {
37645
37840
  [name: string]: unknown;
37646
37841
  };
37647
37842
  content: {
37648
- "application/json": components["schemas"]["Error"];
37843
+ "application/json": components["schemas"]["ScheduleEntitlementError"];
37649
37844
  };
37650
37845
  };
37651
37846
  /** @description Insufficient permissions */
@@ -44511,6 +44706,14 @@ interface components {
44511
44706
  error: string;
44512
44707
  message?: string;
44513
44708
  };
44709
+ ScheduleEntitlementError: components["schemas"]["Error"] & {
44710
+ /** @description Stable error code (e.g. ACTIVE_SCHEDULE_LIMIT, SCHEDULE_FREQUENCY_LIMIT). */
44711
+ code?: string;
44712
+ /** @description Human-readable error message. */
44713
+ message?: string;
44714
+ /** @description Dashboard-relative URL to the billing/upgrade page. */
44715
+ upgradeUrl?: string;
44716
+ };
44514
44717
  SkillEnsureConflict: {
44515
44718
  /** @enum {string} */
44516
44719
  code: "external_modification" | "remote_changed";
@@ -45391,8 +45594,8 @@ interface RetrieveRecordStepConfig$1 {
45391
45594
  recordId?: string;
45392
45595
  /**
45393
45596
  * Optional chip-style filter (metadata + top-level columns: id, name,
45394
- * createdAt, updatedAt). Coexists with recordType/recordName for
45395
- * backward compatibility; the API executor prefers recordFilter when
45597
+ * createdAt, updatedAt, schemaValid). Coexists with recordType/recordName
45598
+ * for backward compatibility; the API executor prefers recordFilter when
45396
45599
  * both are set.
45397
45600
  */
45398
45601
  recordFilter?: RecordFilter;
@@ -45419,8 +45622,8 @@ interface GetRecordStepConfig$1 {
45419
45622
  recordName?: string;
45420
45623
  /**
45421
45624
  * Optional chip-style filter (metadata + top-level columns: id, name,
45422
- * createdAt, updatedAt). Coexists with recordType/recordName; the API
45423
- * executor prefers recordFilter when both are set.
45625
+ * createdAt, updatedAt, schemaValid). Coexists with recordType/recordName;
45626
+ * the API executor prefers recordFilter when both are set.
45424
45627
  */
45425
45628
  recordFilter?: RecordFilter;
45426
45629
  fieldsToInclude?: string | string[];
@@ -45445,8 +45648,8 @@ interface ListRecordsStepConfig$1 {
45445
45648
  recordName?: string;
45446
45649
  /**
45447
45650
  * Optional chip-style filter (metadata + top-level columns: id, name,
45448
- * createdAt, updatedAt). Coexists with recordType/recordName; the API
45449
- * executor prefers recordFilter when both are set.
45651
+ * createdAt, updatedAt, schemaValid). Coexists with recordType/recordName;
45652
+ * the API executor prefers recordFilter when both are set.
45450
45653
  */
45451
45654
  recordFilter?: RecordFilter;
45452
45655
  /** Max records returned (default 50, capped at 1000). */
@@ -51533,7 +51736,8 @@ interface ClientToken {
51533
51736
  id: string;
51534
51737
  name: string | null;
51535
51738
  flowIds: string[];
51536
- defaultFlowId: string;
51739
+ defaultFlowId: string | null;
51740
+ agentIds: string[];
51537
51741
  allowedOrigins: string[];
51538
51742
  environment: ClientTokenEnvironment;
51539
51743
  pinToVersion: ClientTokenVersionPin | null;
@@ -51545,6 +51749,10 @@ interface ClientToken {
51545
51749
  isActive: boolean;
51546
51750
  tokenPrefix: string;
51547
51751
  tokenHint: string | null;
51752
+ /** Publishable token value. Null for legacy rows until regenerated. */
51753
+ tokenValue: string | null;
51754
+ /** Product chat surface this token was minted for, when surface-bound. */
51755
+ productSurfaceId?: string | null;
51548
51756
  conversationCount?: number;
51549
51757
  lastUsedAt: string | null;
51550
51758
  createdAt: string;
@@ -51555,8 +51763,9 @@ interface ClientToken {
51555
51763
  */
51556
51764
  interface CreateClientTokenRequest {
51557
51765
  name: string;
51558
- flowIds: string[];
51559
- defaultFlowId: string;
51766
+ flowIds?: string[];
51767
+ defaultFlowId?: string;
51768
+ agentIds?: string[];
51560
51769
  allowedOrigins: string[];
51561
51770
  environment?: ClientTokenEnvironment;
51562
51771
  pinToVersion?: ClientTokenVersionPin;
@@ -51565,6 +51774,7 @@ interface CreateClientTokenRequest {
51565
51774
  maxMessagesPerSession?: number;
51566
51775
  sessionIdleTimeoutMinutes?: number;
51567
51776
  config?: ClientTokenConfig;
51777
+ productSurfaceId?: string;
51568
51778
  }
51569
51779
  /**
51570
51780
  * Request to update a client token
@@ -51573,6 +51783,7 @@ interface UpdateClientTokenRequest {
51573
51783
  name?: string;
51574
51784
  flowIds?: string[];
51575
51785
  defaultFlowId?: string;
51786
+ agentIds?: string[];
51576
51787
  allowedOrigins?: string[];
51577
51788
  pinToVersion?: ClientTokenVersionPin;
51578
51789
  rateLimitPerMinute?: number;
@@ -51697,6 +51908,59 @@ declare function attachRuntimeToolsToDispatchRequest(request: DispatchRequest, r
51697
51908
  */
51698
51909
  declare function applyGeneratedRuntimeToolProposalToDispatchRequest(request: DispatchRequest, proposal: unknown, options?: ApplyGeneratedProposalOptions): ApplyGeneratedProposalResult;
51699
51910
 
51911
+ /**
51912
+ * Typed record collections — the SDK generic seam (§5.1 of the
51913
+ * Records→Collections plan).
51914
+ *
51915
+ * Customers describe their collection schemas by augmenting `RecordCollections`
51916
+ * via declaration merging — hand-authored, or generated by
51917
+ * `runtype records typegen` (`GET /v1/collections/types.d.ts`):
51918
+ *
51919
+ * declare module '@runtypelabs/sdk' {
51920
+ * interface RecordCollections {
51921
+ * customers: { email: string; tier?: 'free' | 'pro' }
51922
+ * }
51923
+ * }
51924
+ *
51925
+ * Then `client.records.from('customers')` returns a scope whose read/write
51926
+ * methods type `metadata` as that shape. Unregistered slugs fall back to
51927
+ * `Record<string, unknown>`, so `from()` is always usable — no codegen
51928
+ * required for it to be safe.
51929
+ *
51930
+ * NOTE: `packages/client` cannot depend on `@runtypelabs/shared`, so these
51931
+ * types are defined locally rather than reusing the shared dialect types.
51932
+ */
51933
+
51934
+ /**
51935
+ * Customer-augmented map of collection slug → metadata shape. Empty by default;
51936
+ * populated via declaration merging (see the module docstring). Because it is
51937
+ * augmented through the package's public name, it must stay exported from the
51938
+ * SDK entry point.
51939
+ */
51940
+ interface RecordCollections {
51941
+ }
51942
+ /** Resolve a slug to its augmented metadata shape, or the untyped fallback. */
51943
+ type CollectionMeta<S extends string> = S extends keyof RecordCollections ? RecordCollections[S] : Record<string, unknown>;
51944
+ /** A record (`GET /v1/records/{id}`) with `metadata` typed for slug `S`. */
51945
+ type TypedRuntypeRecord<S extends string> = Omit<RuntypeRecord, 'metadata'> & {
51946
+ metadata: CollectionMeta<S>;
51947
+ };
51948
+ /** A list-row record with `metadata` typed for slug `S`. */
51949
+ type TypedRecordListItem<S extends string> = Omit<RecordListItem, 'metadata'> & {
51950
+ metadata: CollectionMeta<S>;
51951
+ };
51952
+ /** A create/update record response with `metadata` typed for slug `S`. */
51953
+ type TypedRecordWriteResponse<S extends string> = Omit<RecordWriteResponse, 'metadata'> & {
51954
+ metadata: CollectionMeta<S>;
51955
+ };
51956
+ /**
51957
+ * Create/update body for a typed scope: `type` is pinned to the scope's slug
51958
+ * (so it is omitted here) and `metadata` is typed for slug `S`.
51959
+ */
51960
+ type TypedCreateRecordRequest<S extends string> = Omit<CreateRecordRequest, 'type' | 'metadata'> & {
51961
+ metadata?: CollectionMeta<S>;
51962
+ };
51963
+
51700
51964
  /**
51701
51965
  * Pluggable workflow architecture for marathon task execution.
51702
51966
  *
@@ -52033,6 +52297,48 @@ declare class RecordsEndpoint {
52033
52297
  type?: string;
52034
52298
  name?: string;
52035
52299
  }): Promise<PaginationResponse<RecordListItem>>;
52300
+ /**
52301
+ * Scope record operations to a single collection slug, typing `metadata`
52302
+ * against the customer-augmented `RecordCollections` map (§5.1). The returned
52303
+ * scope pins the record `type` filter to `slug` and types `.list/.get/.create/
52304
+ * .update` metadata as `CollectionMeta<S>`.
52305
+ *
52306
+ * @example
52307
+ * ```ts
52308
+ * const customers = client.records.from('customers')
52309
+ * await customers.create({ name: 'Acme', metadata: { tier: 'pro' } })
52310
+ * ```
52311
+ */
52312
+ from<S extends string>(slug: S): TypedRecordsScope<S>;
52313
+ }
52314
+ /**
52315
+ * A record scope bound to one collection slug. Mirrors the untyped
52316
+ * {@link RecordsEndpoint} read/write methods, but pins the record `type` to the
52317
+ * slug and types `metadata` as `CollectionMeta<S>`. Obtain one via
52318
+ * `client.records.from(slug)`.
52319
+ */
52320
+ declare class TypedRecordsScope<S extends string> {
52321
+ private client;
52322
+ private slug;
52323
+ constructor(client: ApiClient, slug: S);
52324
+ /** List records of this collection (the `type` filter is pinned to the slug). */
52325
+ list(params?: RecordListParams): Promise<PaginationResponse<TypedRecordListItem<S>>>;
52326
+ /**
52327
+ * Get a record of this collection by id. Throws if the fetched record belongs
52328
+ * to a different collection — otherwise `metadata` would be mistyped as this
52329
+ * scope's shape. Use `client.records.get()` for cross-collection reads.
52330
+ */
52331
+ get(id: string): Promise<TypedRuntypeRecord<S>>;
52332
+ /** Create a record in this collection (`type` is supplied from the slug). */
52333
+ create(data: TypedCreateRecordRequest<S>): Promise<TypedRecordWriteResponse<S>>;
52334
+ /**
52335
+ * Update a record in this collection. Guards BEFORE writing with a GET: this
52336
+ * scope's `metadata` type must not be written onto a record of another
52337
+ * collection, so a cross-collection id throws instead of mutating. That costs
52338
+ * one extra request; use `client.records.update()` to skip the guard.
52339
+ */
52340
+ update(id: string, data: Partial<TypedCreateRecordRequest<S>>): Promise<TypedRecordWriteResponse<S>>;
52341
+ private typeMismatchError;
52036
52342
  }
52037
52343
  /**
52038
52344
  * Record collections endpoint handlers.
@@ -52094,6 +52400,13 @@ declare class CollectionsEndpoint {
52094
52400
  validateExisting(slug: string, data?: {
52095
52401
  schema?: Record<string, unknown>;
52096
52402
  }): Promise<ValidateExistingRecordsResponse>;
52403
+ /**
52404
+ * Fetch generated TypeScript declarations for the account's schematized
52405
+ * collections (`GET /v1/collections/types.d.ts`) as a raw `.d.ts` string.
52406
+ * Powers `runtype records typegen`; write it to a file and augment the SDK's
52407
+ * `RecordCollections` map so `client.records.from(slug)` types metadata.
52408
+ */
52409
+ typegen(): Promise<string>;
52097
52410
  }
52098
52411
  /**
52099
52412
  * API Keys endpoint handlers
@@ -56088,4 +56401,4 @@ declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | u
56088
56401
  declare function getDefaultPlanPath(taskName: string): string;
56089
56402
  declare function sanitizeTaskSlug(taskName: string): string;
56090
56403
 
56091
- export { type AIGrader, 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 ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, 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 BuiltInGraderId, type BuiltInTool, type BulkEditCondition, type BulkEditRequest, type BulkEditResponse, type BulkEditResult, type CanonicalDispatchMessageContent, type CanonicalDispatchRequest, type CaseExpected, ChatEndpoint, type CheckGrader, ClientBatchBuilder, type ClientConfig, type ClientConversation, ClientEvalBuilder, ClientFlowBuilder, type ClientToken, type ClientTokenConfig, type ClientTokenEnvironment, type ClientTokenVersionPin, ClientTokensEndpoint, type ClientToolDefinition, type ClientWidgetTheme, CollectionsEndpoint, 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 CreateClientTokenRequest, type CreateClientTokenResponse, type CreateCollectionRequest, type CreateConversationRequest, type CreateEvalSuiteInput, type CreateFlowRequest, type CreateModelConfigRequest, type CreatePromptData, type CreatePromptRequest, type CreateProviderKeyRequest, type CreateRecordRequest, type CreateScheduleRequest, type CreateSecretRequest, type CreateToolRequest, type CurrentBilledSpendResponse, type CurrentBilledSpendSource, type CustomMCPServer, type CustomMCPServerAuth, type CustomToolConfig, DEFAULT_RECOVERY_AFTER_EMPTY_SESSIONS, DEFAULT_STALL_STOP_AFTER, type DecomposeCriteriaResult, type DefineAgentInput, type DefineEvalCaseInput, type DefineEvalInput, type DefineFlowInput, type DefineProductInput, type DefineSkillInput, type DefineSurfaceInput, type DefineToolInput, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DiscoveredModel, type DispatchAgentInput, type DispatchApprovalContinuationResponse, type DispatchApproveRequest, type DispatchApproveResponse, type DispatchClient, type DispatchContinuationRequest, type DispatchContinuationResponse, type DispatchDetachedApprovalResponse, DispatchEndpoint, type DispatchEnvironment, type DispatchEvent, type DispatchFlowInput, type DispatchMessageContent, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type DispatchResponse, type DispatchResumeRequest, type DispatchResumeResponse, type EndUserUsageQuery, type EndUserUsageResponse, type EnsureAgentConverged, type EnsureAgentOptions, type EnsureAgentPlan, type EnsureAgentResult, type EnsureEvalResult, 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 EvalCaseDefinition, type EvalCaseInput, type EvalCaseProposal, type EvalCaseProposalAccepted, type EvalCaseProposalListResult, type EvalCasesGenerated, type EvalClient, type EvalDefinition, EvalEndpoint, type EvalListParams, type EvalMessage, type EvalOptions, type EvalProposalSource, type EvalProposalStatus, type EvalProposedCase, type EvalPullResult, type EvalRecord, type EvalRequest, type EvalResult, type EvalRunCaseScores, type EvalRunConfig, type EvalRunScores, EvalRunner, type EvalStatus, type EvalSuiteCase, type EvalSuiteCaseInput, type EvalSuiteCoverage, type EvalSuiteDetail, type EvalSuiteLatestRun, type EvalSuiteListResult, type EvalSuiteRunQueued, type EvalSuiteRunResult, type EvalSuiteSummary, EvalSuitesNamespace, type EvalTarget, EvalsNamespace, type ExecuteToolRequest, type ExecuteToolResponse, type ExecutionStreamEvent, type ExternalAgentContext, type ExternalToolConfig, type FallbackFailEvent, type FallbackStartEvent, type FallbackSuccessEvent, type FallbackTrigger, type FallbackTriggerType, type FallbacksExhaustedEvent, type FallbacksInitiatedEvent, 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 FlowInlineEvalInput, 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 GenerateEvalCasesInput, type GeneratedRuntimeToolGateDecision, type GeneratedRuntimeToolGateOptions, type GetRecordStepConfig$1 as GetRecordStepConfig, type Gradeable, type GraderConfig, type GraderOutcome, type GraderSeverity, type HumanVerdict, type ImageContentPart, type InferCollectionSchemaResponse, type Integration, type IntegrationTool, IntegrationsEndpoint, type IntegrationsListResponse, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, LEDGER_ARTIFACT_LINE_PREFIX, type ListCollectionsResponse, type ListConversationsResponse, type ListParams, type ListRecordsStepConfig$1 as ListRecordsStepConfig, 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 PersistedGraderOutcome, type ProductDefinition, ProductDriftError, ProductEnsureConflictError, type ProductPullResult, ProductsNamespace, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ProviderKeyModel, ProviderKeysEndpoint, type PullFpoResult, RUNTYPE_CLIENT_KIND, type ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordCollection, type RecordCollectionWithHistory, 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 RunEvalCaseResult, type RunEvalInput, type RunEvalResult, 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 FetchUrlStepConfig as RuntypeFetchUrlStepConfig, RuntypeFlowBuilder, type FlowConfig as RuntypeFlowConfig, type GenerateEmbeddingStepConfig as RuntypeGenerateEmbeddingStepConfig, type GetRecordStepConfig as RuntypeGetRecordStepConfig, type ListRecordsStepConfig as RuntypeListRecordsStepConfig, 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 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 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 SlackManifestRequest, type SlackManifestResponse, type SlackOAuthStartRequest, type SlackOAuthStartResponse, type StepCompleteEvent, type StepDeltaEvent, type StepFallback, type StepFieldMeta, type StepStartEvent, type StepWaitingLocalEvent, type StreamCallbacks, type StreamConsumeOptions, 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, UNIFIED_EVENTS_QUERY, type UpdateClientTokenRequest, type UpdateCollectionRequest, type UpdateCollectionResponse, type UpdateConversationRequest, type UpdateEvalCaseInput, type UpdateEvalSuiteInput, type UpdateFlowRequest, 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 ValidateExistingRecordsResponse, 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, calledTool, compileWorkflowConfig, completed, computeAgentContentHash, computeEvalContentHash, computeFlowContentHash, computeFpoContentHash, computeProductContentHash, computeSkillContentHash, computeSurfaceContentHash, computeToolContentHash, contains, cost, createAgentEventTranslator, createClient, createExternalTool, createFlowEventTranslator, defaultWorkflow, defaultWorkflowConfig, defineAgent, defineEval, defineFlow, defineFpo, definePlaybook, defineProduct, defineSkill, defineSurface, defineTool, deployWorkflow, ensureDefaultWorkflowHooks, ensureEval, ensureFpo, evaluateGeneratedRuntimeToolProposal, extractDeclaredToolResultChars, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, interpolateWorkflowTemplate, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, isUnifiedEventType, isWorkflowHookRef, jsonField, judge, judges, latency, length, listWorkflowHooks, matchesExpected, maxToolCalls, noError, normalizeAgentDefinition, normalizeCandidatePath, normalizeFpoDefinition, normalizeProductDefinition, normalizeSkillDefinition, normalizeSurfaceDefinition, normalizeToolDefinition, notCalledTool, notContains, parseFinalBuffer, parseLedgerArtifactRelativePath, parseOffloadedOutputId, parseSSEChunk, processStream, pullEval, pullFpo, ranStep, regex, registerWorkflowHook, resolveStallStopAfter, resolveWorkflowHook, runEvalSuite, sanitizeTaskSlug, shouldInjectEmptySessionNudge, shouldRequestModelEscalation, stepOrder, streamEvents, toolOrder, unregisterWorkflowHook, usedNoTools, validJson, withUnifiedEvents };
56404
+ export { type AIGrader, 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 ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, 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 BuiltInGraderId, type BuiltInTool, type BulkEditCondition, type BulkEditRequest, type BulkEditResponse, type BulkEditResult, type CanonicalDispatchMessageContent, type CanonicalDispatchRequest, type CaseExpected, ChatEndpoint, type CheckGrader, ClientBatchBuilder, type ClientConfig, type ClientConversation, ClientEvalBuilder, ClientFlowBuilder, type ClientToken, type ClientTokenConfig, type ClientTokenEnvironment, type ClientTokenVersionPin, ClientTokensEndpoint, type ClientToolDefinition, type ClientWidgetTheme, type CollectionMeta, CollectionsEndpoint, 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 CreateClientTokenRequest, type CreateClientTokenResponse, type CreateCollectionRequest, type CreateConversationRequest, type CreateEvalSuiteInput, type CreateFlowRequest, type CreateModelConfigRequest, type CreatePromptData, type CreatePromptRequest, type CreateProviderKeyRequest, type CreateRecordRequest, type CreateScheduleRequest, type CreateSecretRequest, type CreateToolRequest, type CurrentBilledSpendResponse, type CurrentBilledSpendSource, type CustomMCPServer, type CustomMCPServerAuth, type CustomToolConfig, DEFAULT_RECOVERY_AFTER_EMPTY_SESSIONS, DEFAULT_STALL_STOP_AFTER, type DecomposeCriteriaResult, type DefineAgentInput, type DefineEvalCaseInput, type DefineEvalInput, type DefineFlowInput, type DefineProductInput, type DefineSkillInput, type DefineSurfaceInput, type DefineToolInput, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DiscoveredModel, type DispatchAgentInput, type DispatchApprovalContinuationResponse, type DispatchApproveRequest, type DispatchApproveResponse, type DispatchClient, type DispatchContinuationRequest, type DispatchContinuationResponse, type DispatchDetachedApprovalResponse, DispatchEndpoint, type DispatchEnvironment, type DispatchEvent, type DispatchFlowInput, type DispatchMessageContent, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type DispatchResponse, type DispatchResumeRequest, type DispatchResumeResponse, type EndUserUsageQuery, type EndUserUsageResponse, type EnsureAgentConverged, type EnsureAgentOptions, type EnsureAgentPlan, type EnsureAgentResult, type EnsureEvalResult, 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 EvalCaseDefinition, type EvalCaseInput, type EvalCaseProposal, type EvalCaseProposalAccepted, type EvalCaseProposalListResult, type EvalCasesGenerated, type EvalClient, type EvalDefinition, EvalEndpoint, type EvalListParams, type EvalMessage, type EvalOptions, type EvalProposalSource, type EvalProposalStatus, type EvalProposedCase, type EvalPullResult, type EvalRecord, type EvalRequest, type EvalResult, type EvalRunCaseScores, type EvalRunConfig, type EvalRunScores, EvalRunner, type EvalStatus, type EvalSuiteCase, type EvalSuiteCaseInput, type EvalSuiteCoverage, type EvalSuiteDetail, type EvalSuiteLatestRun, type EvalSuiteListResult, type EvalSuiteRunQueued, type EvalSuiteRunResult, type EvalSuiteSummary, EvalSuitesNamespace, type EvalTarget, EvalsNamespace, type ExecuteToolRequest, type ExecuteToolResponse, type ExecutionStreamEvent, type ExternalAgentContext, type ExternalToolConfig, type FallbackFailEvent, type FallbackStartEvent, type FallbackSuccessEvent, type FallbackTrigger, type FallbackTriggerType, type FallbacksExhaustedEvent, type FallbacksInitiatedEvent, 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 FlowInlineEvalInput, 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 GenerateEvalCasesInput, type GeneratedRuntimeToolGateDecision, type GeneratedRuntimeToolGateOptions, type GetRecordStepConfig$1 as GetRecordStepConfig, type Gradeable, type GraderConfig, type GraderOutcome, type GraderSeverity, type HumanVerdict, type ImageContentPart, type InferCollectionSchemaResponse, type Integration, type IntegrationTool, IntegrationsEndpoint, type IntegrationsListResponse, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, LEDGER_ARTIFACT_LINE_PREFIX, type ListCollectionsResponse, type ListConversationsResponse, type ListParams, type ListRecordsStepConfig$1 as ListRecordsStepConfig, 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 PersistedGraderOutcome, type ProductDefinition, ProductDriftError, ProductEnsureConflictError, type ProductPullResult, ProductsNamespace, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ProviderKeyModel, ProviderKeysEndpoint, type PullFpoResult, RUNTYPE_CLIENT_KIND, type ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordCollection, type RecordCollectionWithHistory, type RecordCollections, 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 RunEvalCaseResult, type RunEvalInput, type RunEvalResult, 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 FetchUrlStepConfig as RuntypeFetchUrlStepConfig, RuntypeFlowBuilder, type FlowConfig as RuntypeFlowConfig, type GenerateEmbeddingStepConfig as RuntypeGenerateEmbeddingStepConfig, type GetRecordStepConfig as RuntypeGetRecordStepConfig, type ListRecordsStepConfig as RuntypeListRecordsStepConfig, 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 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 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 SlackManifestRequest, type SlackManifestResponse, type SlackOAuthStartRequest, type SlackOAuthStartResponse, type StepCompleteEvent, type StepDeltaEvent, type StepFallback, type StepFieldMeta, type StepStartEvent, type StepWaitingLocalEvent, type StreamCallbacks, type StreamConsumeOptions, 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 TypedCreateRecordRequest, type TypedRecordListItem, type TypedRecordWriteResponse, TypedRecordsScope, type TypedRuntypeRecord, UNIFIED_EVENTS_QUERY, type UpdateClientTokenRequest, type UpdateCollectionRequest, type UpdateCollectionResponse, type UpdateConversationRequest, type UpdateEvalCaseInput, type UpdateEvalSuiteInput, type UpdateFlowRequest, 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 ValidateExistingRecordsResponse, 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, calledTool, compileWorkflowConfig, completed, computeAgentContentHash, computeEvalContentHash, computeFlowContentHash, computeFpoContentHash, computeProductContentHash, computeSkillContentHash, computeSurfaceContentHash, computeToolContentHash, contains, cost, createAgentEventTranslator, createClient, createExternalTool, createFlowEventTranslator, defaultWorkflow, defaultWorkflowConfig, defineAgent, defineEval, defineFlow, defineFpo, definePlaybook, defineProduct, defineSkill, defineSurface, defineTool, deployWorkflow, ensureDefaultWorkflowHooks, ensureEval, ensureFpo, evaluateGeneratedRuntimeToolProposal, extractDeclaredToolResultChars, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, interpolateWorkflowTemplate, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, isUnifiedEventType, isWorkflowHookRef, jsonField, judge, judges, latency, length, listWorkflowHooks, matchesExpected, maxToolCalls, noError, normalizeAgentDefinition, normalizeCandidatePath, normalizeFpoDefinition, normalizeProductDefinition, normalizeSkillDefinition, normalizeSurfaceDefinition, normalizeToolDefinition, notCalledTool, notContains, parseFinalBuffer, parseLedgerArtifactRelativePath, parseOffloadedOutputId, parseSSEChunk, processStream, pullEval, pullFpo, ranStep, regex, registerWorkflowHook, resolveStallStopAfter, resolveWorkflowHook, runEvalSuite, sanitizeTaskSlug, shouldInjectEmptySessionNudge, shouldRequestModelEscalation, stepOrder, streamEvents, toolOrder, unregisterWorkflowHook, usedNoTools, validJson, withUnifiedEvents };