@gpt-platform/client 0.10.2 → 0.10.4

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 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.2";
609
+ declare const SDK_VERSION = "0.10.4";
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
 
@@ -1033,6 +1033,12 @@ declare class RequestBuilder {
1033
1033
  * Used for endpoints implemented as custom Phoenix controllers.
1034
1034
  */
1035
1035
  rawPost<TResponse>(url: string, body?: unknown, options?: RequestOptions): Promise<TResponse>;
1036
+ /**
1037
+ * Execute a raw POST to a custom endpoint that returns flat JSON (no data wrapper).
1038
+ * Unlike rawPost (which unwraps data.data), this returns the response body directly.
1039
+ * Used for hand-written Phoenix controllers like DocumentsController.
1040
+ */
1041
+ rawPostDirect<TResponse>(url: string, body?: unknown, options?: RequestOptions): Promise<TResponse>;
1036
1042
  /**
1037
1043
  * Execute a raw PUT request to a custom (non-generated) endpoint.
1038
1044
  */
@@ -1681,7 +1687,7 @@ type WorkspaceAgentConfig = {
1681
1687
  /**
1682
1688
  * A "Resource object" representing a clinical-goal-template
1683
1689
  */
1684
- type ClinicalGoalTemplate = {
1690
+ type ClinicalGoalTemplate$1 = {
1685
1691
  /**
1686
1692
  * An attributes object for a clinical-goal-template
1687
1693
  */
@@ -2026,7 +2032,7 @@ type VoiceTranscriptionResult = {
2026
2032
  /**
2027
2033
  * A "Resource object" representing a clinical-goal-template-category
2028
2034
  */
2029
- type ClinicalGoalTemplateCategory = {
2035
+ type ClinicalGoalTemplateCategory$1 = {
2030
2036
  /**
2031
2037
  * An attributes object for a clinical-goal-template-category
2032
2038
  */
@@ -2920,7 +2926,7 @@ type CrmCompany = {
2920
2926
  /**
2921
2927
  * A "Resource object" representing a clinical-practice-tool
2922
2928
  */
2923
- type ClinicalPracticeTool = {
2929
+ type ClinicalPracticeTool$1 = {
2924
2930
  /**
2925
2931
  * An attributes object for a clinical-practice-tool
2926
2932
  */
@@ -3251,7 +3257,7 @@ type SupportTag = {
3251
3257
  /**
3252
3258
  * A "Resource object" representing a clinical-note-version
3253
3259
  */
3254
- type ClinicalNoteVersion = {
3260
+ type ClinicalNoteVersion$1 = {
3255
3261
  /**
3256
3262
  * An attributes object for a clinical-note-version
3257
3263
  */
@@ -4164,7 +4170,7 @@ type VoiceRecording = {
4164
4170
  /**
4165
4171
  * A "Resource object" representing a clinical-client-resource-assignment
4166
4172
  */
4167
- type ClinicalClientResourceAssignment = {
4173
+ type ClinicalClientResourceAssignment$1 = {
4168
4174
  /**
4169
4175
  * An attributes object for a clinical-client-resource-assignment
4170
4176
  */
@@ -5360,7 +5366,7 @@ type Application = {
5360
5366
  /**
5361
5367
  * A "Resource object" representing a clinical-client-supplement
5362
5368
  */
5363
- type ClinicalClientSupplement = {
5369
+ type ClinicalClientSupplement$1 = {
5364
5370
  /**
5365
5371
  * An attributes object for a clinical-client-supplement
5366
5372
  */
@@ -5381,6 +5387,10 @@ type ClinicalClientSupplement = {
5381
5387
  * Field included by default.
5382
5388
  */
5383
5389
  fullscript_product_id?: string | null | unknown;
5390
+ /**
5391
+ * Field included by default.
5392
+ */
5393
+ fullscript_treatment_plan_id?: string | null | unknown;
5384
5394
  /**
5385
5395
  * Field included by default.
5386
5396
  */
@@ -5412,6 +5422,18 @@ type ClinicalClientSupplement = {
5412
5422
  * Field included by default.
5413
5423
  */
5414
5424
  rationale_client?: string | null | unknown;
5425
+ /**
5426
+ * Field included by default.
5427
+ */
5428
+ rationale_clinical?: string | null | unknown;
5429
+ /**
5430
+ * Field included by default.
5431
+ */
5432
+ route?: string | null | unknown;
5433
+ /**
5434
+ * Field included by default.
5435
+ */
5436
+ source?: string | null | unknown;
5415
5437
  /**
5416
5438
  * Field included by default.
5417
5439
  */
@@ -6019,6 +6041,40 @@ type Transaction = {
6019
6041
  };
6020
6042
  type: string;
6021
6043
  };
6044
+ /**
6045
+ * A "Resource object" representing a extraction-agent
6046
+ */
6047
+ type ExtractionAgent = {
6048
+ /**
6049
+ * An attributes object for a extraction-agent
6050
+ */
6051
+ attributes?: {
6052
+ /**
6053
+ * Description of what this agent is good at, used for AI matching. Field included by default.
6054
+ */
6055
+ capabilities: string;
6056
+ /**
6057
+ * Field included by default.
6058
+ */
6059
+ description: string;
6060
+ /**
6061
+ * Field included by default.
6062
+ */
6063
+ name: string;
6064
+ /**
6065
+ * Field included by default.
6066
+ */
6067
+ slug: string;
6068
+ };
6069
+ id: string;
6070
+ /**
6071
+ * A relationships object for a extraction-agent
6072
+ */
6073
+ relationships?: {
6074
+ [key: string]: never;
6075
+ };
6076
+ type: string;
6077
+ };
6022
6078
  /**
6023
6079
  * A "Resource object" representing a agent-deployment
6024
6080
  */
@@ -6227,6 +6283,84 @@ type AgentDeployment = {
6227
6283
  };
6228
6284
  type: string;
6229
6285
  };
6286
+ /**
6287
+ * A "Resource object" representing a training-analytics
6288
+ */
6289
+ type TrainingAnalytics = {
6290
+ /**
6291
+ * An attributes object for a training-analytics
6292
+ */
6293
+ attributes?: {
6294
+ /**
6295
+ * Field included by default.
6296
+ */
6297
+ accuracy_improvement?: number | null | unknown;
6298
+ /**
6299
+ * Field included by default.
6300
+ */
6301
+ accuracy_trend?: Array<{
6302
+ [key: string]: unknown;
6303
+ }> | null | unknown;
6304
+ /**
6305
+ * Field included by default.
6306
+ */
6307
+ avg_confidence?: number | null | unknown;
6308
+ /**
6309
+ * Field included by default.
6310
+ */
6311
+ confidence_threshold?: number | null | unknown;
6312
+ /**
6313
+ * Field included by default.
6314
+ */
6315
+ docs_needing_review_count?: number | null | unknown;
6316
+ /**
6317
+ * Field included by default.
6318
+ */
6319
+ low_confidence_documents?: Array<{
6320
+ [key: string]: unknown;
6321
+ }> | null | unknown;
6322
+ /**
6323
+ * Field included by default.
6324
+ */
6325
+ top_corrected_field?: string | null | unknown;
6326
+ /**
6327
+ * Field included by default.
6328
+ */
6329
+ top_field_correction_count?: number | null | unknown;
6330
+ /**
6331
+ * Field included by default.
6332
+ */
6333
+ total_examples?: number | null | unknown;
6334
+ /**
6335
+ * Field included by default.
6336
+ */
6337
+ total_fields_confirmed?: number | null | unknown;
6338
+ /**
6339
+ * Field included by default.
6340
+ */
6341
+ total_fields_corrected?: number | null | unknown;
6342
+ /**
6343
+ * Field included by default.
6344
+ */
6345
+ total_fields_reviewed?: number | null | unknown;
6346
+ /**
6347
+ * Field included by default.
6348
+ */
6349
+ trained?: number | null | unknown;
6350
+ /**
6351
+ * Field included by default.
6352
+ */
6353
+ workspace_id?: string | null | unknown;
6354
+ };
6355
+ id: string;
6356
+ /**
6357
+ * A relationships object for a training-analytics
6358
+ */
6359
+ relationships?: {
6360
+ [key: string]: never;
6361
+ };
6362
+ type: string;
6363
+ };
6230
6364
  /**
6231
6365
  * A "Resource object" representing a data-subject-request
6232
6366
  */
@@ -6642,7 +6776,7 @@ type AgentVersionComparison = {
6642
6776
  /**
6643
6777
  * A "Resource object" representing a clinical-session
6644
6778
  */
6645
- type ClinicalSession = {
6779
+ type ClinicalSession$1 = {
6646
6780
  /**
6647
6781
  * An attributes object for a clinical-session
6648
6782
  */
@@ -6692,7 +6826,7 @@ type ClinicalSession = {
6692
6826
  /**
6693
6827
  * Field included by default.
6694
6828
  */
6695
- session_type: "initial" | "followup" | "discharge" | "emergency" | "group";
6829
+ session_type: "initial" | "followup" | "discharge" | "emergency" | "group" | "phone_encounter" | "coordination" | "administrative";
6696
6830
  };
6697
6831
  id: string;
6698
6832
  /**
@@ -6870,7 +7004,7 @@ type SavedSearch = {
6870
7004
  /**
6871
7005
  * A "Resource object" representing a clinical-meal-plan
6872
7006
  */
6873
- type ClinicalMealPlan = {
7007
+ type ClinicalMealPlan$1 = {
6874
7008
  /**
6875
7009
  * An attributes object for a clinical-meal-plan
6876
7010
  */
@@ -6890,6 +7024,10 @@ type ClinicalMealPlan = {
6890
7024
  * Field included by default.
6891
7025
  */
6892
7026
  parent_plan_id?: string | null | unknown;
7027
+ /**
7028
+ * Field included by default.
7029
+ */
7030
+ patient_id?: string | null | unknown;
6893
7031
  /**
6894
7032
  * Field included by default.
6895
7033
  */
@@ -7314,7 +7452,7 @@ type EmailTrackingEvent = {
7314
7452
  /**
7315
7453
  * A "Resource object" representing a clinical-patient
7316
7454
  */
7317
- type ClinicalPatient = {
7455
+ type ClinicalPatient$1 = {
7318
7456
  /**
7319
7457
  * An attributes object for a clinical-patient
7320
7458
  */
@@ -7387,6 +7525,30 @@ type ClinicalPatient = {
7387
7525
  type: string;
7388
7526
  }>;
7389
7527
  };
7528
+ meal_plans?: {
7529
+ /**
7530
+ * Relationship data for meal_plans
7531
+ */
7532
+ data?: Array<{
7533
+ id: string;
7534
+ meta?: {
7535
+ [key: string]: unknown;
7536
+ };
7537
+ type: string;
7538
+ }>;
7539
+ };
7540
+ notes?: {
7541
+ /**
7542
+ * Relationship data for notes
7543
+ */
7544
+ data?: Array<{
7545
+ id: string;
7546
+ meta?: {
7547
+ [key: string]: unknown;
7548
+ };
7549
+ type: string;
7550
+ }>;
7551
+ };
7390
7552
  resource_assignments?: {
7391
7553
  /**
7392
7554
  * Relationship data for resource_assignments
@@ -7659,7 +7821,7 @@ type ApiKey = {
7659
7821
  /**
7660
7822
  * A "Resource object" representing a clinical-practice-resource
7661
7823
  */
7662
- type ClinicalPracticeResource = {
7824
+ type ClinicalPracticeResource$1 = {
7663
7825
  /**
7664
7826
  * An attributes object for a clinical-practice-resource
7665
7827
  */
@@ -8149,7 +8311,7 @@ type AccessLog = {
8149
8311
  /**
8150
8312
  * A "Resource object" representing a clinical-delivery
8151
8313
  */
8152
- type ClinicalDelivery = {
8314
+ type ClinicalDelivery$1 = {
8153
8315
  /**
8154
8316
  * An attributes object for a clinical-delivery
8155
8317
  */
@@ -8516,7 +8678,7 @@ type DisclosureLog = {
8516
8678
  /**
8517
8679
  * A "Resource object" representing a clinical-supplement-rec-cache
8518
8680
  */
8519
- type ClinicalSupplementRecCache = {
8681
+ type ClinicalSupplementRecCache$1 = {
8520
8682
  /**
8521
8683
  * An attributes object for a clinical-supplement-rec-cache
8522
8684
  */
@@ -8537,6 +8699,12 @@ type ClinicalSupplementRecCache = {
8537
8699
  * Field included by default.
8538
8700
  */
8539
8701
  pipeline_execution_id?: string | null | unknown;
8702
+ /**
8703
+ * Field included by default.
8704
+ */
8705
+ recommendations?: {
8706
+ [key: string]: unknown;
8707
+ } | null | unknown;
8540
8708
  /**
8541
8709
  * Field included by default.
8542
8710
  */
@@ -9616,7 +9784,7 @@ type DataTransferRecord = {
9616
9784
  /**
9617
9785
  * A "Resource object" representing a clinical-health-metric
9618
9786
  */
9619
- type ClinicalHealthMetric = {
9787
+ type ClinicalHealthMetric$1 = {
9620
9788
  /**
9621
9789
  * An attributes object for a clinical-health-metric
9622
9790
  */
@@ -10669,11 +10837,15 @@ type Bucket = {
10669
10837
  /**
10670
10838
  * A "Resource object" representing a clinical-note
10671
10839
  */
10672
- type ClinicalNote = {
10840
+ type ClinicalNote$1 = {
10673
10841
  /**
10674
10842
  * An attributes object for a clinical-note
10675
10843
  */
10676
10844
  attributes?: {
10845
+ /**
10846
+ * Field included by default.
10847
+ */
10848
+ amends_note_id?: string | null | unknown;
10677
10849
  is_archived?: boolean | null | unknown;
10678
10850
  /**
10679
10851
  * Field included by default.
@@ -10684,7 +10856,11 @@ type ClinicalNote = {
10684
10856
  /**
10685
10857
  * Field included by default.
10686
10858
  */
10687
- note_type: "adime" | "soap" | "progress" | "discharge";
10859
+ note_type: "adime" | "soap" | "progress" | "discharge" | "addendum";
10860
+ /**
10861
+ * Field included by default.
10862
+ */
10863
+ patient_id: string;
10688
10864
  /**
10689
10865
  * Field included by default.
10690
10866
  */
@@ -11654,7 +11830,7 @@ type CrmCustomEntity = {
11654
11830
  /**
11655
11831
  * A "Resource object" representing a clinical-client-goal
11656
11832
  */
11657
- type ClinicalClientGoal = {
11833
+ type ClinicalClientGoal$1 = {
11658
11834
  /**
11659
11835
  * An attributes object for a clinical-client-goal
11660
11836
  */
@@ -12814,7 +12990,10 @@ interface SocialPostUpdateAttributes {
12814
12990
  link_metadata?: Record<string, unknown>;
12815
12991
  platform_metadata?: Record<string, unknown>;
12816
12992
  }
12817
- /** Attributes accepted by `POST /social/campaigns` (create action). */
12993
+ /**
12994
+ * Attributes accepted by `POST /social/campaigns` (create action).
12995
+ * workspace_id is resolved from the authenticated user's context — do NOT pass it here.
12996
+ */
12818
12997
  interface SocialCampaignCreateAttributes {
12819
12998
  /** Required. Campaign name. */
12820
12999
  name: string;
@@ -12934,10 +13113,12 @@ declare function createSocialNamespace(rb: RequestBuilder): {
12934
13113
  get: (id: string, options?: RequestOptions) => Promise<unknown>;
12935
13114
  /**
12936
13115
  * Create a new social campaign.
12937
- * Workspace is resolved from the authenticated user's context — do NOT
12938
- * pass `workspace_id` in attributes.
13116
+ *
13117
+ * @param workspaceId - Workspace ID (passed as query parameter for tenant resolution).
13118
+ * @param attributes - Campaign attributes (name, content_brief, etc.).
13119
+ * @param options - Optional request-level overrides.
12939
13120
  */
12940
- create: (attributes: SocialCampaignCreateAttributes, options?: RequestOptions) => Promise<unknown>;
13121
+ create: (workspaceId: string, attributes: SocialCampaignCreateAttributes, options?: RequestOptions) => Promise<unknown>;
12941
13122
  /** Update a campaign. */
12942
13123
  update: (id: string, attributes: SocialCampaignUpdateAttributes, options?: RequestOptions) => Promise<unknown>;
12943
13124
  /** Delete a campaign. */
@@ -12950,6 +13131,18 @@ declare function createSocialNamespace(rb: RequestBuilder): {
12950
13131
  generateMasterCopy: (id: string, workspaceId: string, options?: RequestOptions) => Promise<unknown>;
12951
13132
  /** Adapt master copy for target platforms and create SocialPost drafts. */
12952
13133
  adaptForPlatforms: (id: string, workspaceId: string, socialAccountId: string, options?: RequestOptions) => Promise<unknown>;
13134
+ /**
13135
+ * Preview adapted copy per platform without creating SocialPost records.
13136
+ *
13137
+ * Returns the AI-adapted text for each target platform so the user can
13138
+ * review before committing via `adaptForPlatforms`.
13139
+ *
13140
+ * @param id - Campaign UUID.
13141
+ * @param workspaceId - Workspace UUID.
13142
+ * @param options - Optional request options.
13143
+ * @returns `{ adaptations: [{ platform: string, content: string }] }`
13144
+ */
13145
+ previewAdaptations: (id: string, workspaceId: string, options?: RequestOptions) => Promise<unknown>;
12953
13146
  };
12954
13147
  /** Trending content discovery — snapshots, items, and watch alerts. */
12955
13148
  trending: {
@@ -14477,6 +14670,18 @@ declare function createThreadsNamespace(rb: RequestBuilder): {
14477
14670
  search: (query: string, options?: RequestOptions) => Promise<ChatThread[]>;
14478
14671
  };
14479
14672
 
14673
+ /** Parameters for requesting a presigned download URL. */
14674
+ interface RequestDownloadUrlParams {
14675
+ /** Time in seconds until the URL expires (default: 3600). */
14676
+ expires_in?: number;
14677
+ }
14678
+ /** Response from a presigned download URL request. */
14679
+ interface DownloadUrlResponse {
14680
+ /** The presigned download URL. */
14681
+ url: string;
14682
+ /** When the URL expires (ISO 8601). */
14683
+ expires_at: string;
14684
+ }
14480
14685
  /** Response from a presigned upload request. */
14481
14686
  interface PresignedUploadResponse {
14482
14687
  url?: string;
@@ -14816,6 +15021,28 @@ declare function createStorageNamespace(rb: RequestBuilder): {
14816
15021
  * @returns A promise resolving to an array of child `StorageFile` objects.
14817
15022
  */
14818
15023
  listChildren: (parentId: string, options?: RequestOptions) => Promise<StorageFile[]>;
15024
+ /**
15025
+ * Generate a short-lived presigned download URL for a file.
15026
+ *
15027
+ * Returns a URL that can be used to download the file directly from
15028
+ * object storage (GCS in production, MinIO in dev) without routing
15029
+ * through the application server.
15030
+ *
15031
+ * @param id - The UUID of the file to download.
15032
+ * @param params - Optional parameters (e.g., custom `expires_in` seconds).
15033
+ * @param options - Optional request options (abort signal, custom headers).
15034
+ * @returns A promise resolving to the presigned URL and its expiry.
15035
+ *
15036
+ * @example
15037
+ * ```typescript
15038
+ * const { url, expires_at } = await client.storage.files.requestDownloadUrl(
15039
+ * 'file-uuid',
15040
+ * { expires_in: 300 }, // 5 minutes
15041
+ * );
15042
+ * // Redirect browser to `url` for direct download
15043
+ * ```
15044
+ */
15045
+ requestDownloadUrl: (id: string, params?: RequestDownloadUrlParams, options?: RequestOptions) => Promise<DownloadUrlResponse>;
14819
15046
  };
14820
15047
  };
14821
15048
 
@@ -16080,34 +16307,54 @@ type CreateInvitationAttributes = {
16080
16307
  };
16081
16308
  /** Attributes accepted when creating a brand identity. */
16082
16309
  type CreateBrandIdentityAttributes = {
16310
+ /** Required. Display name for this brand identity. */
16083
16311
  name: string;
16312
+ /** Tenant UUID — required for tenant-scoped identities. */
16313
+ tenant_id: string;
16314
+ /** Optional workspace UUID — set for workspace-level overrides, omit for tenant-level. */
16084
16315
  workspace_id?: string;
16085
- tenant_id?: string;
16316
+ /** Brand voice description (e.g. "Professional but approachable"). */
16317
+ voice?: string;
16318
+ /** Brand values as an array of strings (e.g. ["innovation", "integrity"]). */
16319
+ values?: string[];
16320
+ /** Target audience description. */
16321
+ target_audience?: string;
16322
+ /** Industry vertical. */
16323
+ industry?: string;
16324
+ /** Brand website URL. */
16325
+ website_url?: string;
16326
+ /** Logo image URL. */
16086
16327
  logo_url?: string;
16087
- icon_url?: string;
16088
- primary_color?: string;
16089
- secondary_color?: string;
16090
- accent_color?: string;
16091
- font_family?: string;
16092
- tagline?: string;
16328
+ /** Color palette map (e.g. { primary: "#0066CC", secondary: "#FF0000" }). */
16329
+ color_palette?: Record<string, string>;
16330
+ /** General description of this brand identity. */
16093
16331
  description?: string;
16094
- [key: string]: unknown;
16332
+ /** Whether this is the default identity at its scope level. */
16333
+ is_default?: boolean;
16095
16334
  };
16096
16335
  /** Attributes accepted when updating a brand identity (PATCH semantics). */
16097
16336
  type UpdateBrandIdentityAttributes = Partial<Omit<CreateBrandIdentityAttributes, "workspace_id" | "tenant_id">>;
16098
16337
  /** Attributes accepted when creating a platform tone. */
16099
16338
  type CreatePlatformToneAttributes = {
16100
- name: string;
16339
+ /** Required. Social platform this tone applies to. */
16340
+ platform: "facebook" | "instagram" | "threads" | "twitter" | "linkedin" | "reddit" | "bluesky";
16341
+ /** Required. Brand identity UUID this tone belongs to. */
16101
16342
  brand_identity_id: string;
16102
- tone_style?: string;
16103
- formality_level?: string;
16104
- vocabulary_preferences?: string;
16105
- communication_guidelines?: string;
16106
- example_phrases?: string[];
16107
- [key: string]: unknown;
16343
+ /** Tone preset. Default: "casual". */
16344
+ tone?: "casual" | "professional" | "humorous" | "inspirational" | "educational" | "promotional";
16345
+ /** Emoji usage policy. Default: "minimal". */
16346
+ emoji_policy?: "none" | "minimal" | "moderate" | "heavy";
16347
+ /** Number of hashtags to include. Default: 5. */
16348
+ hashtag_count?: number;
16349
+ /** Maximum character length for posts on this platform. */
16350
+ max_length?: number;
16351
+ /** Call-to-action text to include in generated copy. */
16352
+ call_to_action?: string;
16353
+ /** Free-form instructions for AI content generation on this platform. */
16354
+ custom_instructions?: string;
16108
16355
  };
16109
16356
  /** Attributes accepted when updating a platform tone (PATCH semantics). */
16110
- type UpdatePlatformToneAttributes = Partial<Omit<CreatePlatformToneAttributes, "brand_identity_id">>;
16357
+ type UpdatePlatformToneAttributes = Partial<Omit<CreatePlatformToneAttributes, "brand_identity_id" | "platform">>;
16111
16358
 
16112
16359
  /**
16113
16360
  * Creates the platform namespace providing access to workspace management,
@@ -19042,8 +19289,128 @@ declare function createExtractionNamespace(rb: RequestBuilder): {
19042
19289
  */
19043
19290
  create: (workspaceId: string, documentId: string, attrs: CreateFieldMappingAttributes, options?: RequestOptions) => Promise<FieldMappingRecord>;
19044
19291
  };
19292
+ /** Extraction agents — list and predict best extraction agents for documents. */
19293
+ extractionAgents: {
19294
+ /**
19295
+ * Lists all available extraction agents (system agents tagged with
19296
+ * "extraction" category).
19297
+ *
19298
+ * @param options - Optional request options (abort signal, custom headers).
19299
+ * @returns An array of extraction agent objects.
19300
+ *
19301
+ * @example
19302
+ * ```typescript
19303
+ * const agents = await client.extraction.extractionAgents.list();
19304
+ * ```
19305
+ */
19306
+ list: (options?: RequestOptions) => Promise<ExtractionAgent[]>;
19307
+ /**
19308
+ * Retrieves a single extraction agent by its unique identifier.
19309
+ *
19310
+ * @param id - The UUID of the extraction agent.
19311
+ * @param options - Optional request options (abort signal, custom headers).
19312
+ * @returns The matching extraction agent object.
19313
+ *
19314
+ * @example
19315
+ * ```typescript
19316
+ * const agent = await client.extraction.extractionAgents.get('agent-uuid');
19317
+ * ```
19318
+ */
19319
+ get: (id: string, options?: RequestOptions) => Promise<ExtractionAgent>;
19320
+ /**
19321
+ * Predicts the best extraction agent for a given document based on its
19322
+ * name, description, or file content.
19323
+ *
19324
+ * @param attributes - Prediction input (name, description, file_content, document_id).
19325
+ * @param options - Optional request options (abort signal, custom headers).
19326
+ * @returns A prediction result with recommended agents.
19327
+ *
19328
+ * @example
19329
+ * ```typescript
19330
+ * const prediction = await client.extraction.extractionAgents.predict({
19331
+ * name: 'invoice.pdf',
19332
+ * file_content: 'Invoice #12345...',
19333
+ * });
19334
+ * ```
19335
+ */
19336
+ predict: (attributes: {
19337
+ name?: string;
19338
+ description?: string;
19339
+ file_content?: string;
19340
+ document_id?: string;
19341
+ [key: string]: unknown;
19342
+ }, options?: RequestOptions) => Promise<unknown>;
19343
+ };
19344
+ /** Training analytics — workspace-level extraction training metrics. */
19345
+ trainingAnalytics: {
19346
+ /**
19347
+ * Retrieves training analytics for a specific workspace, including
19348
+ * accuracy trends, correction counts, and low-confidence documents.
19349
+ *
19350
+ * @param workspaceId - The UUID of the workspace.
19351
+ * @param options - Optional request options (abort signal, custom headers).
19352
+ * @returns The training analytics object for the workspace.
19353
+ *
19354
+ * @example
19355
+ * ```typescript
19356
+ * const analytics = await client.extraction.trainingAnalytics.forWorkspace('ws-uuid');
19357
+ * console.log(analytics.avg_confidence, analytics.total_examples);
19358
+ * ```
19359
+ */
19360
+ forWorkspace: (workspaceId: string, options?: RequestOptions) => Promise<TrainingAnalytics>;
19361
+ };
19045
19362
  };
19046
19363
 
19364
+ /** Parameters for generating a PDF from HTML. */
19365
+ interface GeneratePdfParams {
19366
+ /** HTML content to convert to PDF (max 2MB). */
19367
+ html: string;
19368
+ /** Output filename (default: "document.pdf"). */
19369
+ filename?: string;
19370
+ /**
19371
+ * When true, stores the PDF in platform Storage and returns a storage_key.
19372
+ * When false, returns the PDF as base64-encoded string.
19373
+ * Default: false.
19374
+ */
19375
+ store?: boolean;
19376
+ /** Workspace ID — required when store is true. */
19377
+ workspace_id?: string;
19378
+ }
19379
+ /** Response when store is true. */
19380
+ interface GeneratePdfStoredResponse {
19381
+ storage_key: string;
19382
+ /** UUID of the StorageFile record. Use with `storage.files.requestDownloadUrl(file_id)` to get a presigned download URL. */
19383
+ file_id: string;
19384
+ }
19385
+ /** Union response from generatePdf (when store is true or omitted with workspace_id). */
19386
+ type GeneratePdfResponse = GeneratePdfStoredResponse;
19387
+ /** Parameters for generating a PDF and emailing it. */
19388
+ interface EmailReportParams {
19389
+ /** HTML content to convert to PDF (max 2MB). */
19390
+ html: string;
19391
+ /** Recipient email address. */
19392
+ to: string;
19393
+ /** Email subject line. */
19394
+ subject: string;
19395
+ /** HTML body for the email (default: generic attachment note). */
19396
+ body_html?: string;
19397
+ /** PDF attachment filename (default: "report.pdf"). */
19398
+ filename?: string;
19399
+ /** Also store the PDF in platform Storage. */
19400
+ store?: boolean;
19401
+ /** Workspace ID — required when store is true. */
19402
+ workspace_id?: string;
19403
+ }
19404
+ /** Response from emailReport. */
19405
+ interface EmailReportResponse {
19406
+ /** Whether the email was sent successfully. */
19407
+ sent: boolean;
19408
+ /** Storage key if store was true, null otherwise. */
19409
+ storage_key: string | null;
19410
+ /** Error message if storage failed (email still sent). */
19411
+ storage_error?: string;
19412
+ }
19413
+
19047
19414
  /** Attributes accepted when creating a new support ticket. */
19048
19415
  type CreateSupportTicketAttributes = {
19049
19416
  workspace_id: string;
@@ -20905,32 +21272,82 @@ interface FullscriptSessionGrant {
20905
21272
  interface FullscriptTreatmentPlan {
20906
21273
  id: string;
20907
21274
  state: string;
21275
+ patient_id?: string;
21276
+ created_at?: string;
21277
+ updated_at?: string;
21278
+ invitation_url?: string;
21279
+ message?: string;
20908
21280
  recommendations?: Array<{
20909
21281
  product_id?: string;
20910
- dosage?: string;
21282
+ product_name?: string;
20911
21283
  variant_id?: string;
21284
+ dosage?: string;
21285
+ frequency?: string;
20912
21286
  units_to_purchase?: number;
20913
21287
  }>;
20914
- invitation_url?: string;
20915
21288
  [key: string]: unknown;
20916
21289
  }
20917
21290
  interface FullscriptProduct {
20918
21291
  id: string;
20919
21292
  name?: string;
20920
21293
  brand?: string;
21294
+ description?: string;
21295
+ image_url?: string;
21296
+ product_url?: string;
21297
+ variants?: Array<{
21298
+ id?: string;
21299
+ name?: string;
21300
+ dosage_form?: string;
21301
+ size?: string;
21302
+ price?: string;
21303
+ msrp?: string;
21304
+ sku?: string;
21305
+ }>;
21306
+ categories?: string[];
21307
+ allergens?: string[];
21308
+ third_party_certifications?: string[];
20921
21309
  [key: string]: unknown;
20922
21310
  }
20923
21311
  interface FullscriptOrder {
20924
21312
  id: string;
21313
+ state?: string;
21314
+ created_at?: string;
21315
+ updated_at?: string;
20925
21316
  line_items?: Array<{
20926
21317
  product_id?: string;
21318
+ product_name?: string;
21319
+ variant_id?: string;
20927
21320
  quantity?: number;
21321
+ price?: string;
20928
21322
  }>;
20929
21323
  item_total?: string;
20930
21324
  payment_total?: string;
20931
21325
  msrp_total?: string;
21326
+ shipping_total?: string;
21327
+ patient_id?: string;
20932
21328
  [key: string]: unknown;
20933
21329
  }
21330
+ interface CreateTreatmentPlanAttributes {
21331
+ patient_id: string;
21332
+ recommendations: Array<{
21333
+ product_id: string;
21334
+ variant_id?: string;
21335
+ dosage?: string;
21336
+ frequency?: string;
21337
+ units_to_purchase?: number;
21338
+ }>;
21339
+ send_invitation?: boolean;
21340
+ message?: string;
21341
+ }
21342
+ interface ProductMatchQuery {
21343
+ name: string;
21344
+ form?: string;
21345
+ dosage?: string;
21346
+ }
21347
+ interface ProductMatchResult {
21348
+ query: string;
21349
+ matches: FullscriptProduct[];
21350
+ }
20934
21351
  /** Attributes for upserting connector credentials. */
20935
21352
  type UpsertCredentialAttributes = {
20936
21353
  workspace_id: string;
@@ -25274,6 +25691,32 @@ type ActivityFeedParams = {
25274
25691
  offset?: number;
25275
25692
  };
25276
25693
 
25694
+ /**
25695
+ * Utility type for JSON:API resource flattening.
25696
+ *
25697
+ * The SDK runtime unwraps JSON:API envelopes via `flattenResource()`:
25698
+ * { id, type, attributes: { a, b }, relationships: { r } } → { id, type, a, b, r }
25699
+ *
25700
+ * Generated types in `_internal/types.gen.ts` keep the nested envelope shape.
25701
+ * `FlatResource<T>` mirrors the runtime flattening at the type level so namespace
25702
+ * method return types match what callers actually receive.
25703
+ *
25704
+ * @example
25705
+ * ```ts
25706
+ * import type { ClinicalMealPlan } from "./_internal/types.gen";
25707
+ * import type { FlatResource } from "./json-api";
25708
+ *
25709
+ * type MealPlan = FlatResource<ClinicalMealPlan>;
25710
+ * // MealPlan.status works directly — no .attributes?.status
25711
+ * ```
25712
+ */
25713
+ type FlatResource<T> = T extends {
25714
+ id: string;
25715
+ type: string;
25716
+ attributes?: infer A;
25717
+ relationships?: infer R;
25718
+ } ? Omit<T, "attributes" | "relationships"> & (NonNullable<A> extends Record<string, unknown> ? NonNullable<A> : {}) & (NonNullable<R> extends Record<string, unknown> ? NonNullable<R> : {}) : T;
25719
+
25277
25720
  /**
25278
25721
  * Clinical namespace for the GPT Platform Client SDK.
25279
25722
  * Covers patients, sessions, notes, health metrics, meal plans,
@@ -25281,6 +25724,21 @@ type ActivityFeedParams = {
25281
25724
  * practice tools, client resource assignments, and supplement caches.
25282
25725
  */
25283
25726
 
25727
+ type ClinicalClientGoal = FlatResource<ClinicalClientGoal$1>;
25728
+ type ClinicalClientResourceAssignment = FlatResource<ClinicalClientResourceAssignment$1>;
25729
+ type ClinicalClientSupplement = FlatResource<ClinicalClientSupplement$1>;
25730
+ type ClinicalDelivery = FlatResource<ClinicalDelivery$1>;
25731
+ type ClinicalGoalTemplate = FlatResource<ClinicalGoalTemplate$1>;
25732
+ type ClinicalGoalTemplateCategory = FlatResource<ClinicalGoalTemplateCategory$1>;
25733
+ type ClinicalHealthMetric = FlatResource<ClinicalHealthMetric$1>;
25734
+ type ClinicalMealPlan = FlatResource<ClinicalMealPlan$1>;
25735
+ type ClinicalNote = FlatResource<ClinicalNote$1>;
25736
+ type ClinicalNoteVersion = FlatResource<ClinicalNoteVersion$1>;
25737
+ type ClinicalPatient = FlatResource<ClinicalPatient$1>;
25738
+ type ClinicalPracticeResource = FlatResource<ClinicalPracticeResource$1>;
25739
+ type ClinicalPracticeTool = FlatResource<ClinicalPracticeTool$1>;
25740
+ type ClinicalSession = FlatResource<ClinicalSession$1>;
25741
+ type ClinicalSupplementRecCache = FlatResource<ClinicalSupplementRecCache$1>;
25284
25742
  interface CreateClinicalPatientAttributes {
25285
25743
  workspace_id: string;
25286
25744
  contact_id?: string;
@@ -25343,6 +25801,7 @@ interface CreateClinicalNoteAttributes {
25343
25801
  pipeline_execution_id?: string;
25344
25802
  note_type?: string;
25345
25803
  note_content?: string;
25804
+ amends_note_id?: string;
25346
25805
  metadata?: Record<string, unknown>;
25347
25806
  }
25348
25807
  interface UpdateClinicalNoteAttributes {
@@ -25381,6 +25840,8 @@ interface UpdateHealthMetricAttributes {
25381
25840
  }
25382
25841
  interface CreateMealPlanAttributes {
25383
25842
  workspace_id: string;
25843
+ /** Patient UUID. Optional if `session_id` is provided — auto-populated from the session's patient. Required when creating a meal plan without a session. */
25844
+ patient_id?: string;
25384
25845
  session_id?: string;
25385
25846
  pipeline_execution_id?: string;
25386
25847
  status?: string;
@@ -25466,6 +25927,9 @@ interface CreateClientSupplementAttributes {
25466
25927
  prescribed_at?: string;
25467
25928
  discontinued_at?: string;
25468
25929
  metadata?: Record<string, unknown>;
25930
+ route?: string;
25931
+ source?: string;
25932
+ fullscript_treatment_plan_id?: string;
25469
25933
  }
25470
25934
  interface UpdateClientSupplementAttributes {
25471
25935
  status?: string;
@@ -25480,6 +25944,9 @@ interface UpdateClientSupplementAttributes {
25480
25944
  prescribed_at?: string;
25481
25945
  discontinued_at?: string;
25482
25946
  metadata?: Record<string, unknown>;
25947
+ route?: string;
25948
+ source?: string;
25949
+ fullscript_treatment_plan_id?: string;
25483
25950
  }
25484
25951
  interface CreateDeliveryAttributes {
25485
25952
  workspace_id: string;
@@ -25729,6 +26196,32 @@ interface RecipeSearchParams {
25729
26196
  from?: number;
25730
26197
  to?: number;
25731
26198
  }
26199
+ /** Recipe object returned by Edamam via the platform proxy. */
26200
+ interface RecipeHit {
26201
+ recipe: {
26202
+ uri: string;
26203
+ label: string;
26204
+ image?: string;
26205
+ source?: string;
26206
+ url?: string;
26207
+ yield?: number;
26208
+ dietLabels?: string[];
26209
+ healthLabels?: string[];
26210
+ ingredientLines?: string[];
26211
+ calories?: number;
26212
+ totalTime?: number;
26213
+ cuisineType?: string[];
26214
+ mealType?: string[];
26215
+ dishType?: string[];
26216
+ [key: string]: unknown;
26217
+ };
26218
+ }
26219
+ /** Result shape returned by `clinical.recipes.search()`. */
26220
+ interface RecipeSearchResult {
26221
+ hits: RecipeHit[];
26222
+ count: number;
26223
+ next_page?: string;
26224
+ }
25732
26225
  interface GenerateSupplementRecsResponse {
25733
26226
  execution_id: string | null;
25734
26227
  }
@@ -26087,6 +26580,24 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
26087
26580
  * @returns Array of {@link ClinicalNote} records
26088
26581
  */
26089
26582
  list: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalNote[]>;
26583
+ /**
26584
+ * List all notes for a patient across all sessions.
26585
+ *
26586
+ * @param patientId - Patient UUID
26587
+ * @param params - Filter/pagination parameters
26588
+ * @param options - Request options
26589
+ * @returns Array of {@link ClinicalNote} records
26590
+ */
26591
+ listByPatient: (patientId: string, params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalNote[]>;
26592
+ /**
26593
+ * List all notes in a workspace.
26594
+ *
26595
+ * @param workspaceId - Workspace UUID
26596
+ * @param params - Filter/pagination parameters
26597
+ * @param options - Request options
26598
+ * @returns Array of {@link ClinicalNote} records
26599
+ */
26600
+ listByWorkspace: (workspaceId: string, params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalNote[]>;
26090
26601
  /**
26091
26602
  * Get a single note by ID.
26092
26603
  *
@@ -26316,6 +26827,15 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
26316
26827
  * @returns Array of {@link ClinicalMealPlan} records
26317
26828
  */
26318
26829
  list: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalMealPlan[]>;
26830
+ /**
26831
+ * List all meal plans for a patient across all sessions.
26832
+ *
26833
+ * @param patientId - Patient UUID
26834
+ * @param params - Filter/pagination parameters
26835
+ * @param options - Request options
26836
+ * @returns Array of {@link ClinicalMealPlan} records
26837
+ */
26838
+ listByPatient: (patientId: string, params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalMealPlan[]>;
26319
26839
  /**
26320
26840
  * Get a single meal plan by ID.
26321
26841
  *
@@ -26328,6 +26848,8 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
26328
26848
  * Create a new meal plan.
26329
26849
  *
26330
26850
  * @param attributes - Meal plan creation attributes. Must include `workspace_id`.
26851
+ * Provide `patient_id` directly, or `session_id` to auto-populate
26852
+ * `patient_id` from the session's patient.
26331
26853
  * @param options - Request options
26332
26854
  * @returns Created {@link ClinicalMealPlan} record
26333
26855
  */
@@ -26561,6 +27083,32 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
26561
27083
  * @returns Array of archived {@link ClinicalClientSupplement} records
26562
27084
  */
26563
27085
  listArchived: (params?: ClinicalListParams, options?: RequestOptions) => Promise<ClinicalClientSupplement[]>;
27086
+ /**
27087
+ * Create multiple supplements in a single request.
27088
+ *
27089
+ * @param attrs - Bulk creation attributes with workspace_id and supplements array
27090
+ * @param options - Request options
27091
+ * @returns Array of creation results with id and status per supplement
27092
+ *
27093
+ * @example
27094
+ * ```typescript
27095
+ * const results = await client.clinical.clientSupplements.bulkCreate({
27096
+ * workspace_id: 'ws_123',
27097
+ * supplements: [
27098
+ * { patient_id: 'pat_1', name: 'Vitamin D3', source: 'fullscript' },
27099
+ * { patient_id: 'pat_1', name: 'Omega-3', source: 'fullscript' },
27100
+ * ],
27101
+ * });
27102
+ * ```
27103
+ */
27104
+ bulkCreate: (attrs: {
27105
+ workspace_id: string;
27106
+ supplements: Array<Omit<CreateClientSupplementAttributes, "workspace_id">>;
27107
+ }, options?: RequestOptions) => Promise<Array<{
27108
+ id?: string;
27109
+ status: string;
27110
+ error?: string;
27111
+ }>>;
26564
27112
  };
26565
27113
  /**
26566
27114
  * Manage clinical deliveries (care plan items sent to patients).
@@ -27379,7 +27927,7 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
27379
27927
  * });
27380
27928
  * ```
27381
27929
  */
27382
- search: (params: RecipeSearchParams, options?: RequestOptions) => Promise<unknown>;
27930
+ search: (params: RecipeSearchParams, options?: RequestOptions) => Promise<RecipeSearchResult>;
27383
27931
  };
27384
27932
  };
27385
27933
 
@@ -28090,6 +28638,8 @@ declare class GptClient extends BaseClient {
28090
28638
  listTreatmentPlans: (connectorId: string, workspaceId: string, patientId: string, options?: RequestOptions) => Promise<FullscriptTreatmentPlan[]>;
28091
28639
  getTreatmentPlan: (connectorId: string, workspaceId: string, treatmentPlanId: string, options?: RequestOptions) => Promise<FullscriptTreatmentPlan>;
28092
28640
  cancelTreatmentPlan: (connectorId: string, workspaceId: string, treatmentPlanId: string, options?: RequestOptions) => Promise<FullscriptTreatmentPlan>;
28641
+ createTreatmentPlan: (connectorId: string, workspaceId: string, attrs: CreateTreatmentPlanAttributes, options?: RequestOptions) => Promise<FullscriptTreatmentPlan>;
28642
+ matchProducts: (connectorId: string, workspaceId: string, queries: ProductMatchQuery[], options?: RequestOptions) => Promise<ProductMatchResult[]>;
28093
28643
  searchProducts: (connectorId: string, workspaceId: string, query: string, options?: RequestOptions) => Promise<FullscriptProduct[]>;
28094
28644
  getProduct: (connectorId: string, workspaceId: string, productId: string, options?: RequestOptions) => Promise<FullscriptProduct>;
28095
28645
  listSimilarProducts: (connectorId: string, workspaceId: string, productId: string, options?: RequestOptions) => Promise<FullscriptProduct[]>;
@@ -28541,6 +29091,11 @@ declare class GptClient extends BaseClient {
28541
29091
  delete: (id: string, options?: RequestOptions) => Promise<true>;
28542
29092
  };
28543
29093
  };
29094
+ /** HTML→PDF generation and report delivery */
29095
+ readonly documents: {
29096
+ generatePdf: (params: GeneratePdfParams, options?: RequestOptions) => Promise<GeneratePdfResponse>;
29097
+ emailReport: (params: EmailReportParams, options?: RequestOptions) => Promise<EmailReportResponse>;
29098
+ };
28544
29099
  /** Document upload, processing, results, and exports */
28545
29100
  readonly extraction: {
28546
29101
  documents: {
@@ -28620,6 +29175,20 @@ declare class GptClient extends BaseClient {
28620
29175
  get: (workspaceId: string, documentId: string, options?: RequestOptions) => Promise<FieldMappingRecord>;
28621
29176
  create: (workspaceId: string, documentId: string, attrs: CreateFieldMappingAttributes, options?: RequestOptions) => Promise<FieldMappingRecord>;
28622
29177
  };
29178
+ extractionAgents: {
29179
+ list: (options?: RequestOptions) => Promise<ExtractionAgent[]>;
29180
+ get: (id: string, options?: RequestOptions) => Promise<ExtractionAgent>;
29181
+ predict: (attributes: {
29182
+ name?: string;
29183
+ description?: string;
29184
+ file_content?: string;
29185
+ document_id?: string;
29186
+ [key: string]: unknown;
29187
+ }, options?: RequestOptions) => Promise<unknown>;
29188
+ };
29189
+ trainingAnalytics: {
29190
+ forWorkspace: (workspaceId: string, options?: RequestOptions) => Promise<TrainingAnalytics>;
29191
+ };
28623
29192
  };
28624
29193
  /** User authentication, profiles, and API key management */
28625
29194
  readonly identity: {
@@ -29007,7 +29576,9 @@ declare class GptClient extends BaseClient {
29007
29576
  buckets: {
29008
29577
  list: (options?: {
29009
29578
  page?: number;
29010
- pageSize?: number;
29579
+ pageSize
29580
+ /** Scoped channel tokens for WebSocket authentication */
29581
+ ? /** Scoped channel tokens for WebSocket authentication */: number;
29011
29582
  } & RequestOptions) => Promise<Bucket[]>;
29012
29583
  listAll: (options?: RequestOptions) => Promise<Bucket[]>;
29013
29584
  delete: (id: string, options?: RequestOptions) => Promise<true>;
@@ -29029,6 +29600,7 @@ declare class GptClient extends BaseClient {
29029
29600
  updateMetadata: (id: string, newMetadata: Record<string, unknown>, options?: RequestOptions) => Promise<StorageFile>;
29030
29601
  byChecksum: (checksum: string, options?: RequestOptions) => Promise<StorageFile[]>;
29031
29602
  listChildren: (parentId: string, options?: RequestOptions) => Promise<StorageFile[]>;
29603
+ requestDownloadUrl: (id: string, params?: RequestDownloadUrlParams, options?: RequestOptions) => Promise<DownloadUrlResponse>;
29032
29604
  };
29033
29605
  };
29034
29606
  /** Conversation threads, messaging, and thread management */
@@ -29256,13 +29828,14 @@ declare class GptClient extends BaseClient {
29256
29828
  campaigns: {
29257
29829
  list: (options?: RequestOptions) => Promise<unknown>;
29258
29830
  get: (id: string, options?: RequestOptions) => Promise<unknown>;
29259
- create: (attributes: SocialCampaignCreateAttributes, options?: RequestOptions) => Promise<unknown>;
29831
+ create: (workspaceId: string, attributes: SocialCampaignCreateAttributes, options?: RequestOptions) => Promise<unknown>;
29260
29832
  update: (id: string, attributes: SocialCampaignUpdateAttributes, options?: RequestOptions) => Promise<unknown>;
29261
29833
  delete: (id: string, options?: RequestOptions) => Promise<unknown>;
29262
29834
  schedule: (id: string, scheduledAt: string, options?: RequestOptions) => Promise<unknown>;
29263
29835
  cancel: (id: string, options?: RequestOptions) => Promise<unknown>;
29264
29836
  generateMasterCopy: (id: string, workspaceId: string, options?: RequestOptions) => Promise<unknown>;
29265
29837
  adaptForPlatforms: (id: string, workspaceId: string, socialAccountId: string, options?: RequestOptions) => Promise<unknown>;
29838
+ previewAdaptations: (id: string, workspaceId: string, options?: RequestOptions) => Promise<unknown>;
29266
29839
  };
29267
29840
  trending: {
29268
29841
  get: (id: string, options?: RequestOptions) => Promise<unknown>;
@@ -29405,9 +29978,7 @@ declare class GptClient extends BaseClient {
29405
29978
  };
29406
29979
  documentSections: {
29407
29980
  list: (params?: {
29408
- page
29409
- /** Contacts, companies, deals, activities, pipelines, relationships, and custom entities */
29410
- ? /** Contacts, companies, deals, activities, pipelines, relationships, and custom entities */: number;
29981
+ page?: number;
29411
29982
  pageSize?: number;
29412
29983
  }, options?: RequestOptions) => Promise<DocumentSection[]>;
29413
29984
  get: (id: string, options?: RequestOptions) => Promise<DocumentSection>;
@@ -29435,7 +30006,7 @@ declare class GptClient extends BaseClient {
29435
30006
  upload: (file: File | Blob, params: {
29436
30007
  adapter: string;
29437
30008
  workspace_id: string;
29438
- column_mapping?: Record<string, string>;
30009
+ column_mapping? /** Product catalog, inventory, pricing, and taxonomy */: Record<string, string>;
29439
30010
  metadata?: Record<string, unknown>;
29440
30011
  }, options?: RequestOptions) => Promise<{
29441
30012
  data: {
@@ -29447,7 +30018,7 @@ declare class GptClient extends BaseClient {
29447
30018
  workspace_id: string;
29448
30019
  adapter?: string;
29449
30020
  status?: string;
29450
- offset?: number;
30021
+ offset? /** Document upload, processing, results, and exports */: number;
29451
30022
  limit?: number;
29452
30023
  }, options?: RequestOptions) => Promise<{
29453
30024
  data: Import[];
@@ -29725,6 +30296,7 @@ type CampaignsAPI = ReturnType<typeof createCampaignsNamespace>;
29725
30296
  type EmailAPI = ReturnType<typeof createEmailNamespace>;
29726
30297
  type AgentsAPI = ReturnType<typeof createAgentsNamespace>;
29727
30298
  type StorageAPI = ReturnType<typeof createStorageNamespace>;
30299
+
29728
30300
  type AiAPI = ReturnType<typeof createAiNamespace>;
29729
30301
  type PlatformAPI = ReturnType<typeof createPlatformNamespace>;
29730
30302
  type SchedulingAPI = ReturnType<typeof createSchedulingNamespace>;
@@ -29733,4 +30305,4 @@ type SocialAPI = ReturnType<typeof createSocialNamespace>;
29733
30305
  type ModelsAPI = ReturnType<typeof createModelsNamespace>;
29734
30306
  type MemoryAPI = ReturnType<typeof createMemoryNamespace>;
29735
30307
 
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 };
30308
+ 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 BeginUploadAttributes, type BillingAPI, type BillingAccount, BrowserApiKeyError, type BulkOperationResult, type BulkReprocessResult, 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 CreateExtractionBatchAttributes, type CreateExtractionExportAttributes, type CreateFieldMappingAttributes, type CreateFieldTemplateAttributes, type CreateLabelInput, type CreateMilestoneInput, type CreateProjectInput, type CreateSchemaDiscoveryAttributes, type CreateTaskInput, type CreateTestResultAttributes, type CreateThreadAttributes, type CreateTimeEntryInput, type CreditPackage, DEFAULT_API_VERSION, DEFAULT_RETRY_CONFIG, type DecomposedPlan, type DismissAllTrainedResult, type DocumentSection, type DocumentStatsResponse, type DocumentStatusResponse, type DoneEvent, type DownloadUrlResponse, type EmailAPI, type ErrorEvent, type Execution, type ExecutionEvent, type ExtractionAPI, type ExtractionExportRecord, type ExtractionPresignedUploadAttributes, type ExtractionPresignedUploadResponse, type ExtractionRowQueryParams, type ExtractionRowQueryResult, type FeatureDefinition, type FeatureSummary, type FeatureUsage, type FieldMappingRecord, type FieldTemplateRecord, type FindOrBeginUploadAttributes, type FlatResource, 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, type RegenerateResultAttributes, RequestBuilder, type RequestDownloadUrlParams, type RequestOptions, type RetryConfig, RetryTimeoutError, SDK_VERSION, type SaveCorrectionsAttributes, type SchedulingAPI, type SchemaDiscoveryRecord, 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 UpdateExtractionResultAttributes, type UpdateFeatureDefinitionAttributes, type UpdateMemberInput, type UpdateMessageAttributes, type UpdateProjectInput, type UpdateThreadAttributes, type UpdateVerificationAttributes, 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 };