@hasura/promptql 2.0.0-alpha.23 → 2.0.0-alpha.25

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/README.md CHANGED
@@ -61,7 +61,6 @@ import { PromptQLSdk } from '@hasura/promptql';
61
61
 
62
62
  // Initialize the SDK
63
63
  const sdk = new PromptQLSdk({
64
- projectId: 'your-project-id',
65
64
  serviceAccountToken: 'your-service-account-token',
66
65
  });
67
66
 
package/biome.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://biomejs.dev/schemas/2.4.5/schema.json",
2
+ "$schema": "https://biomejs.dev/schemas/2.4.6/schema.json",
3
3
  "root": false,
4
4
  "files": {
5
5
  "includes": [
package/dist/index.d.mts CHANGED
@@ -135,18 +135,32 @@ type WikiSelectionUpdate = {
135
135
  started: {};
136
136
  } | {
137
137
  wiki_pages_selected: {
138
- /**
139
- * Titles of wiki pages that were found to be relevant
140
- */
141
- wiki_page_titles: string[];
138
+ wiki_page_titles?: string[] | null;
139
+ target_pages?: TargetWikiPage[] | null;
142
140
  /**
143
141
  * LLM usage during wiki selection
144
142
  */
145
143
  llm_usage?: LlmUsage[];
144
+ /**
145
+ * Which user message this wiki selection is for. `None` for legacy
146
+ * threads or for the current trigger's selection. `Some(id)` for
147
+ * retroactive wiki selection of a past user message.
148
+ */
149
+ user_message_id?: string | null;
146
150
  };
147
151
  } | {
148
152
  completed: {};
149
153
  };
154
+ type TargetWikiPage = {
155
+ RegularPage: {
156
+ title: string;
157
+ };
158
+ } | {
159
+ FederatedPage: {
160
+ federated_wiki_name: string;
161
+ page_title: string;
162
+ };
163
+ };
150
164
  type AgentLoopUpdate = {
151
165
  started: {};
152
166
  } | {
@@ -199,6 +213,27 @@ type AgentLoopUpdate = {
199
213
  completed: {
200
214
  summary: string;
201
215
  };
216
+ } | {
217
+ thread_summarized: {
218
+ summary_text: string;
219
+ /**
220
+ * The trigger of the first conversation NOT covered by this summary.
221
+ */
222
+ next_unsummarized_trigger: {
223
+ user_message: {
224
+ /**
225
+ * A unique index for a user message in a thread
226
+ */
227
+ message_id: string;
228
+ };
229
+ } | {
230
+ scheduled_agent_trigger_event: {
231
+ scheduled_agent_trigger_event_id: ScheduledAgentTriggerEventId;
232
+ };
233
+ };
234
+ usage: LlmUsage;
235
+ thinking_text?: string | null;
236
+ };
202
237
  };
203
238
  /**
204
239
  * Actions the agent can perform.
@@ -258,6 +293,7 @@ type AgentLoopAction = {
258
293
  } | {
259
294
  read_wiki_page: {
260
295
  page_title: string;
296
+ federated_wiki_name?: FederatedWikiName | null;
261
297
  };
262
298
  } | {
263
299
  search_wiki_pages: {
@@ -277,6 +313,10 @@ type AgentLoopAction = {
277
313
  delete_scheduled_trigger: {
278
314
  trigger_id: ScheduledAgentTriggerId;
279
315
  };
316
+ } | {
317
+ preview_artifact: {
318
+ artifact_identifier: string;
319
+ };
280
320
  };
281
321
  /**
282
322
  * Program Package Name is the unique name for a program within a project that usable from code
@@ -286,7 +326,11 @@ type ProgramPackageName = string;
286
326
  /**
287
327
  * Skill type identifier for the new skill-based architecture.
288
328
  */
289
- type SkillType = "python_programming" | "react_programming" | "knowledge_exploration" | "saved_programs" | "response_generation";
329
+ type SkillType = "python_programming" | "react_programming" | "knowledge_exploration" | "saved_programs" | "response_generation" | "shelf_pipeline_programming";
330
+ /**
331
+ * The name of a federated wiki
332
+ */
333
+ type FederatedWikiName = string;
290
334
  type ScheduledAgentTriggerType = {
291
335
  one_time: {
292
336
  scheduled_for: string;
@@ -330,7 +374,7 @@ type AgentLoopActionUpdate = {
330
374
  };
331
375
  };
332
376
  type ArtifactType = "text" | "table" | "visualization" | "html" | "file";
333
- type ArtifactPreview = {
377
+ type ArtifactDataPreview = {
334
378
  Table: {
335
379
  total_row_count: number;
336
380
  preview_rows: {
@@ -411,6 +455,7 @@ type AgentLoopActionResult = {
411
455
  } | {
412
456
  page_title: string;
413
457
  page: WikiPageV1;
458
+ federated_wiki_name?: FederatedWikiName | null;
414
459
  agent_loop_action_result_type: "wiki_page_read";
415
460
  } | {
416
461
  page_titles: string[];
@@ -431,6 +476,10 @@ type AgentLoopActionResult = {
431
476
  } | {
432
477
  trigger_id: ScheduledAgentTriggerId;
433
478
  agent_loop_action_result_type: "scheduled_trigger_deleted";
479
+ } | {
480
+ artifact_reference: ArtifactReference1;
481
+ artifact_identifier: string;
482
+ agent_loop_action_result_type: "artifact_previewed";
434
483
  };
435
484
  /**
436
485
  * The title of a wiki page or section
@@ -2282,7 +2331,7 @@ interface ArtifactUpdate {
2282
2331
  identifier: string;
2283
2332
  title: string;
2284
2333
  artifact_type: ArtifactType;
2285
- data?: ArtifactPreview | null;
2334
+ data?: ArtifactDataPreview | null;
2286
2335
  artifact_reference: ArtifactReference1;
2287
2336
  }
2288
2337
  interface ArtifactReference1 {
@@ -2619,7 +2668,7 @@ interface ArtifactUpdate1 {
2619
2668
  identifier: string;
2620
2669
  title: string;
2621
2670
  artifact_type: ArtifactType;
2622
- data?: ArtifactPreview | null;
2671
+ data?: ArtifactDataPreview | null;
2623
2672
  artifact_reference: ArtifactReference1;
2624
2673
  }
2625
2674
  /**
@@ -3492,7 +3541,12 @@ interface ConfidenceAnalysis1 {
3492
3541
  artifact_assumptions: CheckedTopic[];
3493
3542
  }
3494
3543
  interface ThreadParticipants {
3495
- user_ids: PromptQlUserId[];
3544
+ user_profiles: UserInfo[];
3545
+ }
3546
+ interface UserInfo {
3547
+ user_id: PromptQlUserId;
3548
+ display_name: string;
3549
+ email: string;
3496
3550
  }
3497
3551
  /**
3498
3552
  * Metadata about an uploaded artifact, fetched before agent starts
@@ -3621,12 +3675,6 @@ type Boolean_Comparison_Exp = {
3621
3675
  _neq?: InputMaybe<Scalars['Boolean']['input']>;
3622
3676
  _nin?: InputMaybe<Array<Scalars['Boolean']['input']>>;
3623
3677
  };
3624
- type GetProjectInfoOutput = {
3625
- __typename?: 'GetProjectInfoOutput';
3626
- projectId: Scalars['String']['output'];
3627
- projectName: Scalars['String']['output'];
3628
- promptqlConsoleUrl: Scalars['String']['output'];
3629
- };
3630
3678
  /** Boolean expression to compare columns of type "Int". All fields are combined with logical 'AND'. */
3631
3679
  type Int_Comparison_Exp = {
3632
3680
  _eq?: InputMaybe<Scalars['Int']['input']>;
@@ -3821,6 +3869,21 @@ type Custom_Claim_Owners_Bool_Exp = {
3821
3869
  owner?: InputMaybe<Promptql_Users_Bool_Exp>;
3822
3870
  owner_id?: InputMaybe<Uuid_Comparison_Exp>;
3823
3871
  };
3872
+ /** Boolean expression to filter rows from the table "feed_candidate_selected_messages". All fields are combined with a logical 'AND'. */
3873
+ type Feed_Candidate_Selected_Messages_Bool_Exp = {
3874
+ _and?: InputMaybe<Array<Feed_Candidate_Selected_Messages_Bool_Exp>>;
3875
+ _not?: InputMaybe<Feed_Candidate_Selected_Messages_Bool_Exp>;
3876
+ _or?: InputMaybe<Array<Feed_Candidate_Selected_Messages_Bool_Exp>>;
3877
+ created_at?: InputMaybe<Timestamptz_Comparison_Exp>;
3878
+ display_text?: InputMaybe<String_Comparison_Exp>;
3879
+ feed_candidate?: InputMaybe<Social_Feed_Candidates_Bool_Exp>;
3880
+ feed_candidate_id?: InputMaybe<Uuid_Comparison_Exp>;
3881
+ id?: InputMaybe<Bigint_Comparison_Exp>;
3882
+ message_id?: InputMaybe<String_Comparison_Exp>;
3883
+ message_type?: InputMaybe<String_Comparison_Exp>;
3884
+ thread_event?: InputMaybe<Thread_Events_Bool_Exp>;
3885
+ thread_event_id?: InputMaybe<Bigint_Comparison_Exp>;
3886
+ };
3824
3887
  type Jsonb_Cast_Exp = {
3825
3888
  String?: InputMaybe<String_Comparison_Exp>;
3826
3889
  };
@@ -4357,6 +4420,7 @@ type Social_Feed_Candidates_Bool_Exp = {
4357
4420
  created_at?: InputMaybe<Timestamptz_Comparison_Exp>;
4358
4421
  id?: InputMaybe<Uuid_Comparison_Exp>;
4359
4422
  llm_output?: InputMaybe<Jsonb_Comparison_Exp>;
4423
+ selected_messages?: InputMaybe<Feed_Candidate_Selected_Messages_Bool_Exp>;
4360
4424
  summary?: InputMaybe<String_Comparison_Exp>;
4361
4425
  thread?: InputMaybe<Threads_V2_Bool_Exp>;
4362
4426
  thread_event_id?: InputMaybe<Bigint_Comparison_Exp>;
@@ -5333,6 +5397,11 @@ type GetThreadsQueryVariables = Exact<{
5333
5397
  order_by?: InputMaybe<Array<Threads_V2_Order_By> | Threads_V2_Order_By>;
5334
5398
  }>;
5335
5399
 
5400
+ declare const USER_AGENT = "PromptQL TypeScript SDK";
5401
+ /**
5402
+ * Regular expression for validating room name.
5403
+ */
5404
+ declare const ROOM_NAME_PATTERN: RegExp;
5336
5405
  /**
5337
5406
  * Options to initialize a PromptQL SDK client.
5338
5407
  */
@@ -5342,10 +5411,9 @@ type PromptQLSdkOptions = {
5342
5411
  */
5343
5412
  authHost?: string;
5344
5413
  /**
5345
- * Base URL of the PromptQL data plane. You can find it in Project Settings > PromptQL > PromptQL API on https://prompt.ql.app.
5346
- * The base URL must remove the request path, For example: https://promptql.ddn.hasura.app.
5414
+ * Host of the Hasura control plane.
5347
5415
  */
5348
- promptqlBaseUrl?: string;
5416
+ controlPlaneHost?: string;
5349
5417
  /**
5350
5418
  * Service account token of the PromptQL project.
5351
5419
  * Check out Hasura docs https://hasura.io/docs/3.0/project-configuration/project-management/service-accounts/#how-to-create-service-account to know how to create a token.
@@ -5518,14 +5586,49 @@ type CreateRoomArguments = Omit<CreateRoomMutationVariables, "visibility"> & {
5518
5586
  visibility: RoomVisibilityType;
5519
5587
  };
5520
5588
  /**
5521
- * Regular expression for validating room name.
5589
+ * Metadata response of an artifact.
5522
5590
  */
5523
- declare const ROOM_NAME_PATTERN: RegExp;
5591
+ type ArtifactMetadata = {
5592
+ artifact_id: string;
5593
+ version: number;
5594
+ title: string;
5595
+ description: string | null;
5596
+ artifact_type: ArtifactType2;
5597
+ user_id: string;
5598
+ metadata: unknown;
5599
+ project_id: string;
5600
+ created_at: string;
5601
+ size_bytes: number;
5602
+ scope?: {
5603
+ type: string;
5604
+ project_id: string;
5605
+ thread_id: string;
5606
+ thread_owner_user_id: string;
5607
+ };
5608
+ };
5609
+ /**
5610
+ * Project Info Output.
5611
+ */
5612
+ type ProjectInfoOutput = {
5613
+ projectId: string;
5614
+ projectName: string;
5615
+ projectHost: string;
5616
+ promptqlGraphQLUrl: string;
5617
+ promptqlConsoleUrl: string;
5618
+ };
5524
5619
 
5525
5620
  /**
5526
5621
  * Download artifact data.
5527
5622
  */
5528
5623
  declare function downloadArtifactData(host: string, artifactId: string, version: number, headers: Record<string, string>, customFetch?: typeof fetch): Promise<unknown>;
5624
+ /**
5625
+ * List artifacts by thread ID.
5626
+ */
5627
+ declare function listArtifactMetadataByThreadId(client: ApolloClient, projectId: string, threadId: string): Promise<ArtifactMetadata[]>;
5628
+ /**
5629
+ * Get artifact metadata by ID and version.
5630
+ */
5631
+ declare function getArtifactMetadata(host: string, artifactId: string, version: number, headers: Record<string, string>, customFetch?: typeof fetch): Promise<ArtifactMetadata>;
5529
5632
 
5530
5633
  /**
5531
5634
  * List rooms of the current project.The default limit is 10.
@@ -5588,32 +5691,67 @@ type PromptQLAuthTokenGeneratorOptions = {
5588
5691
  declare function createPromptQLAuthTokenGenerator(options: PromptQLAuthTokenGeneratorOptions): () => Promise<string>;
5589
5692
 
5590
5693
  /**
5591
- * Internal client options.
5694
+ * A low-level API class for PromptQL.
5592
5695
  */
5593
- type ClientOptions = {
5594
- client: ApolloClient;
5595
- buildId?: string;
5696
+ declare class PromptQLApi {
5697
+ controlPlaneUrl: string;
5698
+ options: PromptQLSdkOptions;
5596
5699
  defaultTimezone: string;
5597
- };
5700
+ private getAuthTokenFn;
5701
+ private project;
5702
+ private client;
5703
+ private wsClient;
5704
+ constructor(options: PromptQLSdkOptions);
5705
+ getAuthToken(): Promise<string>;
5706
+ getGraphQLClient(): Promise<ApolloClient>;
5707
+ /**
5708
+ * Get the basic information of the current PromptQL project.
5709
+ */
5710
+ getProjectInfo(): Promise<ProjectInfoOutput>;
5711
+ /**
5712
+ * Stop the GraphQL client and cleanup resources.
5713
+ */
5714
+ close(): void;
5715
+ }
5716
+
5717
+ /**
5718
+ * Artifact class implements the set of PromptQL artifact APIs.
5719
+ */
5720
+ declare class Artifact {
5721
+ private api;
5722
+ constructor(api: PromptQLApi);
5723
+ /**
5724
+ * List artifacts by thread ID.
5725
+ */
5726
+ listMetadataByThreadId(threadId: string): Promise<ArtifactMetadata[]>;
5727
+ /**
5728
+ * Download artifact data.
5729
+ */
5730
+ download(artifactId: string, version: number): Promise<unknown>;
5731
+ /**
5732
+ * Get artifact metadata.
5733
+ */
5734
+ getMetadata(artifactId: string, version: number): Promise<ArtifactMetadata>;
5735
+ }
5598
5736
 
5599
5737
  /**
5600
5738
  * Project class implements the set of PromptQL project APIs.
5601
5739
  */
5602
5740
  declare class Project {
5603
- private _options;
5604
- constructor(options: ClientOptions);
5741
+ private api;
5742
+ constructor(api: PromptQLApi);
5605
5743
  /**
5606
5744
  * Get the basic information of the current PromptQL project.
5607
5745
  */
5608
- info(): Promise<GetProjectInfoOutput>;
5746
+ info(): Promise<ProjectInfoOutput>;
5609
5747
  }
5610
5748
 
5611
5749
  /**
5612
5750
  * Room class implements the set of PromptQL room APIs.
5613
5751
  */
5614
5752
  declare class Room {
5615
- private _options;
5616
- constructor(options: ClientOptions);
5753
+ private api;
5754
+ constructor(api: PromptQLApi);
5617
5755
  /**
5618
5756
  * List PromptQL rooms. The default limit is 10.
5619
5757
  */
@@ -5632,8 +5770,8 @@ declare class Room {
5632
5770
  * Project class implements the set of PromptQL thread APIs.
5633
5771
  */
5634
5772
  declare class Thread {
5635
- private _options;
5636
- constructor(options: ClientOptions);
5773
+ private api;
5774
+ constructor(api: PromptQLApi);
5637
5775
  /**
5638
5776
  * List threads of the current project. The default limit is 10.
5639
5777
  */
@@ -5675,16 +5813,11 @@ declare class Thread {
5675
5813
  */
5676
5814
  declare class PromptQLSdk {
5677
5815
  constructor(options: PromptQLSdkOptions);
5678
- private _options;
5679
- private _wsClient;
5680
- private _fetchToken;
5816
+ private api;
5681
5817
  readonly thread: Thread;
5682
5818
  readonly project: Project;
5683
5819
  readonly room: Room;
5684
- /**
5685
- * Check if the PromptQL SDK instance is authenticated.
5686
- */
5687
- authenticated(): Promise<boolean>;
5820
+ readonly artifact: Artifact;
5688
5821
  /**
5689
5822
  * Stop the GraphQL client and cleanup resources.
5690
5823
  */
@@ -5729,10 +5862,16 @@ declare function getAgentPlanGenerationStartedEvent(eventData: ThreadEvent$1): P
5729
5862
  * Validate and return the PlanStepGenerated event that generates a query plan item.
5730
5863
  */
5731
5864
  declare function getAgentPlanStepGeneratedEvent(eventData: ThreadEvent$1): PlanStepGenerated | null;
5865
+ /**
5866
+ * The agent generated response with an extra messageId field.
5867
+ */
5868
+ type AgentGeneratedResponse = ComponentResponse5 & {
5869
+ messageId: string;
5870
+ };
5732
5871
  /**
5733
5872
  * Validate and return the GeneratedResponse from AgentMessage.
5734
5873
  */
5735
- declare function getAgentGeneratedResponse(eventData: ThreadEvent$1): ComponentResponse5 | null;
5874
+ declare function getAgentGeneratedResponse(eventData: ThreadEvent$1): AgentGeneratedResponse | null;
5736
5875
  /**
5737
5876
  * Validate and return the ProcessingStarted event from AgentMessage.
5738
5877
  */
@@ -5865,6 +6004,7 @@ type InteractionOutcomeStatus = KeysOfUnion<InteractionOutcome> | "agent_decline
5865
6004
  * The common output of the interaction finished event after evaluated from event v2 or v3.
5866
6005
  */
5867
6006
  type InteractionFinishedEvent = {
6007
+ messageId: string;
5868
6008
  status: InteractionOutcomeStatus | "unknown";
5869
6009
  reason?: string;
5870
6010
  timestamp?: string;
@@ -5878,5 +6018,9 @@ declare function getAgentInteractionFinishedEvent(eventData: ThreadEvent$1): Int
5878
6018
  * Get the message_id from the thread event data.
5879
6019
  */
5880
6020
  declare function getThreadEventMessageId(event: ThreadEvent$1 | undefined): string | undefined;
6021
+ /**
6022
+ * Build PromptQL URL from fqdn.
6023
+ */
6024
+ declare function buildPromptQLUrl(fqdn: string): string;
5881
6025
 
5882
- export { type AgentInteraction, type AgentLearningUpdate, type AgentLoopAction, type AgentLoopActionResult, type AgentLoopActionUpdate, type AgentLoopUpdate, type AgentState, type AgentTrigger, type AgentUpdate, type AgentUpdateContent, type AllTheServerTypes, type AnalyzedCodeAction, type AnalyzedCodeAction2, type ApolloClientOptions, type ArtifactError, type ArtifactErrorV1, type ArtifactId, type ArtifactPreview, type ArtifactReference, type ArtifactReference1, type ArtifactReference2, type ArtifactState, type ArtifactType, type ArtifactType2, type ArtifactUpdate, type ArtifactUpdate1, type AssumptionFactCheck, type BuildError, type BuildErrorV1, type BuiltUi, type BuiltUi1, type CancelAgentMessageMutationVariables, type CheckedAssumption, type CheckedTopic, type CodeAction, type CodeAction2, type CodeBlock, type CodeError, type CodeErrorV1, type CodeExecutionComplete, type CodeOutputAnalysis, type CodeOutputAnalysis1, type CodeOutputAnalyzed, type ComponentResponse, type ComponentResponse1, type ComponentResponse2, type ComponentResponse3, type ComponentResponse4, type ComponentResponse5, type ConfidenceAnalysis, type ConfidenceAnalysis1, type ConfidenceAnalysisLlmUsage, type ConfidenceAnalysisOutcome, type ConfidenceAnalysisUpdate, type ContextExplorerCompleted, type ContextExplorerStarted, type ContextExplorerState, type ContextExplorerUpdate, type CopyFileEntry, type CreateRoomArguments, type CurrentAction, type DataArtifactUpdated, type DataArtifactUpdatedV1, type Dependency, type EventOfKind, type ExternalKnowledgeExplorerAttempt, type ExternalKnowledgeExplorerAttempt1, type ExternalKnowledgeExplorerAttempt2, type ExternalKnowledgeExplorerState, type ExternalKnowledgeSummary, type ExternalKnowledgeTaskGeneratorState, type FactSource, type GeneratedCode, type GeneratedFile, type GeneratedFile2, type GeneratedProgramRunnerOutput, type GeneratedResponse, type GeneratedUiCode, type GeneratedUiCode1, type GetThreadEventOptions, type GetThreadsQueryVariables, type IPromptQLSdk, type Interaction, type InteractionDecision, type InteractionDecisionAccept, type InteractionDecisionDecline, type InteractionDecisionUpdate, type InteractionDeclineReason, type InteractionError, type InteractionFinishedEvent, type InteractionFinishedUpdate, type InteractionOutcome, type InteractionOutcome2, type InteractionOutcomeStatus, type InteractionUpdate, type InternalError, type InternalErrorV1, type InternalUpdate, type KeysOfUnion, type LearningSuggestion, type LearningSuggestionOutcome, type LearningSuggestionUpdate, type LearningSuggestionUpdateV1, type LlmResponse, type LlmUsage, type MessageProcessingStarted, type MessageProcessingState, type MessageProcessingUpdate, type NeedsSupportAnalysis, type NeedsSupportOutcome, type NeedsSupportUpdate, type OrchestratorState, type OrchestratorUpdate, type Order_By, type OutputEmitted, type OutputEmittedV1, type PipelineColumn, type PipelineColumnType, type PipelinePartitionSpec, type PipelinePartitionTransform, type PipelineProgress, type PipelineProgressV1, type PipelineRunStepDetails, type PipelineSchema, type PipelineSink, type PipelineSource, type PipelineStep, type PipelineTransform, type PlanGenerationStarted, type PlanState, type PlanStateStep, type PlanStepGenerated, type PlanningDecisionCompleted, type PlanningDecisionPlanningRequired, type PlanningDecisionStarted, type PlanningDecisionState, type PlanningDecisionUpdate, type ProgramId, type ProgramPackageName, type ProgramRunEvent, type ProgramRunResult, type ProgramRunnerAction, type ProgramRunnerAction2, type ProgramRunnerActionResult, type ProgramRunnerAttempt, type ProgramTransform, type ProgrammerState, type ProgrammerUpdate, PromptQLSdk, type PromptQLSdkOptions, type PromptQlConfigFeatureFlagModel, type PromptQlUserId, type PythonRunStepDetails, type PythonStep, ROOM_NAME_PATTERN, type ResponseGenerationState, type ResponseGenerationUpdate, type ResponseTruncation, type RoomFragment, type RoomVisibilityType, type RunConfigV1, type RunFinished, type RunFinishedOutcome, type RunFinishedV1, type RunProgramRequest, type RunProgramRequest2, type RunSavedProgramRequest, type RunSavedProgramRequest2, type RunStarted, type RunStartedV1, type RunStepDetails, type SavedProgramRunnerStage, type SavedProgramRunnerState, type SavedProgramRunnerUpdate, type SavedProgramRunnerUpdateV0, type ScheduledAgentTriggerEventId, type ScheduledAgentTriggerId, type ScheduledAgentTriggerPayload, type ScheduledAgentTriggerPayloadV1, type ScheduledAgentTriggerType, type SchemaContext, type SchemaContext1, type SchemaExplored, type SchemaExplorerCompleted, type SchemaExplorerStarted, type SchemaExplorerState, type SchemaExplorerUpdate, type SchemaTask, type SchemaTasksGenerationCompleted, type SchemaTasksGenerationStarted, type SchemaTasksGenerationState, type SchemaTasksGenerationUpdate, type SendMessageToThreadArguments, type SendMessageToThreadOutput, type SendThreadMessageMutationVariables, type ShelfActionEvent, type ShelfSink, type ShelfUpdate, type ShelfUpdateV1, type SkillType, type SocialFeedRating, type SocialFeedRatingLlmUsage, type SocialFeedRatingOutcome, type SocialFeedRatingUpdate, type Span, type Sql, type SqlError, type SqlErrorType, type SqlErrorV1, type SqlExecuteCompleted, type SqlExecuteCompletedV1, type SqlExecuteOutcome, type SqlExecuteOutcome2, type SqlExecuteStarted, type SqlExecuteStartedV1, type SqlQueryId, type SqlRunStepDetails, type SqlSource, type SqlStep, type StartThreadArguments, type StartThreadMutationVariables, type StartThreadOutput, type StartingOrchestrator, type Step, type StepExecutionFinished, type StepExecutionFinishedV1, type StepExecutionStarted, type StepExecutionStartedV1, type StepState, type StepUpdate, type StreamThreadEventOptions, type SummaryAction, type TasksGenerated, type Teaching, type TeachingId, type TeachingOutcome, type TeachingState, type ThreadEvent, type ThreadEvent$1 as ThreadEventData, type ThreadFragment, type ThreadParticipants, type TransactionId, type TzWrapper, type UiBuild, type UiBuild2, type UiBuildFailure, type UiBuildResult, type UiBuildRunStepDetails, type UiBuildStep, type UiMetadata, type UiProgrammerState, type UiProgrammerUpdate, type UserCancel, type UserCancelEvent, type UserInteraction, type UserMessage, type UserMessageEvent, type UserUpload, type UserUploadMetadata, type Version, type VersionedAgentUpdate, type VersionedOrUnversionedAgentUpdate, type Warning, type WikiAuditId, type WikiChange, type WikiContent, type WikiDelta, type WikiExplorerCompleted, type WikiExplorerStarted, type WikiExplorerState, type WikiExplorerUpdate, type WikiGenerationOutcome, type WikiGenerationUpdate, type WikiInfoGenerated, type WikiLearningSuggestionUpdate, type WikiPageV1, type WikiSection, type WikiSelectionUpdate, type WikiTitle, cancelAgentMessage, createApolloClient, createPromptQLAuthTokenGenerator, createRoom, diffThreadEvents, downloadArtifactData, getAgentGeneratedResponse, getAgentInteractionDecisionAcceptInteractionEvent, getAgentInteractionDecisionDeclineInteractionEvent, getAgentInteractionFinishedEvent, getAgentMessageProcessingStartedEvent, getAgentOrchestratorContextExplorerCompletedEvent, getAgentOrchestratorContextExplorerStartedEvent, getAgentOrchestratorContextExplorerUpdateEvent, getAgentOrchestratorSchemaExplorerCodeExecutionCompleteEvent, getAgentOrchestratorSchemaExplorerCodeOutputAnalyzedEvent, getAgentOrchestratorSchemaExplorerCompletedEvent, getAgentOrchestratorSchemaExplorerGeneratedCodeEvent, getAgentOrchestratorSchemaExplorerSchemaExploredEvent, getAgentOrchestratorSchemaExplorerStartedEvent, getAgentOrchestratorSchemaExplorerUpdateEvent, getAgentOrchestratorSchemaTasksGeneratedEvent, getAgentOrchestratorSchemaTasksGenerationCompletedEvent, getAgentOrchestratorSchemaTasksGenerationStartedEvent, getAgentOrchestratorSchemaTasksGenerationUpdateEvent, getAgentOrchestratorStepProgrammerEvent, getAgentOrchestratorStepSavedProgramRunnerEvent, getAgentOrchestratorStepUiProgrammerEvent, getAgentOrchestratorStepUpdateEvent, getAgentOrchestratorUpdateEvent, getAgentOrchestratorWikiExplorerCompletedEvent, getAgentOrchestratorWikiExplorerStartedEvent, getAgentOrchestratorWikiExplorerUpdateEvent, getAgentOrchestratorWikiInfoGeneratedEvent, getAgentPlanGenerationStartedEvent, getAgentPlanStepGeneratedEvent, getAgentPlanningDecisionCompletedEvent, getAgentPlanningDecisionPlanningRequiredEvent, getAgentPlanningDecisionStartedEvent, getAgentPlanningDecisionUpdateEvent, getAgentStartingOrchestratorEvent, getThread, getThreadEventMessageId, getThreadEvents, getUserCancelEvent, getUserMessageEvent, isInteractionAnalyzing, listRooms, listThreads, sendThreadMessage, startThread, streamThreadMessageEvents, subscribeThreadEvents };
6026
+ export { type AgentGeneratedResponse, type AgentInteraction, type AgentLearningUpdate, type AgentLoopAction, type AgentLoopActionResult, type AgentLoopActionUpdate, type AgentLoopUpdate, type AgentState, type AgentTrigger, type AgentUpdate, type AgentUpdateContent, type AllTheServerTypes, type AnalyzedCodeAction, type AnalyzedCodeAction2, type ApolloClientOptions, type ArtifactDataPreview, type ArtifactError, type ArtifactErrorV1, type ArtifactId, type ArtifactMetadata, type ArtifactReference, type ArtifactReference1, type ArtifactReference2, type ArtifactState, type ArtifactType, type ArtifactType2, type ArtifactUpdate, type ArtifactUpdate1, type AssumptionFactCheck, type BuildError, type BuildErrorV1, type BuiltUi, type BuiltUi1, type CancelAgentMessageMutationVariables, type CheckedAssumption, type CheckedTopic, type CodeAction, type CodeAction2, type CodeBlock, type CodeError, type CodeErrorV1, type CodeExecutionComplete, type CodeOutputAnalysis, type CodeOutputAnalysis1, type CodeOutputAnalyzed, type ComponentResponse, type ComponentResponse1, type ComponentResponse2, type ComponentResponse3, type ComponentResponse4, type ComponentResponse5, type ConfidenceAnalysis, type ConfidenceAnalysis1, type ConfidenceAnalysisLlmUsage, type ConfidenceAnalysisOutcome, type ConfidenceAnalysisUpdate, type ContextExplorerCompleted, type ContextExplorerStarted, type ContextExplorerState, type ContextExplorerUpdate, type CopyFileEntry, type CreateRoomArguments, type CurrentAction, type DataArtifactUpdated, type DataArtifactUpdatedV1, type Dependency, type EventOfKind, type ExternalKnowledgeExplorerAttempt, type ExternalKnowledgeExplorerAttempt1, type ExternalKnowledgeExplorerAttempt2, type ExternalKnowledgeExplorerState, type ExternalKnowledgeSummary, type ExternalKnowledgeTaskGeneratorState, type FactSource, type FederatedWikiName, type GeneratedCode, type GeneratedFile, type GeneratedFile2, type GeneratedProgramRunnerOutput, type GeneratedResponse, type GeneratedUiCode, type GeneratedUiCode1, type GetThreadEventOptions, type GetThreadsQueryVariables, type IPromptQLSdk, type Interaction, type InteractionDecision, type InteractionDecisionAccept, type InteractionDecisionDecline, type InteractionDecisionUpdate, type InteractionDeclineReason, type InteractionError, type InteractionFinishedEvent, type InteractionFinishedUpdate, type InteractionOutcome, type InteractionOutcome2, type InteractionOutcomeStatus, type InteractionUpdate, type InternalError, type InternalErrorV1, type InternalUpdate, type KeysOfUnion, type LearningSuggestion, type LearningSuggestionOutcome, type LearningSuggestionUpdate, type LearningSuggestionUpdateV1, type LlmResponse, type LlmUsage, type MessageProcessingStarted, type MessageProcessingState, type MessageProcessingUpdate, type NeedsSupportAnalysis, type NeedsSupportOutcome, type NeedsSupportUpdate, type OrchestratorState, type OrchestratorUpdate, type Order_By, type OutputEmitted, type OutputEmittedV1, type PipelineColumn, type PipelineColumnType, type PipelinePartitionSpec, type PipelinePartitionTransform, type PipelineProgress, type PipelineProgressV1, type PipelineRunStepDetails, type PipelineSchema, type PipelineSink, type PipelineSource, type PipelineStep, type PipelineTransform, type PlanGenerationStarted, type PlanState, type PlanStateStep, type PlanStepGenerated, type PlanningDecisionCompleted, type PlanningDecisionPlanningRequired, type PlanningDecisionStarted, type PlanningDecisionState, type PlanningDecisionUpdate, type ProgramId, type ProgramPackageName, type ProgramRunEvent, type ProgramRunResult, type ProgramRunnerAction, type ProgramRunnerAction2, type ProgramRunnerActionResult, type ProgramRunnerAttempt, type ProgramTransform, type ProgrammerState, type ProgrammerUpdate, type ProjectInfoOutput, PromptQLSdk, type PromptQLSdkOptions, type PromptQlConfigFeatureFlagModel, type PromptQlUserId, type PythonRunStepDetails, type PythonStep, ROOM_NAME_PATTERN, type ResponseGenerationState, type ResponseGenerationUpdate, type ResponseTruncation, type RoomFragment, type RoomVisibilityType, type RunConfigV1, type RunFinished, type RunFinishedOutcome, type RunFinishedV1, type RunProgramRequest, type RunProgramRequest2, type RunSavedProgramRequest, type RunSavedProgramRequest2, type RunStarted, type RunStartedV1, type RunStepDetails, type SavedProgramRunnerStage, type SavedProgramRunnerState, type SavedProgramRunnerUpdate, type SavedProgramRunnerUpdateV0, type ScheduledAgentTriggerEventId, type ScheduledAgentTriggerId, type ScheduledAgentTriggerPayload, type ScheduledAgentTriggerPayloadV1, type ScheduledAgentTriggerType, type SchemaContext, type SchemaContext1, type SchemaExplored, type SchemaExplorerCompleted, type SchemaExplorerStarted, type SchemaExplorerState, type SchemaExplorerUpdate, type SchemaTask, type SchemaTasksGenerationCompleted, type SchemaTasksGenerationStarted, type SchemaTasksGenerationState, type SchemaTasksGenerationUpdate, type SendMessageToThreadArguments, type SendMessageToThreadOutput, type SendThreadMessageMutationVariables, type ShelfActionEvent, type ShelfSink, type ShelfUpdate, type ShelfUpdateV1, type SkillType, type SocialFeedRating, type SocialFeedRatingLlmUsage, type SocialFeedRatingOutcome, type SocialFeedRatingUpdate, type Span, type Sql, type SqlError, type SqlErrorType, type SqlErrorV1, type SqlExecuteCompleted, type SqlExecuteCompletedV1, type SqlExecuteOutcome, type SqlExecuteOutcome2, type SqlExecuteStarted, type SqlExecuteStartedV1, type SqlQueryId, type SqlRunStepDetails, type SqlSource, type SqlStep, type StartThreadArguments, type StartThreadMutationVariables, type StartThreadOutput, type StartingOrchestrator, type Step, type StepExecutionFinished, type StepExecutionFinishedV1, type StepExecutionStarted, type StepExecutionStartedV1, type StepState, type StepUpdate, type StreamThreadEventOptions, type SummaryAction, type TargetWikiPage, type TasksGenerated, type Teaching, type TeachingId, type TeachingOutcome, type TeachingState, type ThreadEvent, type ThreadEvent$1 as ThreadEventData, type ThreadFragment, type ThreadParticipants, type TransactionId, type TzWrapper, USER_AGENT, type UiBuild, type UiBuild2, type UiBuildFailure, type UiBuildResult, type UiBuildRunStepDetails, type UiBuildStep, type UiMetadata, type UiProgrammerState, type UiProgrammerUpdate, type UserCancel, type UserCancelEvent, type UserInfo, type UserInteraction, type UserMessage, type UserMessageEvent, type UserUpload, type UserUploadMetadata, type Version, type VersionedAgentUpdate, type VersionedOrUnversionedAgentUpdate, type Warning, type WikiAuditId, type WikiChange, type WikiContent, type WikiDelta, type WikiExplorerCompleted, type WikiExplorerStarted, type WikiExplorerState, type WikiExplorerUpdate, type WikiGenerationOutcome, type WikiGenerationUpdate, type WikiInfoGenerated, type WikiLearningSuggestionUpdate, type WikiPageV1, type WikiSection, type WikiSelectionUpdate, type WikiTitle, buildPromptQLUrl, cancelAgentMessage, createApolloClient, createPromptQLAuthTokenGenerator, createRoom, diffThreadEvents, downloadArtifactData, getAgentGeneratedResponse, getAgentInteractionDecisionAcceptInteractionEvent, getAgentInteractionDecisionDeclineInteractionEvent, getAgentInteractionFinishedEvent, getAgentMessageProcessingStartedEvent, getAgentOrchestratorContextExplorerCompletedEvent, getAgentOrchestratorContextExplorerStartedEvent, getAgentOrchestratorContextExplorerUpdateEvent, getAgentOrchestratorSchemaExplorerCodeExecutionCompleteEvent, getAgentOrchestratorSchemaExplorerCodeOutputAnalyzedEvent, getAgentOrchestratorSchemaExplorerCompletedEvent, getAgentOrchestratorSchemaExplorerGeneratedCodeEvent, getAgentOrchestratorSchemaExplorerSchemaExploredEvent, getAgentOrchestratorSchemaExplorerStartedEvent, getAgentOrchestratorSchemaExplorerUpdateEvent, getAgentOrchestratorSchemaTasksGeneratedEvent, getAgentOrchestratorSchemaTasksGenerationCompletedEvent, getAgentOrchestratorSchemaTasksGenerationStartedEvent, getAgentOrchestratorSchemaTasksGenerationUpdateEvent, getAgentOrchestratorStepProgrammerEvent, getAgentOrchestratorStepSavedProgramRunnerEvent, getAgentOrchestratorStepUiProgrammerEvent, getAgentOrchestratorStepUpdateEvent, getAgentOrchestratorUpdateEvent, getAgentOrchestratorWikiExplorerCompletedEvent, getAgentOrchestratorWikiExplorerStartedEvent, getAgentOrchestratorWikiExplorerUpdateEvent, getAgentOrchestratorWikiInfoGeneratedEvent, getAgentPlanGenerationStartedEvent, getAgentPlanStepGeneratedEvent, getAgentPlanningDecisionCompletedEvent, getAgentPlanningDecisionPlanningRequiredEvent, getAgentPlanningDecisionStartedEvent, getAgentPlanningDecisionUpdateEvent, getAgentStartingOrchestratorEvent, getArtifactMetadata, getThread, getThreadEventMessageId, getThreadEvents, getUserCancelEvent, getUserMessageEvent, isInteractionAnalyzing, listArtifactMetadataByThreadId, listRooms, listThreads, sendThreadMessage, startThread, streamThreadMessageEvents, subscribeThreadEvents };