@gpt-platform/client 0.10.1 → 0.10.2

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.ts CHANGED
@@ -606,7 +606,7 @@ declare class BrowserApiKeyError extends Error {
606
606
  }
607
607
 
608
608
  /** SDK version — updated automatically by mix update.sdks */
609
- declare const SDK_VERSION = "0.10.1";
609
+ declare const SDK_VERSION = "0.10.2";
610
610
  /** Default API version sent in every request — updated automatically by mix update.sdks */
611
611
  declare const DEFAULT_API_VERSION = "2026-03-23";
612
612
 
@@ -12222,16 +12222,132 @@ declare function createModelsNamespace(rb: RequestBuilder): {
12222
12222
  get(modelId: string, reqOptions?: RequestOptions): Promise<ModelInfo>;
12223
12223
  };
12224
12224
 
12225
- type Project = Record<string, unknown>;
12226
- type Milestone = Record<string, unknown>;
12227
- type Task = Record<string, unknown>;
12228
- type ProjectMember = Record<string, unknown>;
12229
- type ProjectRisk = Record<string, unknown>;
12230
- type ProjectActivity = Record<string, unknown>;
12231
- type ProjectUpdate = Record<string, unknown>;
12232
- type ProjectTemplate = Record<string, unknown>;
12233
- type TimeEntry = Record<string, unknown>;
12234
- type TaskLabel = Record<string, unknown>;
12225
+ /** @public A project record. */
12226
+ interface Project {
12227
+ id: string;
12228
+ type: string;
12229
+ attributes?: {
12230
+ name?: string;
12231
+ description?: string;
12232
+ status?: string;
12233
+ workspace_id?: string;
12234
+ template_id?: string;
12235
+ archived_at?: string | null;
12236
+ inserted_at?: string;
12237
+ updated_at?: string;
12238
+ [key: string]: unknown;
12239
+ };
12240
+ }
12241
+ /** @public A project milestone record. */
12242
+ interface Milestone {
12243
+ id: string;
12244
+ type: string;
12245
+ attributes?: {
12246
+ name?: string;
12247
+ description?: string;
12248
+ due_date?: string | null;
12249
+ project_id?: string;
12250
+ inserted_at?: string;
12251
+ updated_at?: string;
12252
+ [key: string]: unknown;
12253
+ };
12254
+ }
12255
+ /** @public A project task record. */
12256
+ interface Task {
12257
+ id: string;
12258
+ type: string;
12259
+ attributes?: {
12260
+ name?: string;
12261
+ description?: string;
12262
+ status?: string;
12263
+ project_id?: string;
12264
+ milestone_id?: string | null;
12265
+ assignee_id?: string | null;
12266
+ inserted_at?: string;
12267
+ updated_at?: string;
12268
+ [key: string]: unknown;
12269
+ };
12270
+ }
12271
+ /** @public A project member record. */
12272
+ interface ProjectMember {
12273
+ id: string;
12274
+ type: string;
12275
+ attributes?: {
12276
+ user_id?: string;
12277
+ role?: string;
12278
+ inserted_at?: string;
12279
+ [key: string]: unknown;
12280
+ };
12281
+ }
12282
+ /** @public A project risk record. */
12283
+ interface ProjectRisk {
12284
+ id: string;
12285
+ type: string;
12286
+ attributes?: {
12287
+ title?: string;
12288
+ description?: string;
12289
+ severity?: string;
12290
+ status?: string;
12291
+ project_id?: string;
12292
+ [key: string]: unknown;
12293
+ };
12294
+ }
12295
+ /** @public A project activity log entry. */
12296
+ interface ProjectActivity {
12297
+ id: string;
12298
+ type: string;
12299
+ attributes?: {
12300
+ action?: string;
12301
+ actor_id?: string;
12302
+ project_id?: string;
12303
+ inserted_at?: string;
12304
+ [key: string]: unknown;
12305
+ };
12306
+ }
12307
+ /** @public A project status update record. */
12308
+ interface ProjectUpdate {
12309
+ id: string;
12310
+ type: string;
12311
+ attributes?: {
12312
+ body?: string;
12313
+ author_id?: string;
12314
+ project_id?: string;
12315
+ inserted_at?: string;
12316
+ [key: string]: unknown;
12317
+ };
12318
+ }
12319
+ /** @public A project template record. */
12320
+ interface ProjectTemplate {
12321
+ id: string;
12322
+ type: string;
12323
+ attributes?: {
12324
+ name?: string;
12325
+ description?: string;
12326
+ [key: string]: unknown;
12327
+ };
12328
+ }
12329
+ /** @public A time entry record. */
12330
+ interface TimeEntry {
12331
+ id: string;
12332
+ type: string;
12333
+ attributes?: {
12334
+ task_id?: string;
12335
+ hours?: number;
12336
+ description?: string;
12337
+ logged_at?: string;
12338
+ [key: string]: unknown;
12339
+ };
12340
+ }
12341
+ /** @public A task label record. */
12342
+ interface TaskLabel {
12343
+ id: string;
12344
+ type: string;
12345
+ attributes?: {
12346
+ name?: string;
12347
+ color?: string;
12348
+ [key: string]: unknown;
12349
+ };
12350
+ }
12235
12351
 
12236
12352
  /** @public Input for creating a project. */
