@gpt-platform/client 0.10.0 → 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.mts +909 -269
- package/dist/index.d.ts +909 -269
- package/dist/index.js +54 -38
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +53 -38
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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.
|
|
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
|
-
|
|
12226
|
-
|
|
12227
|
-
|
|
12228
|
-
type
|
|
12229
|
-
|
|
12230
|
-
|
|
12231
|
-
|
|
12232
|
-
|
|
12233
|
-
|
|
12234
|
-
|
|
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,667 @@ 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
|
+
};
|
|
12777
|
+
|
|
12778
|
+
/** Attributes accepted by `POST /social/accounts` (create action). */
|
|
12779
|
+
interface SocialAccountCreateAttributes {
|
|
12780
|
+
platform: string;
|
|
12781
|
+
platform_user_id?: string;
|
|
12782
|
+
display_name?: string;
|
|
12783
|
+
avatar_url?: string;
|
|
12784
|
+
account_type?: string;
|
|
12785
|
+
is_active?: boolean;
|
|
12786
|
+
posting_enabled?: boolean;
|
|
12787
|
+
metadata?: Record<string, unknown>;
|
|
12788
|
+
}
|
|
12789
|
+
/** Attributes accepted by `PATCH /social/accounts/:id` (update action). */
|
|
12790
|
+
interface SocialAccountUpdateAttributes {
|
|
12791
|
+
display_name?: string;
|
|
12792
|
+
avatar_url?: string;
|
|
12793
|
+
metadata?: Record<string, unknown>;
|
|
12794
|
+
last_verified_at?: string;
|
|
12795
|
+
}
|
|
12796
|
+
/** Attributes accepted by `POST /social/posts` (create action). */
|
|
12797
|
+
interface SocialPostCreateAttributes {
|
|
12798
|
+
platform: string;
|
|
12799
|
+
content: string;
|
|
12800
|
+
media_urls?: string[];
|
|
12801
|
+
hashtags?: string[];
|
|
12802
|
+
link_url?: string;
|
|
12803
|
+
link_metadata?: Record<string, unknown>;
|
|
12804
|
+
max_retries?: number;
|
|
12805
|
+
social_account_id: string;
|
|
12806
|
+
social_campaign_id?: string;
|
|
12807
|
+
}
|
|
12808
|
+
/** Attributes accepted by `PATCH /social/posts/:id` (update action). */
|
|
12809
|
+
interface SocialPostUpdateAttributes {
|
|
12810
|
+
content?: string;
|
|
12811
|
+
media_urls?: string[];
|
|
12812
|
+
hashtags?: string[];
|
|
12813
|
+
link_url?: string;
|
|
12814
|
+
link_metadata?: Record<string, unknown>;
|
|
12815
|
+
platform_metadata?: Record<string, unknown>;
|
|
12816
|
+
}
|
|
12817
|
+
/** Attributes accepted by `POST /social/campaigns` (create action). */
|
|
12818
|
+
interface SocialCampaignCreateAttributes {
|
|
12819
|
+
/** Required. Campaign name. */
|
|
12820
|
+
name: string;
|
|
12821
|
+
/** Content brief that the AI will use to generate master copy. */
|
|
12822
|
+
content_brief?: string;
|
|
12823
|
+
/** Target platforms, e.g. ["twitter", "linkedin", "instagram"]. */
|
|
12824
|
+
target_platforms?: string[];
|
|
12825
|
+
/** Media URLs to include in generated posts. */
|
|
12826
|
+
media_urls?: string[];
|
|
12827
|
+
/** SEO keywords for content optimization. */
|
|
12828
|
+
seo_keywords?: string[];
|
|
12829
|
+
/** Optional brand identity UUID for tone/style guidance. */
|
|
12830
|
+
brand_identity_id?: string;
|
|
12831
|
+
}
|
|
12832
|
+
/** Attributes accepted by `PATCH /social/campaigns/:id` (update action). */
|
|
12833
|
+
interface SocialCampaignUpdateAttributes {
|
|
12834
|
+
name?: string;
|
|
12835
|
+
content_brief?: string;
|
|
12836
|
+
target_platforms?: string[];
|
|
12837
|
+
media_urls?: string[];
|
|
12838
|
+
seo_keywords?: string[];
|
|
12839
|
+
brand_identity_id?: string;
|
|
12840
|
+
}
|
|
12841
|
+
/**
|
|
12842
|
+
* Social media management namespace — accounts, posts, metrics, and campaigns.
|
|
12843
|
+
*
|
|
12844
|
+
* Covers the full social publishing lifecycle: connect accounts, create and
|
|
12845
|
+
* schedule posts, collect engagement metrics, and run AI-powered social campaigns.
|
|
12846
|
+
*
|
|
12847
|
+
* @example
|
|
12848
|
+
* ```typescript
|
|
12849
|
+
* const client = new GptClient({ apiKey: 'sk_app_...' });
|
|
12850
|
+
*
|
|
12851
|
+
* // List connected accounts
|
|
12852
|
+
* const accounts = await client.social.accounts.listByWorkspace('ws_abc');
|
|
12853
|
+
*
|
|
12854
|
+
* // Create and schedule a post
|
|
12855
|
+
* const post = await client.social.posts.create({ ... });
|
|
12856
|
+
* await client.social.posts.schedule(post.id, '2026-03-10T12:00:00Z');
|
|
12857
|
+
*
|
|
12858
|
+
* // Get latest metrics
|
|
12859
|
+
* const metrics = await client.social.metrics.latestForPost(post.id);
|
|
12860
|
+
* ```
|
|
12861
|
+
*/
|
|
12862
|
+
declare function createSocialNamespace(rb: RequestBuilder): {
|
|
12863
|
+
/** Social account management — connect, enable/disable, and deactivate accounts. */
|
|
12864
|
+
accounts: {
|
|
12865
|
+
/** List social accounts for a workspace. */
|
|
12866
|
+
listByWorkspace: (workspaceId: string, options?: RequestOptions) => Promise<unknown>;
|
|
12867
|
+
/** List social accounts by platform (e.g. "twitter", "instagram"). */
|
|
12868
|
+
listByPlatform: (platform: string, options?: RequestOptions) => Promise<unknown>;
|
|
12869
|
+
/** Get a single social account by ID. */
|
|
12870
|
+
get: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
12871
|
+
/** Connect a new social account. */
|
|
12872
|
+
create: (attributes: SocialAccountCreateAttributes, options?: RequestOptions) => Promise<unknown>;
|
|
12873
|
+
/** Update a social account. */
|
|
12874
|
+
update: (id: string, attributes: SocialAccountUpdateAttributes, options?: RequestOptions) => Promise<unknown>;
|
|
12875
|
+
/** Delete a social account. */
|
|
12876
|
+
delete: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
12877
|
+
/** Enable posting on an account. */
|
|
12878
|
+
enablePosting: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
12879
|
+
/** Disable posting on an account. */
|
|
12880
|
+
disablePosting: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
12881
|
+
/** Deactivate (disconnect) an account. */
|
|
12882
|
+
deactivate: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
12883
|
+
};
|
|
12884
|
+
/** Social post management — create, schedule, publish, cancel, and retry posts. */
|
|
12885
|
+
posts: {
|
|
12886
|
+
/** Create a new social post draft. */
|
|
12887
|
+
create: (attributes: SocialPostCreateAttributes, options?: RequestOptions) => Promise<unknown>;
|
|
12888
|
+
/** Get a single post by ID. */
|
|
12889
|
+
get: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
12890
|
+
/** Update a draft post. */
|
|
12891
|
+
update: (id: string, attributes: SocialPostUpdateAttributes, options?: RequestOptions) => Promise<unknown>;
|
|
12892
|
+
/** Delete a post. */
|
|
12893
|
+
delete: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
12894
|
+
/** Schedule a post for future publishing. */
|
|
12895
|
+
schedule: (id: string, scheduledAt: string, options?: RequestOptions) => Promise<unknown>;
|
|
12896
|
+
/** Publish a post immediately. */
|
|
12897
|
+
publishNow: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
12898
|
+
/** Cancel a scheduled or draft post. */
|
|
12899
|
+
cancel: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
12900
|
+
/** Retry a failed post. */
|
|
12901
|
+
retry: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
12902
|
+
/** Update SEO metadata on a post. */
|
|
12903
|
+
updateSeo: (id: string, attributes: {
|
|
12904
|
+
seo_score?: number;
|
|
12905
|
+
seo_analysis?: Record<string, unknown>;
|
|
12906
|
+
}, options?: RequestOptions) => Promise<unknown>;
|
|
12907
|
+
/** List scheduled posts. */
|
|
12908
|
+
listScheduled: (options?: RequestOptions) => Promise<unknown>;
|
|
12909
|
+
/** List posts by account. */
|
|
12910
|
+
listByAccount: (socialAccountId: string, options?: RequestOptions) => Promise<unknown>;
|
|
12911
|
+
/** List posts by campaign. */
|
|
12912
|
+
listByCampaign: (socialCampaignId: string, options?: RequestOptions) => Promise<unknown>;
|
|
12913
|
+
/** List all posts for a workspace. */
|
|
12914
|
+
listByWorkspace: (workspaceId: string, options?: RequestOptions) => Promise<unknown>;
|
|
12915
|
+
};
|
|
12916
|
+
/** Post engagement metrics — impressions, reach, likes, comments, and more. */
|
|
12917
|
+
metrics: {
|
|
12918
|
+
/** Get a single metric record by ID. */
|
|
12919
|
+
get: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
12920
|
+
/** List all metrics for a post. */
|
|
12921
|
+
listByPost: (socialPostId: string, options?: RequestOptions) => Promise<unknown>;
|
|
12922
|
+
/** Get the latest metric per collection window for a post. */
|
|
12923
|
+
latestForPost: (socialPostId: string, options?: RequestOptions) => Promise<unknown>;
|
|
12924
|
+
/** Aggregate metrics across all posts for a social account. */
|
|
12925
|
+
byAccount: (socialAccountId: string, options?: RequestOptions) => Promise<unknown>;
|
|
12926
|
+
/** Aggregate metrics across all posts in a social campaign. */
|
|
12927
|
+
byCampaign: (socialCampaignId: string, options?: RequestOptions) => Promise<unknown>;
|
|
12928
|
+
};
|
|
12929
|
+
/** AI-powered social campaigns — generate master copy and adapt for platforms. */
|
|
12930
|
+
campaigns: {
|
|
12931
|
+
/** List all social campaigns. */
|
|
12932
|
+
list: (options?: RequestOptions) => Promise<unknown>;
|
|
12933
|
+
/** Get a single campaign by ID. */
|
|
12934
|
+
get: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
12935
|
+
/**
|
|
12936
|
+
* Create a new social campaign.
|
|
12937
|
+
* Workspace is resolved from the authenticated user's context — do NOT
|
|
12938
|
+
* pass `workspace_id` in attributes.
|
|
12939
|
+
*/
|
|
12940
|
+
create: (attributes: SocialCampaignCreateAttributes, options?: RequestOptions) => Promise<unknown>;
|
|
12941
|
+
/** Update a campaign. */
|
|
12942
|
+
update: (id: string, attributes: SocialCampaignUpdateAttributes, options?: RequestOptions) => Promise<unknown>;
|
|
12943
|
+
/** Delete a campaign. */
|
|
12944
|
+
delete: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
12945
|
+
/** Schedule a campaign for a future date. */
|
|
12946
|
+
schedule: (id: string, scheduledAt: string, options?: RequestOptions) => Promise<unknown>;
|
|
12947
|
+
/** Cancel a campaign. */
|
|
12948
|
+
cancel: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
12949
|
+
/** Generate AI master copy from the campaign's content brief. */
|
|
12950
|
+
generateMasterCopy: (id: string, workspaceId: string, options?: RequestOptions) => Promise<unknown>;
|
|
12951
|
+
/** Adapt master copy for target platforms and create SocialPost drafts. */
|
|
12952
|
+
adaptForPlatforms: (id: string, workspaceId: string, socialAccountId: string, options?: RequestOptions) => Promise<unknown>;
|
|
12953
|
+
};
|
|
12954
|
+
/** Trending content discovery — snapshots, items, and watch alerts. */
|
|
12955
|
+
trending: {
|
|
12956
|
+
/**
|
|
12957
|
+
* Get a trending snapshot by ID.
|
|
12958
|
+
* @param id - Snapshot UUID
|
|
12959
|
+
* @returns TrendingSnapshot with metadata (query, enrichment level, item count)
|
|
12960
|
+
* @example
|
|
12961
|
+
* ```typescript
|
|
12962
|
+
* const snapshot = await client.social.trending.get('snap_abc');
|
|
12963
|
+
* ```
|
|
12964
|
+
*/
|
|
12965
|
+
get: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
12966
|
+
/**
|
|
12967
|
+
* List trending snapshots for a workspace.
|
|
12968
|
+
* @param workspaceId - Workspace UUID
|
|
12969
|
+
* @returns Array of TrendingSnapshot records
|
|
12970
|
+
* @example
|
|
12971
|
+
* ```typescript
|
|
12972
|
+
* const snapshots = await client.social.trending.listByWorkspace('ws_abc');
|
|
12973
|
+
* ```
|
|
12974
|
+
*/
|
|
12975
|
+
listByWorkspace: (workspaceId: string, options?: RequestOptions) => Promise<unknown>;
|
|
12976
|
+
/**
|
|
12977
|
+
* Create a trending snapshot (trigger on-demand collection).
|
|
12978
|
+
* @param attributes - Snapshot attributes (workspace_id, enrichment_level, etc.)
|
|
12979
|
+
* @returns Created TrendingSnapshot
|
|
12980
|
+
* @example
|
|
12981
|
+
* ```typescript
|
|
12982
|
+
* const snapshot = await client.social.trending.create({
|
|
12983
|
+
* workspace_id: 'ws_abc',
|
|
12984
|
+
* enrichment_level: 'scored',
|
|
12985
|
+
* fetched_at: new Date().toISOString(),
|
|
12986
|
+
* });
|
|
12987
|
+
* ```
|
|
12988
|
+
*/
|
|
12989
|
+
create: (attributes: {
|
|
12990
|
+
workspace_id: string;
|
|
12991
|
+
enrichment_level?: "raw" | "scored" | "summarized" | "full";
|
|
12992
|
+
query?: string;
|
|
12993
|
+
source_breakdown?: Record<string, unknown>;
|
|
12994
|
+
item_count?: number;
|
|
12995
|
+
fetched_at?: string;
|
|
12996
|
+
}, options?: RequestOptions) => Promise<unknown>;
|
|
12997
|
+
/** Delete a trending snapshot by ID. */
|
|
12998
|
+
delete: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
12999
|
+
/**
|
|
13000
|
+
* List trending snapshots within a date range.
|
|
13001
|
+
* @param from - Start date (ISO 8601 string)
|
|
13002
|
+
* @param to - End date (ISO 8601 string)
|
|
13003
|
+
* @returns Array of TrendingSnapshot records in the range
|
|
13004
|
+
* @example
|
|
13005
|
+
* ```typescript
|
|
13006
|
+
* const snapshots = await client.social.trending.listByDateRange(
|
|
13007
|
+
* '2026-03-01T00:00:00Z',
|
|
13008
|
+
* '2026-03-21T23:59:59Z',
|
|
13009
|
+
* );
|
|
13010
|
+
* ```
|
|
13011
|
+
*/
|
|
13012
|
+
listByDateRange: (from: string, to: string, options?: RequestOptions) => Promise<unknown>;
|
|
13013
|
+
/** Trending snapshot items — individual content pieces within a snapshot. */
|
|
13014
|
+
items: {
|
|
13015
|
+
/** Get a single trending item by ID. */
|
|
13016
|
+
get: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
13017
|
+
/**
|
|
13018
|
+
* List trending items for a snapshot.
|
|
13019
|
+
* @param snapshotId - Parent snapshot UUID
|
|
13020
|
+
* @returns Array of TrendingSnapshotItem records
|
|
13021
|
+
* @example
|
|
13022
|
+
* ```typescript
|
|
13023
|
+
* const items = await client.social.trending.items.listBySnapshot('snap_abc');
|
|
13024
|
+
* ```
|
|
13025
|
+
*/
|
|
13026
|
+
listBySnapshot: (snapshotId: string, options?: RequestOptions) => Promise<unknown>;
|
|
13027
|
+
};
|
|
13028
|
+
};
|
|
13029
|
+
/** Trending watch alerts — monitor topics and get notified on matches. */
|
|
13030
|
+
watches: {
|
|
13031
|
+
/**
|
|
13032
|
+
* Get a trending watch by ID.
|
|
13033
|
+
* @param id - Watch UUID
|
|
13034
|
+
* @returns TrendingWatch with conditions and notification config
|
|
13035
|
+
*/
|
|
13036
|
+
get: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
13037
|
+
/**
|
|
13038
|
+
* List trending watches for a workspace.
|
|
13039
|
+
* @param workspaceId - Workspace UUID
|
|
13040
|
+
* @returns Array of TrendingWatch records
|
|
13041
|
+
* @example
|
|
13042
|
+
* ```typescript
|
|
13043
|
+
* const watches = await client.social.watches.listByWorkspace('ws_abc');
|
|
13044
|
+
* ```
|
|
13045
|
+
*/
|
|
13046
|
+
listByWorkspace: (workspaceId: string, options?: RequestOptions) => Promise<unknown>;
|
|
13047
|
+
/**
|
|
13048
|
+
* Create a new trending watch alert.
|
|
13049
|
+
* @param attributes - Watch attributes (name, query, conditions, notification_config)
|
|
13050
|
+
* @returns Created TrendingWatch
|
|
13051
|
+
* @example
|
|
13052
|
+
* ```typescript
|
|
13053
|
+
* const watch = await client.social.watches.create({
|
|
13054
|
+
* workspace_id: 'ws_abc',
|
|
13055
|
+
* name: 'AI Industry News',
|
|
13056
|
+
* query: 'artificial intelligence',
|
|
13057
|
+
* conditions: { min_score: 0.7 },
|
|
13058
|
+
* notification_config: { channel: 'webhook', url: 'https://...' },
|
|
13059
|
+
* });
|
|
13060
|
+
* ```
|
|
13061
|
+
*/
|
|
13062
|
+
create: (attributes: {
|
|
13063
|
+
workspace_id: string;
|
|
13064
|
+
name: string;
|
|
13065
|
+
query: string;
|
|
13066
|
+
sources?: string[];
|
|
13067
|
+
conditions?: Record<string, unknown>;
|
|
13068
|
+
notification_config?: Record<string, unknown>;
|
|
13069
|
+
enabled?: boolean;
|
|
13070
|
+
}, options?: RequestOptions) => Promise<unknown>;
|
|
13071
|
+
/**
|
|
13072
|
+
* Update a trending watch.
|
|
13073
|
+
* @param id - Watch UUID
|
|
13074
|
+
* @param attributes - Fields to update (name, query, conditions, enabled, etc.)
|
|
13075
|
+
*/
|
|
13076
|
+
update: (id: string, attributes: {
|
|
13077
|
+
name?: string;
|
|
13078
|
+
query?: string;
|
|
13079
|
+
sources?: string[];
|
|
13080
|
+
conditions?: Record<string, unknown>;
|
|
13081
|
+
notification_config?: Record<string, unknown>;
|
|
13082
|
+
enabled?: boolean;
|
|
13083
|
+
}, options?: RequestOptions) => Promise<unknown>;
|
|
13084
|
+
/** Delete a trending watch by ID. */
|
|
13085
|
+
delete: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
13086
|
+
};
|
|
13087
|
+
};
|
|
12307
13088
|
|
|
12308
13089
|
/** Attributes accepted when creating a new ingestion claim. */
|
|
12309
13090
|
type CreateWatcherClaimAttributes = {
|
|
@@ -20158,11 +20939,15 @@ type UpsertCredentialAttributes = {
|
|
|
20158
20939
|
auth_data: Record<string, unknown>;
|
|
20159
20940
|
scope_level: string;
|
|
20160
20941
|
};
|
|
20942
|
+
/** @public Action-specific parameters passed to the sync engine (e.g., cursor, filter criteria). */
|
|
20943
|
+
interface SyncActionParams {
|
|
20944
|
+
[key: string]: unknown;
|
|
20945
|
+
}
|
|
20161
20946
|
/** Parameters for triggering a connector sync. */
|
|
20162
20947
|
type TriggerSyncParams = {
|
|
20163
20948
|
workspace_id: string;
|
|
20164
20949
|
action_name: "full" | "incremental" | "webhook" | "manual";
|
|
20165
|
-
params?:
|
|
20950
|
+
params?: SyncActionParams;
|
|
20166
20951
|
};
|
|
20167
20952
|
/** Result returned by sync trigger. */
|
|
20168
20953
|
interface SyncTriggerResult {
|
|
@@ -23054,6 +23839,26 @@ type ExecutionEvent = TokenDeltaEvent | ToolCallEvent | ToolResultEvent | Iterat
|
|
|
23054
23839
|
type AgentStatsResponse = AgentStats;
|
|
23055
23840
|
/** Agent usage statistics response — re-exported from generated types. */
|
|
23056
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
|
+
}
|
|
23057
23862
|
/** Agent training statistics response. */
|
|
23058
23863
|
interface TrainingStatsResponse {
|
|
23059
23864
|
[key: string]: unknown;
|
|
@@ -23445,7 +24250,7 @@ declare function createAgentsNamespace(rb: RequestBuilder): {
|
|
|
23445
24250
|
* const taught = await client.agents.teach('agt_01HXYZ...');
|
|
23446
24251
|
* console.log(taught.attributes.last_trained_at); // ISO timestamp
|
|
23447
24252
|
*/
|
|
23448
|
-
teach: (id: string, params?:
|
|
24253
|
+
teach: (id: string, params?: TeachParams, options?: RequestOptions) => Promise<Agent>;
|
|
23449
24254
|
/**
|
|
23450
24255
|
* Snapshots the agent's current state as a new immutable version.
|
|
23451
24256
|
*
|
|
@@ -24824,6 +25629,11 @@ interface UpdateClientResourceAssignmentAttributes {
|
|
|
24824
25629
|
interface TriggerPipelineResponse {
|
|
24825
25630
|
execution_id: string | null;
|
|
24826
25631
|
}
|
|
25632
|
+
/** Options for triggering a pipeline on a clinical session. */
|
|
25633
|
+
interface TriggerPipelineOptions {
|
|
25634
|
+
/** Slug of a specific pipeline to trigger. Defaults to "post-session-documentation". */
|
|
25635
|
+
pipeline_slug?: string;
|
|
25636
|
+
}
|
|
24827
25637
|
interface PatientAdherenceGoals {
|
|
24828
25638
|
total: number;
|
|
24829
25639
|
completed: number;
|
|
@@ -24962,6 +25772,21 @@ interface ClinicalSearchResult {
|
|
|
24962
25772
|
similarity: number;
|
|
24963
25773
|
};
|
|
24964
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
|
+
}
|
|
24965
25790
|
/**
|
|
24966
25791
|
* Clinical namespace — patient management, sessions, notes, health data, and care plans.
|
|
24967
25792
|
*
|
|
@@ -25011,7 +25836,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
|
|
|
25011
25836
|
* });
|
|
25012
25837
|
* ```
|
|
25013
25838
|
*/
|
|
25014
|
-
list: (params?:
|
|
25839
|
+
list: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalPatient[]>;
|
|
25015
25840
|
/**
|
|
25016
25841
|
* Get a single patient by ID.
|
|
25017
25842
|
*
|
|
@@ -25155,7 +25980,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
|
|
|
25155
25980
|
* @param options - Request options
|
|
25156
25981
|
* @returns Array of {@link ClinicalSession} records
|
|
25157
25982
|
*/
|
|
25158
|
-
list: (params?:
|
|
25983
|
+
list: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalSession[]>;
|
|
25159
25984
|
/**
|
|
25160
25985
|
* List sessions for a specific patient.
|
|
25161
25986
|
*
|
|
@@ -25224,18 +26049,27 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
|
|
|
25224
26049
|
*
|
|
25225
26050
|
* @param sessionId - Session UUID
|
|
25226
26051
|
* @param workspaceId - Workspace UUID
|
|
26052
|
+
* @param triggerOptions - Optional pipeline targeting (pipeline_slug)
|
|
25227
26053
|
* @param options - Request options
|
|
25228
26054
|
* @returns {@link TriggerPipelineResponse} with execution_id (may be null if pipeline not configured)
|
|
25229
26055
|
*
|
|
25230
26056
|
* @example
|
|
25231
26057
|
* ```typescript
|
|
26058
|
+
* // Default pipeline (post-session-documentation)
|
|
25232
26059
|
* const { execution_id } = await client.clinical.sessions.triggerPipeline(
|
|
25233
26060
|
* 'sess_xyz',
|
|
25234
26061
|
* 'ws_123',
|
|
25235
26062
|
* );
|
|
26063
|
+
*
|
|
26064
|
+
* // Specific pipeline by slug
|
|
26065
|
+
* const { execution_id: eid } = await client.clinical.sessions.triggerPipeline(
|
|
26066
|
+
* 'sess_xyz',
|
|
26067
|
+
* 'ws_123',
|
|
26068
|
+
* { pipeline_slug: 'chartless-quick-goals-update' },
|
|
26069
|
+
* );
|
|
25236
26070
|
* ```
|
|
25237
26071
|
*/
|
|
25238
|
-
triggerPipeline: (sessionId: string, workspaceId: string, options?: RequestOptions) => Promise<TriggerPipelineResponse>;
|
|
26072
|
+
triggerPipeline: (sessionId: string, workspaceId: string, triggerOptions?: TriggerPipelineOptions, options?: RequestOptions) => Promise<TriggerPipelineResponse>;
|
|
25239
26073
|
};
|
|
25240
26074
|
/**
|
|
25241
26075
|
* Manage clinical notes (SOAP notes, progress notes, AI-generated summaries).
|
|
@@ -25252,7 +26086,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
|
|
|
25252
26086
|
* @param options - Request options
|
|
25253
26087
|
* @returns Array of {@link ClinicalNote} records
|
|
25254
26088
|
*/
|
|
25255
|
-
list: (params?:
|
|
26089
|
+
list: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalNote[]>;
|
|
25256
26090
|
/**
|
|
25257
26091
|
* Get a single note by ID.
|
|
25258
26092
|
*
|
|
@@ -25319,7 +26153,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
|
|
|
25319
26153
|
* @param options - Request options
|
|
25320
26154
|
* @returns Array of archived {@link ClinicalNote} records
|
|
25321
26155
|
*/
|
|
25322
|
-
listArchived: (params?:
|
|
26156
|
+
listArchived: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalNote[]>;
|
|
25323
26157
|
/**
|
|
25324
26158
|
* Approve a clinical note (HITL workflow).
|
|
25325
26159
|
*
|
|
@@ -25388,7 +26222,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
|
|
|
25388
26222
|
* @param options - Request options
|
|
25389
26223
|
* @returns Array of {@link ClinicalHealthMetric} records
|
|
25390
26224
|
*/
|
|
25391
|
-
list: (params?:
|
|
26225
|
+
list: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalHealthMetric[]>;
|
|
25392
26226
|
/**
|
|
25393
26227
|
* Get a single health metric by ID.
|
|
25394
26228
|
*
|
|
@@ -25468,7 +26302,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
|
|
|
25468
26302
|
* @param options - Request options
|
|
25469
26303
|
* @returns Array of archived {@link ClinicalHealthMetric} records
|
|
25470
26304
|
*/
|
|
25471
|
-
listArchived: (params?:
|
|
26305
|
+
listArchived: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalHealthMetric[]>;
|
|
25472
26306
|
};
|
|
25473
26307
|
/**
|
|
25474
26308
|
* Manage meal plans for clinical patients.
|
|
@@ -25481,7 +26315,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
|
|
|
25481
26315
|
* @param options - Request options
|
|
25482
26316
|
* @returns Array of {@link ClinicalMealPlan} records
|
|
25483
26317
|
*/
|
|
25484
|
-
list: (params?:
|
|
26318
|
+
list: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalMealPlan[]>;
|
|
25485
26319
|
/**
|
|
25486
26320
|
* Get a single meal plan by ID.
|
|
25487
26321
|
*
|
|
@@ -25548,7 +26382,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
|
|
|
25548
26382
|
* @param options - Request options
|
|
25549
26383
|
* @returns Array of archived {@link ClinicalMealPlan} records
|
|
25550
26384
|
*/
|
|
25551
|
-
listArchived: (params?:
|
|
26385
|
+
listArchived: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalMealPlan[]>;
|
|
25552
26386
|
};
|
|
25553
26387
|
/**
|
|
25554
26388
|
* Manage client goals (therapeutic targets and wellness milestones).
|
|
@@ -25561,7 +26395,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
|
|
|
25561
26395
|
* @param options - Request options
|
|
25562
26396
|
* @returns Array of {@link ClinicalClientGoal} records
|
|
25563
26397
|
*/
|
|
25564
|
-
list: (params?:
|
|
26398
|
+
list: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalClientGoal[]>;
|
|
25565
26399
|
/**
|
|
25566
26400
|
* Get a single client goal by ID.
|
|
25567
26401
|
*
|
|
@@ -25628,7 +26462,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
|
|
|
25628
26462
|
* @param options - Request options
|
|
25629
26463
|
* @returns Array of archived {@link ClinicalClientGoal} records
|
|
25630
26464
|
*/
|
|
25631
|
-
listArchived: (params?:
|
|
26465
|
+
listArchived: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalClientGoal[]>;
|
|
25632
26466
|
/**
|
|
25633
26467
|
* Batch reorder client goals by updating their positions.
|
|
25634
26468
|
*
|
|
@@ -25658,7 +26492,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
|
|
|
25658
26492
|
* @param options - Request options
|
|
25659
26493
|
* @returns Array of {@link ClinicalClientSupplement} records
|
|
25660
26494
|
*/
|
|
25661
|
-
list: (params?:
|
|
26495
|
+
list: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalClientSupplement[]>;
|
|
25662
26496
|
/**
|
|
25663
26497
|
* Get a single supplement prescription by ID.
|
|
25664
26498
|
*
|
|
@@ -25726,7 +26560,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
|
|
|
25726
26560
|
* @param options - Request options
|
|
25727
26561
|
* @returns Array of archived {@link ClinicalClientSupplement} records
|
|
25728
26562
|
*/
|
|
25729
|
-
listArchived: (params?:
|
|
26563
|
+
listArchived: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalClientSupplement[]>;
|
|
25730
26564
|
};
|
|
25731
26565
|
/**
|
|
25732
26566
|
* Manage clinical deliveries (care plan items sent to patients).
|
|
@@ -25739,7 +26573,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
|
|
|
25739
26573
|
* @param options - Request options
|
|
25740
26574
|
* @returns Array of {@link ClinicalDelivery} records
|
|
25741
26575
|
*/
|
|
25742
|
-
list: (params?:
|
|
26576
|
+
list: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalDelivery[]>;
|
|
25743
26577
|
/**
|
|
25744
26578
|
* Get a single delivery by ID.
|
|
25745
26579
|
*
|
|
@@ -25778,7 +26612,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
|
|
|
25778
26612
|
* @param options - Request options
|
|
25779
26613
|
* @returns Array of {@link ClinicalPracticeResource} records
|
|
25780
26614
|
*/
|
|
25781
|
-
list: (params?:
|
|
26615
|
+
list: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalPracticeResource[]>;
|
|
25782
26616
|
/**
|
|
25783
26617
|
* Get a single practice resource by ID.
|
|
25784
26618
|
*
|
|
@@ -25845,7 +26679,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
|
|
|
25845
26679
|
* @param options - Request options
|
|
25846
26680
|
* @returns Array of archived {@link ClinicalPracticeResource} records
|
|
25847
26681
|
*/
|
|
25848
|
-
listArchived: (params?:
|
|
26682
|
+
listArchived: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalPracticeResource[]>;
|
|
25849
26683
|
/**
|
|
25850
26684
|
* List application-level catalog practice resources.
|
|
25851
26685
|
*
|
|
@@ -25888,7 +26722,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
|
|
|
25888
26722
|
* @param options - Request options
|
|
25889
26723
|
* @returns Array of archived {@link ClinicalPracticeResource} catalog records
|
|
25890
26724
|
*/
|
|
25891
|
-
listArchivedCatalog: (params?:
|
|
26725
|
+
listArchivedCatalog: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalPracticeResource[]>;
|
|
25892
26726
|
/**
|
|
25893
26727
|
* List distinct practice resource categories in a workspace.
|
|
25894
26728
|
*
|
|
@@ -26043,7 +26877,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
|
|
|
26043
26877
|
* @param options - Request options
|
|
26044
26878
|
* @returns Array of archived {@link ClinicalPracticeTool} records
|
|
26045
26879
|
*/
|
|
26046
|
-
listArchived: (params?:
|
|
26880
|
+
listArchived: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalPracticeTool[]>;
|
|
26047
26881
|
/**
|
|
26048
26882
|
* List distinct practice tool categories in a workspace.
|
|
26049
26883
|
*
|
|
@@ -26107,7 +26941,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
|
|
|
26107
26941
|
* @param options - Request options
|
|
26108
26942
|
* @returns Array of archived {@link ClinicalPracticeTool} catalog records
|
|
26109
26943
|
*/
|
|
26110
|
-
listArchivedCatalog: (params?:
|
|
26944
|
+
listArchivedCatalog: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalPracticeTool[]>;
|
|
26111
26945
|
/**
|
|
26112
26946
|
* List distinct catalog practice tool categories.
|
|
26113
26947
|
*
|
|
@@ -26173,7 +27007,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
|
|
|
26173
27007
|
* @param options - Request options
|
|
26174
27008
|
* @returns Array of {@link ClinicalClientResourceAssignment} records
|
|
26175
27009
|
*/
|
|
26176
|
-
list: (params?:
|
|
27010
|
+
list: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalClientResourceAssignment[]>;
|
|
26177
27011
|
/**
|
|
26178
27012
|
* Get a single resource assignment by ID.
|
|
26179
27013
|
*
|
|
@@ -26241,7 +27075,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
|
|
|
26241
27075
|
* @param options - Request options
|
|
26242
27076
|
* @returns Array of archived {@link ClinicalClientResourceAssignment} records
|
|
26243
27077
|
*/
|
|
26244
|
-
listArchived: (params?:
|
|
27078
|
+
listArchived: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalClientResourceAssignment[]>;
|
|
26245
27079
|
};
|
|
26246
27080
|
/**
|
|
26247
27081
|
* Read-only access to the AI-generated supplement recommendation cache.
|
|
@@ -26258,7 +27092,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
|
|
|
26258
27092
|
* @param options - Request options
|
|
26259
27093
|
* @returns Array of {@link ClinicalSupplementRecCache} records
|
|
26260
27094
|
*/
|
|
26261
|
-
list: (params?:
|
|
27095
|
+
list: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalSupplementRecCache[]>;
|
|
26262
27096
|
/**
|
|
26263
27097
|
* Get a single supplement recommendation cache entry by ID.
|
|
26264
27098
|
*
|
|
@@ -26423,7 +27257,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
|
|
|
26423
27257
|
* @param options - Request options
|
|
26424
27258
|
* @returns Array of archived {@link ClinicalGoalTemplate} records
|
|
26425
27259
|
*/
|
|
26426
|
-
listArchived: (params?:
|
|
27260
|
+
listArchived: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalGoalTemplate[]>;
|
|
26427
27261
|
/**
|
|
26428
27262
|
* List application-level catalog goal templates.
|
|
26429
27263
|
*
|
|
@@ -26466,7 +27300,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
|
|
|
26466
27300
|
* @param options - Request options
|
|
26467
27301
|
* @returns Array of archived {@link ClinicalGoalTemplate} catalog records
|
|
26468
27302
|
*/
|
|
26469
|
-
listArchivedCatalog: (params?:
|
|
27303
|
+
listArchivedCatalog: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalGoalTemplate[]>;
|
|
26470
27304
|
/**
|
|
26471
27305
|
* List distinct catalog goal template categories.
|
|
26472
27306
|
*
|
|
@@ -26599,7 +27433,7 @@ declare class GptClient extends BaseClient {
|
|
|
26599
27433
|
clone: (id: string, options?: RequestOptions) => Promise<Agent>;
|
|
26600
27434
|
export: (id: string, options?: RequestOptions) => Promise<Agent>;
|
|
26601
27435
|
analyzeTraining: (id: string, options?: RequestOptions) => Promise<Agent>;
|
|
26602
|
-
teach: (id: string, params?:
|
|
27436
|
+
teach: (id: string, params?: TeachParams, options?: RequestOptions) => Promise<Agent>;
|
|
26603
27437
|
publishVersion: (id: string, options?: RequestOptions) => Promise<Agent>;
|
|
26604
27438
|
restoreVersion: (id: string, body?: {
|
|
26605
27439
|
version_id?: string;
|
|
@@ -28387,23 +29221,26 @@ declare class GptClient extends BaseClient {
|
|
|
28387
29221
|
listByWorkspace: (workspaceId: string, options?: RequestOptions) => Promise<unknown>;
|
|
28388
29222
|
listByPlatform: (platform: string, options?: RequestOptions) => Promise<unknown>;
|
|
28389
29223
|
get: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
28390
|
-
create: (attributes:
|
|
28391
|
-
update: (id: string, attributes:
|
|
29224
|
+
create: (attributes: SocialAccountCreateAttributes, options?: RequestOptions) => Promise<unknown>;
|
|
29225
|
+
update: (id: string, attributes: SocialAccountUpdateAttributes, options?: RequestOptions) => Promise<unknown>;
|
|
28392
29226
|
delete: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
28393
29227
|
enablePosting: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
28394
29228
|
disablePosting: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
28395
29229
|
deactivate: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
28396
29230
|
};
|
|
28397
29231
|
posts: {
|
|
28398
|
-
create: (attributes:
|
|
29232
|
+
create: (attributes: SocialPostCreateAttributes, options?: RequestOptions) => Promise<unknown>;
|
|
28399
29233
|
get: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
28400
|
-
update: (id: string, attributes:
|
|
29234
|
+
update: (id: string, attributes: SocialPostUpdateAttributes, options?: RequestOptions) => Promise<unknown>;
|
|
28401
29235
|
delete: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
28402
29236
|
schedule: (id: string, scheduledAt: string, options?: RequestOptions) => Promise<unknown>;
|
|
28403
29237
|
publishNow: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
28404
29238
|
cancel: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
28405
29239
|
retry: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
28406
|
-
updateSeo: (id: string, attributes:
|
|
29240
|
+
updateSeo: (id: string, attributes: {
|
|
29241
|
+
seo_score?: number;
|
|
29242
|
+
seo_analysis?: Record<string, unknown>;
|
|
29243
|
+
}, options?: RequestOptions) => Promise<unknown>;
|
|
28407
29244
|
listScheduled: (options?: RequestOptions) => Promise<unknown>;
|
|
28408
29245
|
listByAccount: (socialAccountId: string, options?: RequestOptions) => Promise<unknown>;
|
|
28409
29246
|
listByCampaign: (socialCampaignId: string, options?: RequestOptions) => Promise<unknown>;
|
|
@@ -28419,8 +29256,8 @@ declare class GptClient extends BaseClient {
|
|
|
28419
29256
|
campaigns: {
|
|
28420
29257
|
list: (options?: RequestOptions) => Promise<unknown>;
|
|
28421
29258
|
get: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
28422
|
-
create: (attributes:
|
|
28423
|
-
update: (id: string, attributes:
|
|
29259
|
+
create: (attributes: SocialCampaignCreateAttributes, options?: RequestOptions) => Promise<unknown>;
|
|
29260
|
+
update: (id: string, attributes: SocialCampaignUpdateAttributes, options?: RequestOptions) => Promise<unknown>;
|
|
28424
29261
|
delete: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
28425
29262
|
schedule: (id: string, scheduledAt: string, options?: RequestOptions) => Promise<unknown>;
|
|
28426
29263
|
cancel: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
@@ -28430,7 +29267,14 @@ declare class GptClient extends BaseClient {
|
|
|
28430
29267
|
trending: {
|
|
28431
29268
|
get: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
28432
29269
|
listByWorkspace: (workspaceId: string, options?: RequestOptions) => Promise<unknown>;
|
|
28433
|
-
create: (attributes:
|
|
29270
|
+
create: (attributes: {
|
|
29271
|
+
workspace_id: string;
|
|
29272
|
+
enrichment_level?: "raw" | "scored" | "summarized" | "full";
|
|
29273
|
+
query?: string;
|
|
29274
|
+
source_breakdown?: Record<string, unknown>;
|
|
29275
|
+
item_count?: number;
|
|
29276
|
+
fetched_at?: string;
|
|
29277
|
+
}, options?: RequestOptions) => Promise<unknown>;
|
|
28434
29278
|
delete: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
28435
29279
|
listByDateRange: (from: string, to: string, options?: RequestOptions) => Promise<unknown>;
|
|
28436
29280
|
items: {
|
|
@@ -28441,14 +29285,29 @@ declare class GptClient extends BaseClient {
|
|
|
28441
29285
|
watches: {
|
|
28442
29286
|
get: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
28443
29287
|
listByWorkspace: (workspaceId: string, options?: RequestOptions) => Promise<unknown>;
|
|
28444
|
-
create: (attributes:
|
|
28445
|
-
|
|
29288
|
+
create: (attributes: {
|
|
29289
|
+
workspace_id: string;
|
|
29290
|
+
name: string;
|
|
29291
|
+
query: string;
|
|
29292
|
+
sources?: string[];
|
|
29293
|
+
conditions?: Record<string, unknown>;
|
|
29294
|
+
notification_config?: Record<string, unknown>;
|
|
29295
|
+
enabled?: boolean;
|
|
29296
|
+
}, options?: RequestOptions) => Promise<unknown>;
|
|
29297
|
+
update: (id: string, attributes: {
|
|
29298
|
+
name?: string;
|
|
29299
|
+
query?: string;
|
|
29300
|
+
sources?: string[];
|
|
29301
|
+
conditions?: Record<string, unknown>;
|
|
29302
|
+
notification_config?: Record<string, unknown>;
|
|
29303
|
+
enabled?: boolean;
|
|
29304
|
+
}, options?: RequestOptions) => Promise<unknown>;
|
|
28446
29305
|
delete: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
28447
29306
|
};
|
|
28448
29307
|
};
|
|
28449
29308
|
/** Project, milestone, task, time entry, member, risk, and AI management */
|
|
28450
29309
|
readonly projects: {
|
|
28451
|
-
list(params?:
|
|
29310
|
+
list(params?: ListProjectsParams, options?: RequestOptions): Promise<Project[]>;
|
|
28452
29311
|
get(id: string, options?: RequestOptions): Promise<Project>;
|
|
28453
29312
|
create(data: CreateProjectInput, options?: RequestOptions): Promise<Project>;
|
|
28454
29313
|
update(id: string, data: UpdateProjectInput, options?: RequestOptions): Promise<Project>;
|
|
@@ -28753,225 +29612,6 @@ declare class Webhooks {
|
|
|
28753
29612
|
static safeVerify(payload: string, signatureHeader: string, secret: string, options?: WebhookVerifyOptions): Promise<boolean>;
|
|
28754
29613
|
}
|
|
28755
29614
|
|
|
28756
|
-
/**
|
|
28757
|
-
* Social media management namespace — accounts, posts, metrics, and campaigns.
|
|
28758
|
-
*
|
|
28759
|
-
* Covers the full social publishing lifecycle: connect accounts, create and
|
|
28760
|
-
* schedule posts, collect engagement metrics, and run AI-powered social campaigns.
|
|
28761
|
-
*
|
|
28762
|
-
* @example
|
|
28763
|
-
* ```typescript
|
|
28764
|
-
* const client = new GptClient({ apiKey: 'sk_app_...' });
|
|
28765
|
-
*
|
|
28766
|
-
* // List connected accounts
|
|
28767
|
-
* const accounts = await client.social.accounts.listByWorkspace('ws_abc');
|
|
28768
|
-
*
|
|
28769
|
-
* // Create and schedule a post
|
|
28770
|
-
* const post = await client.social.posts.create({ ... });
|
|
28771
|
-
* await client.social.posts.schedule(post.id, '2026-03-10T12:00:00Z');
|
|
28772
|
-
*
|
|
28773
|
-
* // Get latest metrics
|
|
28774
|
-
* const metrics = await client.social.metrics.latestForPost(post.id);
|
|
28775
|
-
* ```
|
|
28776
|
-
*/
|
|
28777
|
-
declare function createSocialNamespace(rb: RequestBuilder): {
|
|
28778
|
-
/** Social account management — connect, enable/disable, and deactivate accounts. */
|
|
28779
|
-
accounts: {
|
|
28780
|
-
/** List social accounts for a workspace. */
|
|
28781
|
-
listByWorkspace: (workspaceId: string, options?: RequestOptions) => Promise<unknown>;
|
|
28782
|
-
/** List social accounts by platform (e.g. "twitter", "instagram"). */
|
|
28783
|
-
listByPlatform: (platform: string, options?: RequestOptions) => Promise<unknown>;
|
|
28784
|
-
/** Get a single social account by ID. */
|
|
28785
|
-
get: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
28786
|
-
/** Connect a new social account. */
|
|
28787
|
-
create: (attributes: Record<string, unknown>, options?: RequestOptions) => Promise<unknown>;
|
|
28788
|
-
/** Update a social account. */
|
|
28789
|
-
update: (id: string, attributes: Record<string, unknown>, options?: RequestOptions) => Promise<unknown>;
|
|
28790
|
-
/** Delete a social account. */
|
|
28791
|
-
delete: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
28792
|
-
/** Enable posting on an account. */
|
|
28793
|
-
enablePosting: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
28794
|
-
/** Disable posting on an account. */
|
|
28795
|
-
disablePosting: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
28796
|
-
/** Deactivate (disconnect) an account. */
|
|
28797
|
-
deactivate: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
28798
|
-
};
|
|
28799
|
-
/** Social post management — create, schedule, publish, cancel, and retry posts. */
|
|
28800
|
-
posts: {
|
|
28801
|
-
/** Create a new social post draft. */
|
|
28802
|
-
create: (attributes: Record<string, unknown>, options?: RequestOptions) => Promise<unknown>;
|
|
28803
|
-
/** Get a single post by ID. */
|
|
28804
|
-
get: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
28805
|
-
/** Update a draft post. */
|
|
28806
|
-
update: (id: string, attributes: Record<string, unknown>, options?: RequestOptions) => Promise<unknown>;
|
|
28807
|
-
/** Delete a post. */
|
|
28808
|
-
delete: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
28809
|
-
/** Schedule a post for future publishing. */
|
|
28810
|
-
schedule: (id: string, scheduledAt: string, options?: RequestOptions) => Promise<unknown>;
|
|
28811
|
-
/** Publish a post immediately. */
|
|
28812
|
-
publishNow: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
28813
|
-
/** Cancel a scheduled or draft post. */
|
|
28814
|
-
cancel: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
28815
|
-
/** Retry a failed post. */
|
|
28816
|
-
retry: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
28817
|
-
/** Update SEO metadata on a post. */
|
|
28818
|
-
updateSeo: (id: string, attributes: Record<string, unknown>, options?: RequestOptions) => Promise<unknown>;
|
|
28819
|
-
/** List scheduled posts. */
|
|
28820
|
-
listScheduled: (options?: RequestOptions) => Promise<unknown>;
|
|
28821
|
-
/** List posts by account. */
|
|
28822
|
-
listByAccount: (socialAccountId: string, options?: RequestOptions) => Promise<unknown>;
|
|
28823
|
-
/** List posts by campaign. */
|
|
28824
|
-
listByCampaign: (socialCampaignId: string, options?: RequestOptions) => Promise<unknown>;
|
|
28825
|
-
/** List all posts for a workspace. */
|
|
28826
|
-
listByWorkspace: (workspaceId: string, options?: RequestOptions) => Promise<unknown>;
|
|
28827
|
-
};
|
|
28828
|
-
/** Post engagement metrics — impressions, reach, likes, comments, and more. */
|
|
28829
|
-
metrics: {
|
|
28830
|
-
/** Get a single metric record by ID. */
|
|
28831
|
-
get: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
28832
|
-
/** List all metrics for a post. */
|
|
28833
|
-
listByPost: (socialPostId: string, options?: RequestOptions) => Promise<unknown>;
|
|
28834
|
-
/** Get the latest metric per collection window for a post. */
|
|
28835
|
-
latestForPost: (socialPostId: string, options?: RequestOptions) => Promise<unknown>;
|
|
28836
|
-
/** Aggregate metrics across all posts for a social account. */
|
|
28837
|
-
byAccount: (socialAccountId: string, options?: RequestOptions) => Promise<unknown>;
|
|
28838
|
-
/** Aggregate metrics across all posts in a social campaign. */
|
|
28839
|
-
byCampaign: (socialCampaignId: string, options?: RequestOptions) => Promise<unknown>;
|
|
28840
|
-
};
|
|
28841
|
-
/** AI-powered social campaigns — generate master copy and adapt for platforms. */
|
|
28842
|
-
campaigns: {
|
|
28843
|
-
/** List all social campaigns. */
|
|
28844
|
-
list: (options?: RequestOptions) => Promise<unknown>;
|
|
28845
|
-
/** Get a single campaign by ID. */
|
|
28846
|
-
get: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
28847
|
-
/** Create a new social campaign. */
|
|
28848
|
-
create: (attributes: Record<string, unknown>, options?: RequestOptions) => Promise<unknown>;
|
|
28849
|
-
/** Update a campaign. */
|
|
28850
|
-
update: (id: string, attributes: Record<string, unknown>, options?: RequestOptions) => Promise<unknown>;
|
|
28851
|
-
/** Delete a campaign. */
|
|
28852
|
-
delete: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
28853
|
-
/** Schedule a campaign for a future date. */
|
|
28854
|
-
schedule: (id: string, scheduledAt: string, options?: RequestOptions) => Promise<unknown>;
|
|
28855
|
-
/** Cancel a campaign. */
|
|
28856
|
-
cancel: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
28857
|
-
/** Generate AI master copy from the campaign's content brief. */
|
|
28858
|
-
generateMasterCopy: (id: string, workspaceId: string, options?: RequestOptions) => Promise<unknown>;
|
|
28859
|
-
/** Adapt master copy for target platforms and create SocialPost drafts. */
|
|
28860
|
-
adaptForPlatforms: (id: string, workspaceId: string, socialAccountId: string, options?: RequestOptions) => Promise<unknown>;
|
|
28861
|
-
};
|
|
28862
|
-
/** Trending content discovery — snapshots, items, and watch alerts. */
|
|
28863
|
-
trending: {
|
|
28864
|
-
/**
|
|
28865
|
-
* Get a trending snapshot by ID.
|
|
28866
|
-
* @param id - Snapshot UUID
|
|
28867
|
-
* @returns TrendingSnapshot with metadata (query, enrichment level, item count)
|
|
28868
|
-
* @example
|
|
28869
|
-
* ```typescript
|
|
28870
|
-
* const snapshot = await client.social.trending.get('snap_abc');
|
|
28871
|
-
* ```
|
|
28872
|
-
*/
|
|
28873
|
-
get: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
28874
|
-
/**
|
|
28875
|
-
* List trending snapshots for a workspace.
|
|
28876
|
-
* @param workspaceId - Workspace UUID
|
|
28877
|
-
* @returns Array of TrendingSnapshot records
|
|
28878
|
-
* @example
|
|
28879
|
-
* ```typescript
|
|
28880
|
-
* const snapshots = await client.social.trending.listByWorkspace('ws_abc');
|
|
28881
|
-
* ```
|
|
28882
|
-
*/
|
|
28883
|
-
listByWorkspace: (workspaceId: string, options?: RequestOptions) => Promise<unknown>;
|
|
28884
|
-
/**
|
|
28885
|
-
* Create a trending snapshot (trigger on-demand collection).
|
|
28886
|
-
* @param attributes - Snapshot attributes (workspace_id, enrichment_level, etc.)
|
|
28887
|
-
* @returns Created TrendingSnapshot
|
|
28888
|
-
* @example
|
|
28889
|
-
* ```typescript
|
|
28890
|
-
* const snapshot = await client.social.trending.create({
|
|
28891
|
-
* workspace_id: 'ws_abc',
|
|
28892
|
-
* enrichment_level: 'scored',
|
|
28893
|
-
* fetched_at: new Date().toISOString(),
|
|
28894
|
-
* });
|
|
28895
|
-
* ```
|
|
28896
|
-
*/
|
|
28897
|
-
create: (attributes: Record<string, unknown>, options?: RequestOptions) => Promise<unknown>;
|
|
28898
|
-
/** Delete a trending snapshot by ID. */
|
|
28899
|
-
delete: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
28900
|
-
/**
|
|
28901
|
-
* List trending snapshots within a date range.
|
|
28902
|
-
* @param from - Start date (ISO 8601 string)
|
|
28903
|
-
* @param to - End date (ISO 8601 string)
|
|
28904
|
-
* @returns Array of TrendingSnapshot records in the range
|
|
28905
|
-
* @example
|
|
28906
|
-
* ```typescript
|
|
28907
|
-
* const snapshots = await client.social.trending.listByDateRange(
|
|
28908
|
-
* '2026-03-01T00:00:00Z',
|
|
28909
|
-
* '2026-03-21T23:59:59Z',
|
|
28910
|
-
* );
|
|
28911
|
-
* ```
|
|
28912
|
-
*/
|
|
28913
|
-
listByDateRange: (from: string, to: string, options?: RequestOptions) => Promise<unknown>;
|
|
28914
|
-
/** Trending snapshot items — individual content pieces within a snapshot. */
|
|
28915
|
-
items: {
|
|
28916
|
-
/** Get a single trending item by ID. */
|
|
28917
|
-
get: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
28918
|
-
/**
|
|
28919
|
-
* List trending items for a snapshot.
|
|
28920
|
-
* @param snapshotId - Parent snapshot UUID
|
|
28921
|
-
* @returns Array of TrendingSnapshotItem records
|
|
28922
|
-
* @example
|
|
28923
|
-
* ```typescript
|
|
28924
|
-
* const items = await client.social.trending.items.listBySnapshot('snap_abc');
|
|
28925
|
-
* ```
|
|
28926
|
-
*/
|
|
28927
|
-
listBySnapshot: (snapshotId: string, options?: RequestOptions) => Promise<unknown>;
|
|
28928
|
-
};
|
|
28929
|
-
};
|
|
28930
|
-
/** Trending watch alerts — monitor topics and get notified on matches. */
|
|
28931
|
-
watches: {
|
|
28932
|
-
/**
|
|
28933
|
-
* Get a trending watch by ID.
|
|
28934
|
-
* @param id - Watch UUID
|
|
28935
|
-
* @returns TrendingWatch with conditions and notification config
|
|
28936
|
-
*/
|
|
28937
|
-
get: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
28938
|
-
/**
|
|
28939
|
-
* List trending watches for a workspace.
|
|
28940
|
-
* @param workspaceId - Workspace UUID
|
|
28941
|
-
* @returns Array of TrendingWatch records
|
|
28942
|
-
* @example
|
|
28943
|
-
* ```typescript
|
|
28944
|
-
* const watches = await client.social.watches.listByWorkspace('ws_abc');
|
|
28945
|
-
* ```
|
|
28946
|
-
*/
|
|
28947
|
-
listByWorkspace: (workspaceId: string, options?: RequestOptions) => Promise<unknown>;
|
|
28948
|
-
/**
|
|
28949
|
-
* Create a new trending watch alert.
|
|
28950
|
-
* @param attributes - Watch attributes (name, query, conditions, notification_config)
|
|
28951
|
-
* @returns Created TrendingWatch
|
|
28952
|
-
* @example
|
|
28953
|
-
* ```typescript
|
|
28954
|
-
* const watch = await client.social.watches.create({
|
|
28955
|
-
* workspace_id: 'ws_abc',
|
|
28956
|
-
* name: 'AI Industry News',
|
|
28957
|
-
* query: 'artificial intelligence',
|
|
28958
|
-
* conditions: { min_score: 0.7 },
|
|
28959
|
-
* notification_config: { channel: 'webhook', url: 'https://...' },
|
|
28960
|
-
* });
|
|
28961
|
-
* ```
|
|
28962
|
-
*/
|
|
28963
|
-
create: (attributes: Record<string, unknown>, options?: RequestOptions) => Promise<unknown>;
|
|
28964
|
-
/**
|
|
28965
|
-
* Update a trending watch.
|
|
28966
|
-
* @param id - Watch UUID
|
|
28967
|
-
* @param attributes - Fields to update (name, query, conditions, enabled, etc.)
|
|
28968
|
-
*/
|
|
28969
|
-
update: (id: string, attributes: Record<string, unknown>, options?: RequestOptions) => Promise<unknown>;
|
|
28970
|
-
/** Delete a trending watch by ID. */
|
|
28971
|
-
delete: (id: string, options?: RequestOptions) => Promise<unknown>;
|
|
28972
|
-
};
|
|
28973
|
-
};
|
|
28974
|
-
|
|
28975
29615
|
/**
|
|
28976
29616
|
* Creates the memory namespace for structured document section navigation.
|
|
28977
29617
|
*
|
|
@@ -29093,4 +29733,4 @@ type SocialAPI = ReturnType<typeof createSocialNamespace>;
|
|
|
29093
29733
|
type ModelsAPI = ReturnType<typeof createModelsNamespace>;
|
|
29094
29734
|
type MemoryAPI = ReturnType<typeof createMemoryNamespace>;
|
|
29095
29735
|
|
|
29096
|
-
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 };
|