@gpt-platform/client 0.8.1 → 0.8.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 +80 -5
- package/dist/index.d.ts +80 -5
- package/dist/index.js +401 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +401 -12
- package/dist/index.mjs.map +1 -1
- package/llms.txt +18 -2
- package/package.json +1 -1
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.8.
|
|
609
|
+
declare const SDK_VERSION = "0.8.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-11";
|
|
612
612
|
|
|
@@ -21909,6 +21909,24 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
|
|
|
21909
21909
|
* ```
|
|
21910
21910
|
*/
|
|
21911
21911
|
delete: (id: string, options?: RequestOptions) => Promise<true>;
|
|
21912
|
+
/**
|
|
21913
|
+
* Look up a patient by their CRM Contact ID.
|
|
21914
|
+
*
|
|
21915
|
+
* Most ISV apps work with CRM Contact IDs, not Clinical Patient UUIDs.
|
|
21916
|
+
* Use this to resolve the patient record for a given contact.
|
|
21917
|
+
*
|
|
21918
|
+
* @param contactId - CRM Contact UUID
|
|
21919
|
+
* @param options - Request options
|
|
21920
|
+
* @returns {@link ClinicalPatient} record linked to the contact
|
|
21921
|
+
* @throws {@link NotFoundError} if no patient exists for the contact
|
|
21922
|
+
*
|
|
21923
|
+
* @example
|
|
21924
|
+
* ```typescript
|
|
21925
|
+
* const patient = await client.clinical.patients.getByContact('c7da2056-...');
|
|
21926
|
+
* console.log(patient.id); // Clinical Patient UUID
|
|
21927
|
+
* ```
|
|
21928
|
+
*/
|
|
21929
|
+
getByContact: (contactId: string, options?: RequestOptions) => Promise<ClinicalPatient>;
|
|
21912
21930
|
/**
|
|
21913
21931
|
* List health metrics for a patient (related resource).
|
|
21914
21932
|
*
|
|
@@ -23407,7 +23425,7 @@ declare class GptClient extends BaseClient {
|
|
|
23407
23425
|
jobs: {
|
|
23408
23426
|
list: (options?: {
|
|
23409
23427
|
page?: number;
|
|
23410
|
-
pageSize
|
|
23428
|
+
pageSize?: number;
|
|
23411
23429
|
} & RequestOptions) => Promise<CrawlerJob[]>;
|
|
23412
23430
|
get: (id: string, options?: RequestOptions) => Promise<CrawlerJob>;
|
|
23413
23431
|
create: (attributes: CreateCrawlerJobAttributes, options?: RequestOptions) => Promise<CrawlerJob>;
|
|
@@ -23552,6 +23570,65 @@ declare class GptClient extends BaseClient {
|
|
|
23552
23570
|
refreshUrl: (jobId: string, options?: RequestOptions) => Promise<CrmDataExportJob>;
|
|
23553
23571
|
};
|
|
23554
23572
|
};
|
|
23573
|
+
/** AI content generation — text, images, tone rewriting, hashtags, SEO */
|
|
23574
|
+
readonly content: {
|
|
23575
|
+
generateText: (attributes: {
|
|
23576
|
+
prompt: string;
|
|
23577
|
+
workspace_id: string;
|
|
23578
|
+
brand_identity_id?: string;
|
|
23579
|
+
task?: string;
|
|
23580
|
+
}, options?: RequestOptions) => Promise<unknown>;
|
|
23581
|
+
generateImage: (attributes: {
|
|
23582
|
+
prompt: string;
|
|
23583
|
+
workspace_id: string;
|
|
23584
|
+
style?: string;
|
|
23585
|
+
}, options?: RequestOptions) => Promise<unknown>;
|
|
23586
|
+
editImage: (attributes: {
|
|
23587
|
+
image_url: string;
|
|
23588
|
+
instructions: string;
|
|
23589
|
+
workspace_id: string;
|
|
23590
|
+
}, options?: RequestOptions) => Promise<unknown>;
|
|
23591
|
+
rewriteTone: (attributes: {
|
|
23592
|
+
text: string;
|
|
23593
|
+
target_tone: string;
|
|
23594
|
+
workspace_id: string;
|
|
23595
|
+
max_length?: number;
|
|
23596
|
+
}, options?: RequestOptions) => Promise<unknown>;
|
|
23597
|
+
shorten: (attributes: {
|
|
23598
|
+
text: string;
|
|
23599
|
+
max_chars: number;
|
|
23600
|
+
workspace_id: string;
|
|
23601
|
+
platform?: string;
|
|
23602
|
+
}, options?: RequestOptions) => Promise<unknown>;
|
|
23603
|
+
refine: (attributes: {
|
|
23604
|
+
text: string;
|
|
23605
|
+
instructions: string;
|
|
23606
|
+
workspace_id: string;
|
|
23607
|
+
}, options?: RequestOptions) => Promise<unknown>;
|
|
23608
|
+
suggestTopics: (attributes: {
|
|
23609
|
+
workspace_id: string;
|
|
23610
|
+
industry?: string;
|
|
23611
|
+
brand_identity_id? /** Pipeline trigger — execute multi-node agent pipelines */: string;
|
|
23612
|
+
count?: number;
|
|
23613
|
+
}, options?: RequestOptions) => Promise<unknown>;
|
|
23614
|
+
generateImagePrompt: (attributes: {
|
|
23615
|
+
marketing_copy: string;
|
|
23616
|
+
workspace_id: string;
|
|
23617
|
+
style?: string;
|
|
23618
|
+
}, options?: RequestOptions) => Promise<unknown>;
|
|
23619
|
+
generateHashtags: (attributes: {
|
|
23620
|
+
text: string;
|
|
23621
|
+
platform: string;
|
|
23622
|
+
workspace_id: string;
|
|
23623
|
+
industry?: string;
|
|
23624
|
+
count?: number;
|
|
23625
|
+
}, options?: RequestOptions) => Promise<unknown>;
|
|
23626
|
+
seoEnrich: (attributes: {
|
|
23627
|
+
text: string;
|
|
23628
|
+
target_keywords: string[];
|
|
23629
|
+
workspace_id: string;
|
|
23630
|
+
}, options?: RequestOptions) => Promise<unknown>;
|
|
23631
|
+
};
|
|
23555
23632
|
/** Email campaigns, recipients, AI generation, and sequences */
|
|
23556
23633
|
readonly campaigns: {
|
|
23557
23634
|
campaigns: {
|
|
@@ -23912,9 +23989,7 @@ declare class GptClient extends BaseClient {
|
|
|
23912
23989
|
get: (options?: RequestOptions) => Promise<PortalProfile>;
|
|
23913
23990
|
update: (params: {
|
|
23914
23991
|
avatar_url?: string;
|
|
23915
|
-
locale
|
|
23916
|
-
/** Document upload, processing, results, and exports */
|
|
23917
|
-
?: string;
|
|
23992
|
+
locale?: string;
|
|
23918
23993
|
timezone?: string;
|
|
23919
23994
|
notification_preferences?: Record<string, unknown>;
|
|
23920
23995
|
}, options?: RequestOptions) => Promise<{
|
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.8.
|
|
609
|
+
declare const SDK_VERSION = "0.8.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-11";
|
|
612
612
|
|
|
@@ -21909,6 +21909,24 @@ declare function createClinicalNamespace(rb: RequestBuilder): {
|
|
|
21909
21909
|
* ```
|
|
21910
21910
|
*/
|
|
21911
21911
|
delete: (id: string, options?: RequestOptions) => Promise<true>;
|
|
21912
|
+
/**
|
|
21913
|
+
* Look up a patient by their CRM Contact ID.
|
|
21914
|
+
*
|
|
21915
|
+
* Most ISV apps work with CRM Contact IDs, not Clinical Patient UUIDs.
|
|
21916
|
+
* Use this to resolve the patient record for a given contact.
|
|
21917
|
+
*
|
|
21918
|
+
* @param contactId - CRM Contact UUID
|
|
21919
|
+
* @param options - Request options
|
|
21920
|
+
* @returns {@link ClinicalPatient} record linked to the contact
|
|
21921
|
+
* @throws {@link NotFoundError} if no patient exists for the contact
|
|
21922
|
+
*
|
|
21923
|
+
* @example
|
|
21924
|
+
* ```typescript
|
|
21925
|
+
* const patient = await client.clinical.patients.getByContact('c7da2056-...');
|
|
21926
|
+
* console.log(patient.id); // Clinical Patient UUID
|
|
21927
|
+
* ```
|
|
21928
|
+
*/
|
|
21929
|
+
getByContact: (contactId: string, options?: RequestOptions) => Promise<ClinicalPatient>;
|
|
21912
21930
|
/**
|
|
21913
21931
|
* List health metrics for a patient (related resource).
|
|
21914
21932
|
*
|
|
@@ -23407,7 +23425,7 @@ declare class GptClient extends BaseClient {
|
|
|
23407
23425
|
jobs: {
|
|
23408
23426
|
list: (options?: {
|
|
23409
23427
|
page?: number;
|
|
23410
|
-
pageSize
|
|
23428
|
+
pageSize?: number;
|
|
23411
23429
|
} & RequestOptions) => Promise<CrawlerJob[]>;
|
|
23412
23430
|
get: (id: string, options?: RequestOptions) => Promise<CrawlerJob>;
|
|
23413
23431
|
create: (attributes: CreateCrawlerJobAttributes, options?: RequestOptions) => Promise<CrawlerJob>;
|
|
@@ -23552,6 +23570,65 @@ declare class GptClient extends BaseClient {
|
|
|
23552
23570
|
refreshUrl: (jobId: string, options?: RequestOptions) => Promise<CrmDataExportJob>;
|
|
23553
23571
|
};
|
|
23554
23572
|
};
|
|
23573
|
+
/** AI content generation — text, images, tone rewriting, hashtags, SEO */
|
|
23574
|
+
readonly content: {
|
|
23575
|
+
generateText: (attributes: {
|
|
23576
|
+
prompt: string;
|
|
23577
|
+
workspace_id: string;
|
|
23578
|
+
brand_identity_id?: string;
|
|
23579
|
+
task?: string;
|
|
23580
|
+
}, options?: RequestOptions) => Promise<unknown>;
|
|
23581
|
+
generateImage: (attributes: {
|
|
23582
|
+
prompt: string;
|
|
23583
|
+
workspace_id: string;
|
|
23584
|
+
style?: string;
|
|
23585
|
+
}, options?: RequestOptions) => Promise<unknown>;
|
|
23586
|
+
editImage: (attributes: {
|
|
23587
|
+
image_url: string;
|
|
23588
|
+
instructions: string;
|
|
23589
|
+
workspace_id: string;
|
|
23590
|
+
}, options?: RequestOptions) => Promise<unknown>;
|
|
23591
|
+
rewriteTone: (attributes: {
|
|
23592
|
+
text: string;
|
|
23593
|
+
target_tone: string;
|
|
23594
|
+
workspace_id: string;
|
|
23595
|
+
max_length?: number;
|
|
23596
|
+
}, options?: RequestOptions) => Promise<unknown>;
|
|
23597
|
+
shorten: (attributes: {
|
|
23598
|
+
text: string;
|
|
23599
|
+
max_chars: number;
|
|
23600
|
+
workspace_id: string;
|
|
23601
|
+
platform?: string;
|
|
23602
|
+
}, options?: RequestOptions) => Promise<unknown>;
|
|
23603
|
+
refine: (attributes: {
|
|
23604
|
+
text: string;
|
|
23605
|
+
instructions: string;
|
|
23606
|
+
workspace_id: string;
|
|
23607
|
+
}, options?: RequestOptions) => Promise<unknown>;
|
|
23608
|
+
suggestTopics: (attributes: {
|
|
23609
|
+
workspace_id: string;
|
|
23610
|
+
industry?: string;
|
|
23611
|
+
brand_identity_id? /** Pipeline trigger — execute multi-node agent pipelines */: string;
|
|
23612
|
+
count?: number;
|
|
23613
|
+
}, options?: RequestOptions) => Promise<unknown>;
|
|
23614
|
+
generateImagePrompt: (attributes: {
|
|
23615
|
+
marketing_copy: string;
|
|
23616
|
+
workspace_id: string;
|
|
23617
|
+
style?: string;
|
|
23618
|
+
}, options?: RequestOptions) => Promise<unknown>;
|
|
23619
|
+
generateHashtags: (attributes: {
|
|
23620
|
+
text: string;
|
|
23621
|
+
platform: string;
|
|
23622
|
+
workspace_id: string;
|
|
23623
|
+
industry?: string;
|
|
23624
|
+
count?: number;
|
|
23625
|
+
}, options?: RequestOptions) => Promise<unknown>;
|
|
23626
|
+
seoEnrich: (attributes: {
|
|
23627
|
+
text: string;
|
|
23628
|
+
target_keywords: string[];
|
|
23629
|
+
workspace_id: string;
|
|
23630
|
+
}, options?: RequestOptions) => Promise<unknown>;
|
|
23631
|
+
};
|
|
23555
23632
|
/** Email campaigns, recipients, AI generation, and sequences */
|
|
23556
23633
|
readonly campaigns: {
|
|
23557
23634
|
campaigns: {
|
|
@@ -23912,9 +23989,7 @@ declare class GptClient extends BaseClient {
|
|
|
23912
23989
|
get: (options?: RequestOptions) => Promise<PortalProfile>;
|
|
23913
23990
|
update: (params: {
|
|
23914
23991
|
avatar_url?: string;
|
|
23915
|
-
locale
|
|
23916
|
-
/** Document upload, processing, results, and exports */
|
|
23917
|
-
?: string;
|
|
23992
|
+
locale?: string;
|
|
23918
23993
|
timezone?: string;
|
|
23919
23994
|
notification_preferences?: Record<string, unknown>;
|
|
23920
23995
|
}, options?: RequestOptions) => Promise<{
|