12237
12353
  interface CreateProjectInput {
@@ -12275,6 +12391,10 @@ interface AddMemberInput {
12275
12391
  user_id: string;
12276
12392
  role?: string;
12277
12393
  }
12394
+ /** @public Input for updating a project member's role. */
12395
+ interface UpdateMemberInput {
12396
+ role: string;
12397
+ }
12278
12398
  /** @public Input for creating a task label. */
12279
12399
  interface CreateLabelInput {
12280
12400
  name: string;
@@ -12304,6 +12424,356 @@ interface CompletionEstimate {
12304
12424
  confidence: number;
12305
12425
  blockers: string[];
12306
12426
  }
12427
+ /** @public Parameters for listing projects. */
12428
+ interface ListProjectsParams {
12429
+ /** Filter by project status (e.g., "active", "archived"). */
12430
+ status?: string;
12431
+ /** Sort field (e.g., "name", "-inserted_at"). */
12432
+ sort?: string;
12433
+ /** Page number (1-based). */
12434
+ page?: number;
12435
+ /** Number of results per page. */
12436
+ page_size?: number;
12437
+ }
12438
+ /** @public Type of the projects namespace returned by createProjectsNamespace. */
12439
+ type ProjectsNamespace = ReturnType<typeof createProjectsNamespace>;
12440
+ /**
12441
+ * Projects namespace — project management, milestones, tasks, time tracking, risks, and AI.
12442
+ *
12443
+ * @param rb - The request builder used for API communication.
12444
+ * @returns Projects namespace with sub-namespaces for projects, milestones, tasks, timeEntries,
12445
+ * members, risks, activity, updates, ai, templates, labels, and tags.
12446
+ *
12447
+ * @example
12448
+ * ```typescript
12449
+ * const client = new GptClient({ apiKey: 'sk_app_...' });
12450
+ *
12451
+ * // List active projects
12452
+ * const projects = await client.projects.list();
12453
+ *
12454
+ * // Create a project
12455
+ * const project = await client.projects.create({
12456
+ * name: 'Q2 Launch',
12457
+ * workspace_id: 'ws-uuid',
12458
+ * });
12459
+ *
12460
+ * // Add a task
12461
+ * const task = await client.projects.tasks.create({
12462
+ * name: 'Design review',
12463
+ * project_id: project.id,
12464
+ * });
12465
+ *
12466
+ * // Log time
12467
+ * await client.projects.timeEntries.create({
12468
+ * task_id: task.id,
12469
+ * hours: 2.5,
12470
+ * });
12471
+ * ```
12472
+ */
12473
+ declare function createProjectsNamespace(rb: RequestBuilder): {
12474
+ /**
12475
+ * List projects in the current workspace.
12476
+ *
12477
+ * @param params - Optional filter parameters.
12478
+ * @param options - Optional request options.
12479
+ * @returns Array of Project records.
12480
+ *
12481
+ * @example
12482
+ * ```typescript
12483
+ * const projects = await client.projects.list({ status: 'active' });
12484
+ * ```
12485
+ */
12486
+ list(params?: ListProjectsParams, options?: RequestOptions): Promise<Project[]>;
12487
+ /**
12488
+ * Get a project by ID.
12489
+ *
12490
+ * @param id - The project UUID.
12491
+ * @param options - Optional request options.
12492
+ * @returns The Project record.
12493
+ *
12494
+ * @example
12495
+ * ```typescript
12496
+ * const project = await client.projects.get('project-uuid');
12497
+ * ```
12498
+ */
12499
+ get(id: string, options?: RequestOptions): Promise<Project>;
12500
+ /**
12501
+ * Create a new project.
12502
+ *
12503
+ * @param data - Project creation input.
12504
+ * @param options - Optional request options.
12505
+ * @returns The created Project.
12506
+ *
12507
+ * @example
12508
+ * ```typescript
12509
+ * const project = await client.projects.create({
12510
+ * name: 'Q2 Launch',
12511
+ * workspace_id: 'ws-uuid',
12512
+ * });
12513
+ * ```
12514
+ */
12515
+ create(data: CreateProjectInput, options?: RequestOptions): Promise<Project>;
12516
+ /**
12517
+ * Update a project.
12518
+ *
12519
+ * @param id - The project UUID.
12520
+ * @param data - Update input.
12521
+ * @param options - Optional request options.
12522
+ * @returns The updated Project.
12523
+ */
12524
+ update(id: string, data: UpdateProjectInput, options?: RequestOptions): Promise<Project>;
12525
+ /**
12526
+ * Archive a project (soft delete).
12527
+ *
12528
+ * @param id - The project UUID.
12529
+ * @param options - Optional request options.
12530
+ */
12531
+ archive(id: string, options?: RequestOptions): Promise<void>;
12532
+ /**
12533
+ * Milestone management sub-namespace.
12534
+ */
12535
+ milestones: {
12536
+ /**
12537
+ * List milestones for a project.
12538
+ *
12539
+ * @param projectId - The project UUID.
12540
+ * @param options - Optional request options.
12541
+ * @returns Array of Milestone records.
12542
+ */
12543
+ list(projectId: string, options?: RequestOptions): Promise<Milestone[]>;
12544
+ /**
12545
+ * Create a milestone in a project.
12546
+ *
12547
+ * @param projectId - The project UUID.
12548
+ * @param data - Milestone creation input.
12549
+ * @param options - Optional request options.
12550
+ * @returns The created Milestone.
12551
+ *
12552
+ * @example
12553
+ * ```typescript
12554
+ * const milestone = await client.projects.milestones.create('proj-uuid', {
12555
+ * name: 'MVP Release',
12556
+ * project_id: 'proj-uuid',
12557
+ * });
12558
+ * ```
12559
+ */
12560
+ create(projectId: string, data: CreateMilestoneInput, options?: RequestOptions): Promise<Milestone>;
12561
+ };
12562
+ /**
12563
+ * Task management sub-namespace.
12564
+ */
12565
+ tasks: {
12566
+ /**
12567
+ * List tasks in a project.
12568
+ *
12569
+ * @param projectId - The project UUID.
12570
+ * @param options - Optional request options.
12571
+ * @returns Array of Task records.
12572
+ */
12573
+ list(projectId: string, options?: RequestOptions): Promise<Task[]>;
12574
+ /**
12575
+ * Create a task in a project.
12576
+ *
12577
+ * @param data - Task creation input.
12578
+ * @param options - Optional request options.
12579
+ * @returns The created Task.
12580
+ *
12581
+ * @example
12582
+ * ```typescript
12583
+ * const task = await client.projects.tasks.create({
12584
+ * name: 'Design review',
12585
+ * project_id: 'proj-uuid',
12586
+ * });
12587
+ * ```
12588
+ */
12589
+ create(data: CreateTaskInput, options?: RequestOptions): Promise<Task>;
12590
+ /**
12591
+ * Get AI-suggested assignees for a task.
12592
+ *
12593
+ * @param taskId - The task UUID.
12594
+ * @param options - Optional request options.
12595
+ * @returns Array of AssigneeSuggestion records.
12596
+ */
12597
+ suggestAssignee(taskId: string, options?: RequestOptions): Promise<AssigneeSuggestion[]>;
12598
+ };
12599
+ /**
12600
+ * Time entry management sub-namespace.
12601
+ */
12602
+ timeEntries: {
12603
+ /**
12604
+ * List time entries for a project.
12605
+ *
12606
+ * @param projectId - The project UUID.
12607
+ * @param options - Optional request options.
12608
+ * @returns Array of TimeEntry records.
12609
+ */
12610
+ list(projectId: string, options?: RequestOptions): Promise<TimeEntry[]>;
12611
+ /**
12612
+ * Log a time entry.
12613
+ *
12614
+ * @param data - Time entry creation input.
12615
+ * @param options - Optional request options.
12616
+ * @returns The created TimeEntry.
12617
+ *
12618
+ * @example
12619
+ * ```typescript
12620
+ * await client.projects.timeEntries.create({
12621
+ * task_id: 'task-uuid',
12622
+ * hours: 2.5,
12623
+ * });
12624
+ * ```
12625
+ */
12626
+ create(data: CreateTimeEntryInput, options?: RequestOptions): Promise<TimeEntry>;
12627
+ };
12628
+ /**
12629
+ * Project member management sub-namespace.
12630
+ */
12631
+ members: {
12632
+ /**
12633
+ * List members of a project.
12634
+ *
12635
+ * @param projectId - The project UUID.
12636
+ * @param options - Optional request options.
12637
+ * @returns Array of ProjectMember records.
12638
+ */
12639
+ list(projectId: string, options?: RequestOptions): Promise<ProjectMember[]>;
12640
+ /**
12641
+ * Add a member to a project.
12642
+ *
12643
+ * @param projectId - The project UUID.
12644
+ * @param data - Member addition input.
12645
+ * @param options - Optional request options.
12646
+ * @returns The created ProjectMember.
12647
+ */
12648
+ add(projectId: string, data: AddMemberInput, options?: RequestOptions): Promise<ProjectMember>;
12649
+ /**
12650
+ * Remove a member from a project.
12651
+ *
12652
+ * @param projectId - The project UUID.
12653
+ * @param memberId - The member UUID.
12654
+ * @param options - Optional request options.
12655
+ */
12656
+ remove(projectId: string, memberId: string, options?: RequestOptions): Promise<void>;
12657
+ };
12658
+ /**
12659
+ * Risk management sub-namespace.
12660
+ */
12661
+ risks: {
12662
+ /**
12663
+ * List risks for a project.
12664
+ *
12665
+ * @param projectId - The project UUID.
12666
+ * @param options - Optional request options.
12667
+ * @returns Array of ProjectRisk records.
12668
+ */
12669
+ list(projectId: string, options?: RequestOptions): Promise<ProjectRisk[]>;
12670
+ };
12671
+ /**
12672
+ * Activity feed sub-namespace.
12673
+ */
12674
+ activity: {
12675
+ /**
12676
+ * List activity records for a project (append-only log).
12677
+ *
12678
+ * @param projectId - The project UUID.
12679
+ * @param options - Optional request options.
12680
+ * @returns Array of ProjectActivity records.
12681
+ */
12682
+ list(projectId: string, options?: RequestOptions): Promise<ProjectActivity[]>;
12683
+ };
12684
+ /**
12685
+ * Status update sub-namespace.
12686
+ */
12687
+ updates: {
12688
+ /**
12689
+ * List status updates for a project.
12690
+ *
12691
+ * @param projectId - The project UUID.
12692
+ * @param options - Optional request options.
12693
+ * @returns Array of ProjectUpdate records.
12694
+ */
12695
+ list(projectId: string, options?: RequestOptions): Promise<ProjectUpdate[]>;
12696
+ };
12697
+ /**
12698
+ * AI-powered project management sub-namespace.
12699
+ */
12700
+ ai: {
12701
+ /**
12702
+ * Decompose a project goal into milestones and tasks using AI.
12703
+ *
12704
+ * @param projectId - The project UUID.
12705
+ * @param options - Optional request options.
12706
+ * @returns A DecomposedPlan with AI-generated structure.
12707
+ *
12708
+ * @example
12709
+ * ```typescript
12710
+ * const plan = await client.projects.ai.decompose('proj-uuid');
12711
+ * plan.milestones.forEach(m => console.log(m.name));
12712
+ * ```
12713
+ */
12714
+ decompose(projectId: string, options?: RequestOptions): Promise<DecomposedPlan>;
12715
+ /**
12716
+ * Get AI-estimated completion date for a project.
12717
+ *
12718
+ * @param projectId - The project UUID.
12719
+ * @param options - Optional request options.
12720
+ * @returns CompletionEstimate with date, confidence, and blockers.
12721
+ */
12722
+ estimateCompletion(projectId: string, options?: RequestOptions): Promise<CompletionEstimate>;
12723
+ /**
12724
+ * Get AI-generated summary for a project.
12725
+ *
12726
+ * @param projectId - The project UUID.
12727
+ * @param options - Optional request options.
12728
+ * @returns The project AI summary as a string.
12729
+ */
12730
+ getSummary(projectId: string, options?: RequestOptions): Promise<string>;
12731
+ };
12732
+ /**
12733
+ * Template management sub-namespace (client surface — read-only).
12734
+ */
12735
+ templates: {
12736
+ /**
12737
+ * List available project templates.
12738
+ *
12739
+ * @param options - Optional request options.
12740
+ * @returns Array of ProjectTemplate records.
12741
+ */
12742
+ list(options?: RequestOptions): Promise<ProjectTemplate[]>;
12743
+ };
12744
+ /**
12745
+ * Task label management sub-namespace.
12746
+ */
12747
+ labels: {
12748
+ /**
12749
+ * List task labels in the workspace.
12750
+ *
12751
+ * @param options - Optional request options.
12752
+ * @returns Array of TaskLabel records.
12753
+ */
12754
+ list(options?: RequestOptions): Promise<TaskLabel[]>;
12755
+ /**
12756
+ * Create a task label.
12757
+ *
12758
+ * @param data - Label creation input.
12759
+ * @param options - Optional request options.
12760
+ * @returns The created TaskLabel.
12761
+ */
12762
+ create(data: CreateLabelInput, options?: RequestOptions): Promise<TaskLabel>;
12763
+ };
12764
+ /**
12765
+ * Project tag management sub-namespace.
12766
+ */
12767
+ tags: {
12768
+ /**
12769
+ * List project tags in the workspace.
12770
+ *
12771
+ * @param options - Optional request options.
12772
+ * @returns Array of tag records.
12773
+ */
12774
+ list(options?: RequestOptions): Promise<unknown[]>;
12775
+ };
12776
+ };
12307
12777
 
12308
12778
  /** Attributes accepted by `POST /social/accounts` (create action). */
12309
12779
  interface SocialAccountCreateAttributes {
@@ -20469,11 +20939,15 @@ type UpsertCredentialAttributes = {
20469
20939
  auth_data: Record<string, unknown>;
20470
20940
  scope_level: string;
20471
20941
  };
20942
+ /** @public Action-specific parameters passed to the sync engine (e.g., cursor, filter criteria). */
20943
+ interface SyncActionParams {
20944
+ [key: string]: unknown;
20945
+ }
20472
20946
  /** Parameters for triggering a connector sync. */
20473
20947
  type TriggerSyncParams = {
20474
20948
  workspace_id: string;
20475
20949
  action_name: "full" | "incremental" | "webhook" | "manual";
20476
- params?: Record<string, unknown>;
20950
+ params?: SyncActionParams;
20477
20951
  };
20478
20952
  /** Result returned by sync trigger. */
20479
20953
  interface SyncTriggerResult {
@@ -23365,6 +23839,26 @@ type ExecutionEvent = TokenDeltaEvent | ToolCallEvent | ToolResultEvent | Iterat
23365
23839
  type AgentStatsResponse = AgentStats;
23366
23840
  /** Agent usage statistics response — re-exported from generated types. */
23367
23841
  type AgentUsageResponse = AgentUsage;
23842
+ /** @public Input for the teach (training correction) operation on an agent. */
23843
+ interface TeachParams {
23844
+ data: {
23845
+ attributes?: {
23846
+ /** Field names to mark as confirmed (correct). */
23847
+ confirmed_fields?: Array<string>;
23848
+ /** Per-field human-readable reasons for corrections. */
23849
+ correction_reasons?: Record<string, unknown>;
23850
+ /** Map of field names to corrected values. */
23851
+ corrections: Record<string, unknown>;
23852
+ /** The document ID used as the training source. */
23853
+ document_id: string;
23854
+ /** Optional free-text note for training context. */
23855
+ training_note?: string;
23856
+ /** Implicitly verify untouched fields. */
23857
+ verify_remaining?: boolean;
23858
+ };
23859
+ type?: "agent";
23860
+ };
23861
+ }
23368
23862
  /** Agent training statistics response. */
23369
23863
  interface TrainingStatsResponse {
23370
23864
  [key: string]: unknown;
@@ -23756,7 +24250,7 @@ declare function createAgentsNamespace(rb: RequestBuilder): {
23756
24250
  * const taught = await client.agents.teach('agt_01HXYZ...');
23757
24251
  * console.log(taught.attributes.last_trained_at); // ISO timestamp
23758
24252
  */
23759
- teach: (id: string, params?: Record<string, unknown>, options?: RequestOptions) => Promise<Agent>;
24253
+ teach: (id: string, params?: TeachParams, options?: RequestOptions) => Promise<Agent>;
23760
24254
  /**
23761
24255
  * Snapshots the agent's current state as a new immutable version.
23762
24256
  *
@@ -25278,6 +25772,21 @@ interface ClinicalSearchResult {
25278
25772
  similarity: number;
25279
25773
  };
25280
25774
  }
25775
+ /** Standard JSON:API list parameters for clinical resources. */
25776
+ interface ClinicalListParams {
25777
+ /** Filter results. */
25778
+ filter?: Record<string, unknown>;
25779
+ /** Sort by field(s). Prefix with '-' for descending. */
25780
+ sort?: string;
25781
+ /** Pagination parameters. */
25782
+ page?: {
25783
+ count?: boolean;
25784
+ limit?: number;
25785
+ offset?: number;
25786
+ };
25787
+ /** Include related resources (comma-separated). */
25788
+ include?: string;
25789
+ }
25281
25790
  /**
25282
25791
  * Clinical namespace — patient management, sessions, notes, health data, and care plans.
25283
25792
  *
@@ -25327,7 +25836,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
25327
25836
  * });
25328
25837
  * ```
25329
25838
  */
25330
- list: (params?: Record<string, unknown>, options?: RequestOptions) => Promise<ClinicalPatient[]>;
25839
+ list: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalPatient[]>;
25331
25840
  /**
25332
25841
  * Get a single patient by ID.
25333
25842
  *
@@ -25471,7 +25980,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
25471
25980
  * @param options - Request options
25472
25981
  * @returns Array of {@link ClinicalSession} records
25473
25982
  */
25474
- list: (params?: Record<string, unknown>, options?: RequestOptions) => Promise<ClinicalSession[]>;
25983
+ list: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalSession[]>;
25475
25984
  /**
25476
25985
  * List sessions for a specific patient.
25477
25986
  *
@@ -25577,7 +26086,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
25577
26086
  * @param options - Request options
25578
26087
  * @returns Array of {@link ClinicalNote} records
25579
26088
  */
25580
- list: (params?: Record<string, unknown>, options?: RequestOptions) => Promise<ClinicalNote[]>;
26089
+ list: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalNote[]>;
25581
26090
  /**
25582
26091
  * Get a single note by ID.
25583
26092
  *
@@ -25644,7 +26153,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
25644
26153
  * @param options - Request options
25645
26154
  * @returns Array of archived {@link ClinicalNote} records
25646
26155
  */
25647
- listArchived: (params?: Record<string, unknown>, options?: RequestOptions) => Promise<ClinicalNote[]>;
26156
+ listArchived: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalNote[]>;
25648
26157
  /**
25649
26158
  * Approve a clinical note (HITL workflow).
25650
26159
  *
@@ -25713,7 +26222,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
25713
26222
  * @param options - Request options
25714
26223
  * @returns Array of {@link ClinicalHealthMetric} records
25715
26224
  */
25716
- list: (params?: Record<string, unknown>, options?: RequestOptions) => Promise<ClinicalHealthMetric[]>;
26225
+ list: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalHealthMetric[]>;
25717
26226
  /**
25718
26227
  * Get a single health metric by ID.
25719
26228
  *
@@ -25793,7 +26302,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
25793
26302
  * @param options - Request options
25794
26303
  * @returns Array of archived {@link ClinicalHealthMetric} records
25795
26304
  */
25796
- listArchived: (params?: Record<string, unknown>, options?: RequestOptions) => Promise<ClinicalHealthMetric[]>;
26305
+ listArchived: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalHealthMetric[]>;
25797
26306
  };
25798
26307
  /**
25799
26308
  * Manage meal plans for clinical patients.
@@ -25806,7 +26315,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
25806
26315
  * @param options - Request options
25807
26316
  * @returns Array of {@link ClinicalMealPlan} records
25808
26317
  */
25809
- list: (params?: Record<string, unknown>, options?: RequestOptions) => Promise<ClinicalMealPlan[]>;
26318
+ list: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalMealPlan[]>;
25810
26319
  /**
25811
26320
  * Get a single meal plan by ID.
25812
26321
  *
@@ -25873,7 +26382,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
25873
26382
  * @param options - Request options
25874
26383
  * @returns Array of archived {@link ClinicalMealPlan} records
25875
26384
  */
25876
- listArchived: (params?: Record<string, unknown>, options?: RequestOptions) => Promise<ClinicalMealPlan[]>;
26385
+ listArchived: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalMealPlan[]>;
25877
26386
  };
25878
26387
  /**
25879
26388
  * Manage client goals (therapeutic targets and wellness milestones).
@@ -25886,7 +26395,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
25886
26395
  * @param options - Request options
25887
26396
  * @returns Array of {@link ClinicalClientGoal} records
25888
26397
  */
25889
- list: (params?: Record<string, unknown>, options?: RequestOptions) => Promise<ClinicalClientGoal[]>;
26398
+ list: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalClientGoal[]>;
25890
26399
  /**
25891
26400
  * Get a single client goal by ID.
25892
26401
  *
@@ -25953,7 +26462,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
25953
26462
  * @param options - Request options
25954
26463
  * @returns Array of archived {@link ClinicalClientGoal} records
25955
26464
  */
25956
- listArchived: (params?: Record<string, unknown>, options?: RequestOptions) => Promise<ClinicalClientGoal[]>;
26465
+ listArchived: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalClientGoal[]>;
25957
26466
  /**
25958
26467
  * Batch reorder client goals by updating their positions.
25959
26468
  *
@@ -25983,7 +26492,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
25983
26492
  * @param options - Request options
25984
26493
  * @returns Array of {@link ClinicalClientSupplement} records
25985
26494
  */
25986
- list: (params?: Record<string, unknown>, options?: RequestOptions) => Promise<ClinicalClientSupplement[]>;
26495
+ list: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalClientSupplement[]>;
25987
26496
  /**
25988
26497
  * Get a single supplement prescription by ID.
25989
26498
  *
@@ -26051,7 +26560,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
26051
26560
  * @param options - Request options
26052
26561
  * @returns Array of archived {@link ClinicalClientSupplement} records
26053
26562
  */
26054
- listArchived: (params?: Record<string, unknown>, options?: RequestOptions) => Promise<ClinicalClientSupplement[]>;
26563
+ listArchived: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalClientSupplement[]>;
26055
26564
  };
26056
26565
  /**
26057
26566
  * Manage clinical deliveries (care plan items sent to patients).
@@ -26064,7 +26573,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
26064
26573
  * @param options - Request options
26065
26574
  * @returns Array of {@link ClinicalDelivery} records
26066
26575
  */
26067
- list: (params?: Record<string, unknown>, options?: RequestOptions) => Promise<ClinicalDelivery[]>;
26576
+ list: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalDelivery[]>;
26068
26577
  /**
26069
26578
  * Get a single delivery by ID.
26070
26579
  *
@@ -26103,7 +26612,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
26103
26612
  * @param options - Request options
26104
26613
  * @returns Array of {@link ClinicalPracticeResource} records
26105
26614
  */
26106
- list: (params?: Record<string, unknown>, options?: RequestOptions) => Promise<ClinicalPracticeResource[]>;
26615
+ list: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalPracticeResource[]>;
26107
26616
  /**
26108
26617
  * Get a single practice resource by ID.
26109
26618
  *
@@ -26170,7 +26679,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
26170
26679
  * @param options - Request options
26171
26680
  * @returns Array of archived {@link ClinicalPracticeResource} records
26172
26681
  */
26173
- listArchived: (params?: Record<string, unknown>, options?: RequestOptions) => Promise<ClinicalPracticeResource[]>;
26682
+ listArchived: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalPracticeResource[]>;
26174
26683
  /**
26175
26684
  * List application-level catalog practice resources.
26176
26685
  *
@@ -26213,7 +26722,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
26213
26722
  * @param options - Request options
26214
26723
  * @returns Array of archived {@link ClinicalPracticeResource} catalog records
26215
26724
  */
26216
- listArchivedCatalog: (params?: Record<string, unknown>, options?: RequestOptions) => Promise<ClinicalPracticeResource[]>;
26725
+ listArchivedCatalog: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalPracticeResource[]>;
26217
26726
  /**
26218
26727
  * List distinct practice resource categories in a workspace.
26219
26728
  *
@@ -26368,7 +26877,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
26368
26877
  * @param options - Request options
26369
26878
  * @returns Array of archived {@link ClinicalPracticeTool} records
26370
26879
  */
26371
- listArchived: (params?: Record<string, unknown>, options?: RequestOptions) => Promise<ClinicalPracticeTool[]>;
26880
+ listArchived: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalPracticeTool[]>;
26372
26881
  /**
26373
26882
  * List distinct practice tool categories in a workspace.
26374
26883
  *
@@ -26432,7 +26941,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
26432
26941
  * @param options - Request options
26433
26942
  * @returns Array of archived {@link ClinicalPracticeTool} catalog records
26434
26943
  */
26435
- listArchivedCatalog: (params?: Record<string, unknown>, options?: RequestOptions) => Promise<ClinicalPracticeTool[]>;
26944
+ listArchivedCatalog: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalPracticeTool[]>;
26436
26945
  /**
26437
26946
  * List distinct catalog practice tool categories.
26438
26947
  *
@@ -26498,7 +27007,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
26498
27007
  * @param options - Request options
26499
27008
  * @returns Array of {@link ClinicalClientResourceAssignment} records
26500
27009
  */
26501
- list: (params?: Record<string, unknown>, options?: RequestOptions) => Promise<ClinicalClientResourceAssignment[]>;
27010
+ list: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalClientResourceAssignment[]>;
26502
27011
  /**
26503
27012
  * Get a single resource assignment by ID.
26504
27013
  *
@@ -26566,7 +27075,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
26566
27075
  * @param options - Request options
26567
27076
  * @returns Array of archived {@link ClinicalClientResourceAssignment} records
26568
27077
  */
26569
- listArchived: (params?: Record<string, unknown>, options?: RequestOptions) => Promise<ClinicalClientResourceAssignment[]>;
27078
+ listArchived: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalClientResourceAssignment[]>;
26570
27079
  };
26571
27080
  /**
26572
27081
  * Read-only access to the AI-generated supplement recommendation cache.
@@ -26583,7 +27092,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
26583
27092
  * @param options - Request options
26584
27093
  * @returns Array of {@link ClinicalSupplementRecCache} records
26585
27094
  */
26586
- list: (params?: Record<string, unknown>, options?: RequestOptions) => Promise<ClinicalSupplementRecCache[]>;
27095
+ list: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalSupplementRecCache[]>;
26587
27096
  /**
26588
27097
  * Get a single supplement recommendation cache entry by ID.
26589
27098
  *
@@ -26748,7 +27257,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
26748
27257
  * @param options - Request options
26749
27258
  * @returns Array of archived {@link ClinicalGoalTemplate} records
26750
27259
  */
26751
- listArchived: (params?: Record<string, unknown>, options?: RequestOptions) => Promise<ClinicalGoalTemplate[]>;
27260
+ listArchived: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalGoalTemplate[]>;
26752
27261
  /**
26753
27262
  * List application-level catalog goal templates.
26754
27263
  *
@@ -26791,7 +27300,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
26791
27300
  * @param options - Request options
26792
27301
  * @returns Array of archived {@link ClinicalGoalTemplate} catalog records
26793
27302
  */
26794
- listArchivedCatalog: (params?: Record<string, unknown>, options?: RequestOptions) => Promise<ClinicalGoalTemplate[]>;
27303
+ listArchivedCatalog: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalGoalTemplate[]>;
26795
27304
  /**
26796
27305
  * List distinct catalog goal template categories.
26797
27306
  *
@@ -26924,7 +27433,7 @@ declare class GptClient extends BaseClient {
26924
27433
  clone: (id: string, options?: RequestOptions) => Promise<Agent>;
26925
27434
  export: (id: string, options?: RequestOptions) => Promise<Agent>;
26926
27435
  analyzeTraining: (id: string, options?: RequestOptions) => Promise<Agent>;
26927
- teach: (id: string, params?: Record<string, unknown>, options?: RequestOptions) => Promise<Agent>;
27436
+ teach: (id: string, params?: TeachParams, options?: RequestOptions) => Promise<Agent>;
26928
27437
  publishVersion: (id: string, options?: RequestOptions) => Promise<Agent>;
26929
27438
  restoreVersion: (id: string, body?: {
26930
27439
  version_id?: string;
@@ -28798,7 +29307,7 @@ declare class GptClient extends BaseClient {
28798
29307
  };
28799
29308
  /** Project, milestone, task, time entry, member, risk, and AI management */
28800
29309
  readonly projects: {
28801
- list(params?: Record<string, unknown>, options?: RequestOptions): Promise<Project[]>;
29310
+ list(params?: ListProjectsParams, options?: RequestOptions): Promise<Project[]>;
28802
29311
  get(id: string, options?: RequestOptions): Promise<Project>;
28803
29312
  create(data: CreateProjectInput, options?: RequestOptions): Promise<Project>;
28804
29313
  update(id: string, data: UpdateProjectInput, options?: RequestOptions): Promise<Project>;
@@ -29224,4 +29733,4 @@ type SocialAPI = ReturnType<typeof createSocialNamespace>;
29224
29733
  type ModelsAPI = ReturnType<typeof createModelsNamespace>;
29225
29734
  type MemoryAPI = ReturnType<typeof createMemoryNamespace>;
29226
29735
 
29227
- export { API_KEY_PREFIXES, type AccessGrant, type ActivityFeedParams, type Agent, type AgentDeployment, type AgentVersion, type AgentsAPI, type AiAPI, type ApiKey, type AppInfo, type ApprovalRequiredEvent, type AttributeFilter$1 as AttributeFilter, type AuditLog, AuthenticationError, AuthorizationError, type BaseClientConfig, type BillingAPI, type BillingAccount, BrowserApiKeyError, type BuyAddonAttributes, type CampaignsAPI, type CapacityCalculatorResponse, CardDeclinedError, type CatalogAPI, type CatalogOptionType, type CatalogOptionValue, type CatalogPriceList, type CatalogPriceListEntry, type CatalogProduct, type CatalogProductVariant, type CatalogTaxonomy, type CatalogTaxonomyNode, type CatalogView, type ChannelTokenRequest, type ChannelTokenResponse, type ChatMessage, type ChatMessageFeedback, type ChatThread, type ClinicalSearchResult, type CommunicationAPI, type ComplianceFrameworkReadiness, type CompliancePosture, type ComposeWithAiAttributes, ConflictError, type CreateAgentAttributes, type CreateAgentTrainingExampleAttributes, type CreateAgentVersionAttributes, type CreateCatalogOptionTypeAttributes, type CreateCatalogOptionValueAttributes, type CreateCatalogPriceListAttributes, type CreateCatalogPriceListEntryAttributes, type CreateCatalogProductAttributes, type CreateCatalogProductVariantAttributes, type CreateCatalogTaxonomyAttributes, type CreateCatalogTaxonomyNodeAttributes, type CreateCatalogViewAttributes, type CreateFieldTemplateAttributes, type CreateTestResultAttributes, type CreateThreadAttributes, type CreditPackage, DEFAULT_API_VERSION, DEFAULT_RETRY_CONFIG, type DocumentSection, type DoneEvent, type EmailAPI, type ErrorEvent, type Execution, type ExecutionEvent, type ExtractionAPI, type ExtractionRowQueryParams, type ExtractionRowQueryResult, type FeatureDefinition, type FeatureSummary, type FeatureUsage, type FullscriptOrder, type FullscriptProduct, type FullscriptTreatmentPlan, GptClient, GptCoreError, type IdentityAPI, type Import, type ImportAdapter, type ImportRow, InsecureConnectionError, type InsertMessageAttributes, type Invitation, type Invoice, type IterationCompleteEvent, LOG_LEVELS, type ListModelsOptions, type ListPracticeToolsParams, type LogLevel, type Logger, type MemoryAPI, type MessageFeedback, type MjmlCompileResult, type ModelInfo, type ModelTier, type ModelsAPI, NetworkError, NotFoundError, type PaginatedResponse, type PaginationLinks, type PaginationOptions, type PaymentMethod, type PaymentMethodCreateAttributes, type PaymentMethodTokenizeAttributes, type PaymentMethodUpdateAttributes, PaymentRequiredError, type Plan, type PlanFeatureAllocation, type PlatformAPI, type PracticeToolCategory, RateLimitError, type RateMessageAttributes, RequestBuilder, type RequestOptions, type RetryConfig, RetryTimeoutError, SDK_VERSION, type SchedulingAPI, type SdkErrorEvent, SdkEventEmitter, type SdkEvents, type SdkRequestEvent, type SdkResponseEvent, type SdkRetryEvent, type SearchAPI, type SeatInfo, type SectionDocument, type SecurityConfig, type SendMessageAttributes, ServerError, type SessionNoteType, type SessionNoteValue, type SocialAPI, type SocketManager, type SocketManagerOptions, type StorageAPI, type StreamApprovalRequiredEvent, type StreamDoneEvent, type StreamDoneMetadata, type StreamErrorEvent, type StreamIterationCompleteEvent, type StreamMessageChunk, type StreamOptions, type StreamTokenEvent, type StreamToolCallEvent, type StreamToolResultEvent, SubscriptionConflictError, type TemplateVariableSchema, type TemplateVersion, type Tenant, type ThreadsAPI, TimeoutError, type TokenDeltaEvent, type ToolCallEvent, type ToolResultEvent, type Transaction, type TranscriptionChunkResult, type TranscriptionJob, type TranscriptionJobCreateOptions, type TranscriptionJobFinalizeOptions, type TranscriptionJobFinalizeResult, type TrendingSnapshot, type TrendingSnapshotItem, type TrendingWatch, type TriggerPipelineAttributes, type UpdateAgentAttributes, type UpdateAgentTrainingExampleAttributes, type UpdateAgentVersionAttributes, type UpdateCatalogOptionTypeAttributes, type UpdateCatalogOptionValueAttributes, type UpdateCatalogPriceListAttributes, type UpdateCatalogPriceListEntryAttributes, type UpdateCatalogProductAttributes, type UpdateCatalogProductVariantAttributes, type UpdateCatalogTaxonomyAttributes, type UpdateCatalogTaxonomyNodeAttributes, type UpdateCatalogViewAttributes, type UpdateFeatureDefinitionAttributes, type UpdateMessageAttributes, type UpdateThreadAttributes, type UsageHistoryEntry, type User, type UserProfile, ValidationError, type VoiceAPI, type VoiceFinalizeOptions, type VoiceRecording, type VoiceSession, type VoiceSessionStart, type VoiceStartOptions, type VoiceTranscribeOptions, type VoiceTranscribeResult, type VoiceTranscriptionResult, type Wallet, type WalletPaymentMethod, WebhookSignatureError, type WebhookVerifyOptions, Webhooks, type Workspace, type WorkspaceAgentConfig, buildHeaders, buildUserAgent, collectStreamedMessage, createChannelsNamespace, createImportsNamespace, handleApiError, isBrowserEnvironment, isSecureUrl, paginateAll, paginateToArray, retryWithBackoff, streamMessage, streamSSE, validateApiKey, withRetry };
29736
+ export { API_KEY_PREFIXES, type AccessGrant, type ActivityFeedParams, type AddMemberInput, type Agent, type AgentDeployment, type AgentVersion, type AgentsAPI, type AiAPI, type ApiKey, type AppInfo, type ApprovalRequiredEvent, type AssigneeSuggestion, type AttributeFilter$1 as AttributeFilter, type AuditLog, AuthenticationError, AuthorizationError, type BaseClientConfig, type BillingAPI, type BillingAccount, BrowserApiKeyError, type BuyAddonAttributes, type CampaignsAPI, type CapacityCalculatorResponse, CardDeclinedError, type CatalogAPI, type CatalogOptionType, type CatalogOptionValue, type CatalogPriceList, type CatalogPriceListEntry, type CatalogProduct, type CatalogProductVariant, type CatalogTaxonomy, type CatalogTaxonomyNode, type CatalogView, type ChannelTokenRequest, type ChannelTokenResponse, type ChatMessage, type ChatMessageFeedback, type ChatThread, type ClinicalSearchResult, type CommunicationAPI, type CompletionEstimate, type ComplianceFrameworkReadiness, type CompliancePosture, type ComposeWithAiAttributes, ConflictError, type CreateAgentAttributes, type CreateAgentTrainingExampleAttributes, type CreateAgentVersionAttributes, type CreateCatalogOptionTypeAttributes, type CreateCatalogOptionValueAttributes, type CreateCatalogPriceListAttributes, type CreateCatalogPriceListEntryAttributes, type CreateCatalogProductAttributes, type CreateCatalogProductVariantAttributes, type CreateCatalogTaxonomyAttributes, type CreateCatalogTaxonomyNodeAttributes, type CreateCatalogViewAttributes, type CreateFieldTemplateAttributes, type CreateLabelInput, type CreateMilestoneInput, type CreateProjectInput, type CreateTaskInput, type CreateTestResultAttributes, type CreateThreadAttributes, type CreateTimeEntryInput, type CreditPackage, DEFAULT_API_VERSION, DEFAULT_RETRY_CONFIG, type DecomposedPlan, type DocumentSection, type DoneEvent, type EmailAPI, type ErrorEvent, type Execution, type ExecutionEvent, type ExtractionAPI, type ExtractionRowQueryParams, type ExtractionRowQueryResult, type FeatureDefinition, type FeatureSummary, type FeatureUsage, type FullscriptOrder, type FullscriptProduct, type FullscriptTreatmentPlan, GptClient, GptCoreError, type IdentityAPI, type Import, type ImportAdapter, type ImportRow, InsecureConnectionError, type InsertMessageAttributes, type Invitation, type Invoice, type IterationCompleteEvent, LOG_LEVELS, type ListModelsOptions, type ListPracticeToolsParams, type ListProjectsParams, type LogLevel, type Logger, type MemoryAPI, type MessageFeedback, type Milestone, type MjmlCompileResult, type ModelInfo, type ModelTier, type ModelsAPI, NetworkError, NotFoundError, type PaginatedResponse, type PaginationLinks, type PaginationOptions, type PaymentMethod, type PaymentMethodCreateAttributes, type PaymentMethodTokenizeAttributes, type PaymentMethodUpdateAttributes, PaymentRequiredError, type Plan, type PlanFeatureAllocation, type PlatformAPI, type PracticeToolCategory, type Project, type ProjectActivity, type ProjectMember, type ProjectRisk, type ProjectTemplate, type ProjectUpdate, type ProjectsNamespace, RateLimitError, type RateMessageAttributes, RequestBuilder, type RequestOptions, type RetryConfig, RetryTimeoutError, SDK_VERSION, type SchedulingAPI, type SdkErrorEvent, SdkEventEmitter, type SdkEvents, type SdkRequestEvent, type SdkResponseEvent, type SdkRetryEvent, type SearchAPI, type SeatInfo, type SectionDocument, type SecurityConfig, type SendMessageAttributes, ServerError, type SessionNoteType, type SessionNoteValue, type SocialAPI, type SocketManager, type SocketManagerOptions, type StorageAPI, type StreamApprovalRequiredEvent, type StreamDoneEvent, type StreamDoneMetadata, type StreamErrorEvent, type StreamIterationCompleteEvent, type StreamMessageChunk, type StreamOptions, type StreamTokenEvent, type StreamToolCallEvent, type StreamToolResultEvent, SubscriptionConflictError, type SyncActionParams, type Task, type TaskLabel, type TeachParams, type TemplateVariableSchema, type TemplateVersion, type Tenant, type ThreadsAPI, type TimeEntry, TimeoutError, type TokenDeltaEvent, type ToolCallEvent, type ToolResultEvent, type Transaction, type TranscriptionChunkResult, type TranscriptionJob, type TranscriptionJobCreateOptions, type TranscriptionJobFinalizeOptions, type TranscriptionJobFinalizeResult, type TrendingSnapshot, type TrendingSnapshotItem, type TrendingWatch, type TriggerPipelineAttributes, type UpdateAgentAttributes, type UpdateAgentTrainingExampleAttributes, type UpdateAgentVersionAttributes, type UpdateCatalogOptionTypeAttributes, type UpdateCatalogOptionValueAttributes, type UpdateCatalogPriceListAttributes, type UpdateCatalogPriceListEntryAttributes, type UpdateCatalogProductAttributes, type UpdateCatalogProductVariantAttributes, type UpdateCatalogTaxonomyAttributes, type UpdateCatalogTaxonomyNodeAttributes, type UpdateCatalogViewAttributes, type UpdateFeatureDefinitionAttributes, type UpdateMemberInput, type UpdateMessageAttributes, type UpdateProjectInput, type UpdateThreadAttributes, type UsageHistoryEntry, type User, type UserProfile, ValidationError, type VoiceAPI, type VoiceFinalizeOptions, type VoiceRecording, type VoiceSession, type VoiceSessionStart, type VoiceStartOptions, type VoiceTranscribeOptions, type VoiceTranscribeResult, type VoiceTranscriptionResult, type Wallet, type WalletPaymentMethod, WebhookSignatureError, type WebhookVerifyOptions, Webhooks, type Workspace, type WorkspaceAgentConfig, buildHeaders, buildUserAgent, collectStreamedMessage, createChannelsNamespace, createImportsNamespace, createProjectsNamespace, handleApiError, isBrowserEnvironment, isSecureUrl, paginateAll, paginateToArray, retryWithBackoff, streamMessage, streamSSE, validateApiKey, withRetry };