@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.mjs
CHANGED
|
@@ -1272,7 +1272,7 @@ function buildUserAgent(sdkVersion, appInfo) {
|
|
|
1272
1272
|
}
|
|
1273
1273
|
|
|
1274
1274
|
// src/version.ts
|
|
1275
|
-
var SDK_VERSION = "0.10.
|
|
1275
|
+
var SDK_VERSION = "0.10.2";
|
|
1276
1276
|
var DEFAULT_API_VERSION = "2026-03-23";
|
|
1277
1277
|
|
|
1278
1278
|
// src/base-client.ts
|
|
@@ -12361,7 +12361,7 @@ function createClinicalNamespace(rb) {
|
|
|
12361
12361
|
*/
|
|
12362
12362
|
list: async (params, options) => rb.execute(
|
|
12363
12363
|
getClinicalPatients,
|
|
12364
|
-
params ?? {},
|
|
12364
|
+
{ query: params ?? {} },
|
|
12365
12365
|
options
|
|
12366
12366
|
),
|
|
12367
12367
|
/**
|
|
@@ -12550,7 +12550,7 @@ function createClinicalNamespace(rb) {
|
|
|
12550
12550
|
*/
|
|
12551
12551
|
list: async (params, options) => rb.execute(
|
|
12552
12552
|
getClinicalSessions,
|
|
12553
|
-
params ?? {},
|
|
12553
|
+
{ query: params ?? {} },
|
|
12554
12554
|
options
|
|
12555
12555
|
),
|
|
12556
12556
|
/**
|
|
@@ -12645,20 +12645,32 @@ function createClinicalNamespace(rb) {
|
|
|
12645
12645
|
*
|
|
12646
12646
|
* @param sessionId - Session UUID
|
|
12647
12647
|
* @param workspaceId - Workspace UUID
|
|
12648
|
+
* @param triggerOptions - Optional pipeline targeting (pipeline_slug)
|
|
12648
12649
|
* @param options - Request options
|
|
12649
12650
|
* @returns {@link TriggerPipelineResponse} with execution_id (may be null if pipeline not configured)
|
|
12650
12651
|
*
|
|
12651
12652
|
* @example
|
|
12652
12653
|
* ```typescript
|
|
12654
|
+
* // Default pipeline (post-session-documentation)
|
|
12653
12655
|
* const { execution_id } = await client.clinical.sessions.triggerPipeline(
|
|
12654
12656
|
* 'sess_xyz',
|
|
12655
12657
|
* 'ws_123',
|
|
12656
12658
|
* );
|
|
12659
|
+
*
|
|
12660
|
+
* // Specific pipeline by slug
|
|
12661
|
+
* const { execution_id: eid } = await client.clinical.sessions.triggerPipeline(
|
|
12662
|
+
* 'sess_xyz',
|
|
12663
|
+
* 'ws_123',
|
|
12664
|
+
* { pipeline_slug: 'chartless-quick-goals-update' },
|
|
12665
|
+
* );
|
|
12657
12666
|
* ```
|
|
12658
12667
|
*/
|
|
12659
|
-
triggerPipeline: async (sessionId, workspaceId, options) => rb.rawPost(
|
|
12668
|
+
triggerPipeline: async (sessionId, workspaceId, triggerOptions, options) => rb.rawPost(
|
|
12660
12669
|
`/clinical/sessions/${sessionId}/trigger-pipeline`,
|
|
12661
|
-
{
|
|
12670
|
+
{
|
|
12671
|
+
workspace_id: workspaceId,
|
|
12672
|
+
...triggerOptions?.pipeline_slug ? { pipeline_slug: triggerOptions.pipeline_slug } : {}
|
|
12673
|
+
},
|
|
12662
12674
|
options
|
|
12663
12675
|
)
|
|
12664
12676
|
},
|
|
@@ -12677,7 +12689,11 @@ function createClinicalNamespace(rb) {
|
|
|
12677
12689
|
* @param options - Request options
|
|
12678
12690
|
* @returns Array of {@link ClinicalNote} records
|
|
12679
12691
|
*/
|
|
12680
|
-
list: async (params, options) => rb.execute(
|
|
12692
|
+
list: async (params, options) => rb.execute(
|
|
12693
|
+
getClinicalNotes,
|
|
12694
|
+
{ query: params ?? {} },
|
|
12695
|
+
options
|
|
12696
|
+
),
|
|
12681
12697
|
/**
|
|
12682
12698
|
* Get a single note by ID.
|
|
12683
12699
|
*
|
|
@@ -12786,7 +12802,7 @@ function createClinicalNamespace(rb) {
|
|
|
12786
12802
|
*/
|
|
12787
12803
|
listArchived: async (params, options) => rb.execute(
|
|
12788
12804
|
getClinicalNotesArchived,
|
|
12789
|
-
params ?? {},
|
|
12805
|
+
{ query: params ?? {} },
|
|
12790
12806
|
options
|
|
12791
12807
|
),
|
|
12792
12808
|
/**
|
|
@@ -12893,7 +12909,7 @@ function createClinicalNamespace(rb) {
|
|
|
12893
12909
|
*/
|
|
12894
12910
|
list: async (params, options) => rb.execute(
|
|
12895
12911
|
getClinicalHealthMetrics,
|
|
12896
|
-
params ?? {},
|
|
12912
|
+
{ query: params ?? {} },
|
|
12897
12913
|
options
|
|
12898
12914
|
),
|
|
12899
12915
|
/**
|
|
@@ -13023,7 +13039,7 @@ function createClinicalNamespace(rb) {
|
|
|
13023
13039
|
*/
|
|
13024
13040
|
listArchived: async (params, options) => rb.execute(
|
|
13025
13041
|
getClinicalHealthMetricsArchived,
|
|
13026
|
-
params ?? {},
|
|
13042
|
+
{ query: params ?? {} },
|
|
13027
13043
|
options
|
|
13028
13044
|
)
|
|
13029
13045
|
},
|
|
@@ -13040,7 +13056,7 @@ function createClinicalNamespace(rb) {
|
|
|
13040
13056
|
*/
|
|
13041
13057
|
list: async (params, options) => rb.execute(
|
|
13042
13058
|
getClinicalMealPlans,
|
|
13043
|
-
params ?? {},
|
|
13059
|
+
{ query: params ?? {} },
|
|
13044
13060
|
options
|
|
13045
13061
|
),
|
|
13046
13062
|
/**
|
|
@@ -13151,7 +13167,7 @@ function createClinicalNamespace(rb) {
|
|
|
13151
13167
|
*/
|
|
13152
13168
|
listArchived: async (params, options) => rb.execute(
|
|
13153
13169
|
getClinicalMealPlansArchived,
|
|
13154
|
-
params ?? {},
|
|
13170
|
+
{ query: params ?? {} },
|
|
13155
13171
|
options
|
|
13156
13172
|
)
|
|
13157
13173
|
},
|
|
@@ -13168,7 +13184,7 @@ function createClinicalNamespace(rb) {
|
|
|
13168
13184
|
*/
|
|
13169
13185
|
list: async (params, options) => rb.execute(
|
|
13170
13186
|
getClinicalClientGoals,
|
|
13171
|
-
params ?? {},
|
|
13187
|
+
{ query: params ?? {} },
|
|
13172
13188
|
options
|
|
13173
13189
|
),
|
|
13174
13190
|
/**
|
|
@@ -13285,7 +13301,7 @@ function createClinicalNamespace(rb) {
|
|
|
13285
13301
|
*/
|
|
13286
13302
|
listArchived: async (params, options) => rb.execute(
|
|
13287
13303
|
getClinicalClientGoalsArchived,
|
|
13288
|
-
params ?? {},
|
|
13304
|
+
{ query: params ?? {} },
|
|
13289
13305
|
options
|
|
13290
13306
|
),
|
|
13291
13307
|
/**
|
|
@@ -13323,7 +13339,7 @@ function createClinicalNamespace(rb) {
|
|
|
13323
13339
|
*/
|
|
13324
13340
|
list: async (params, options) => rb.execute(
|
|
13325
13341
|
getClinicalClientSupplements,
|
|
13326
|
-
params ?? {},
|
|
13342
|
+
{ query: params ?? {} },
|
|
13327
13343
|
options
|
|
13328
13344
|
),
|
|
13329
13345
|
/**
|
|
@@ -13445,7 +13461,7 @@ function createClinicalNamespace(rb) {
|
|
|
13445
13461
|
*/
|
|
13446
13462
|
listArchived: async (params, options) => rb.execute(
|
|
13447
13463
|
getClinicalClientSupplementsArchived,
|
|
13448
|
-
params ?? {},
|
|
13464
|
+
{ query: params ?? {} },
|
|
13449
13465
|
options
|
|
13450
13466
|
)
|
|
13451
13467
|
},
|
|
@@ -13462,7 +13478,7 @@ function createClinicalNamespace(rb) {
|
|
|
13462
13478
|
*/
|
|
13463
13479
|
list: async (params, options) => rb.execute(
|
|
13464
13480
|
getClinicalDeliveries,
|
|
13465
|
-
params ?? {},
|
|
13481
|
+
{ query: params ?? {} },
|
|
13466
13482
|
options
|
|
13467
13483
|
),
|
|
13468
13484
|
/**
|
|
@@ -13520,7 +13536,7 @@ function createClinicalNamespace(rb) {
|
|
|
13520
13536
|
*/
|
|
13521
13537
|
list: async (params, options) => rb.execute(
|
|
13522
13538
|
getClinicalPracticeResources,
|
|
13523
|
-
params ?? {},
|
|
13539
|
+
{ query: params ?? {} },
|
|
13524
13540
|
options
|
|
13525
13541
|
),
|
|
13526
13542
|
/**
|
|
@@ -13641,7 +13657,7 @@ function createClinicalNamespace(rb) {
|
|
|
13641
13657
|
*/
|
|
13642
13658
|
listArchived: async (params, options) => rb.execute(
|
|
13643
13659
|
getClinicalPracticeResourcesArchived,
|
|
13644
|
-
params ?? {},
|
|
13660
|
+
{ query: params ?? {} },
|
|
13645
13661
|
options
|
|
13646
13662
|
),
|
|
13647
13663
|
/**
|
|
@@ -13711,7 +13727,7 @@ function createClinicalNamespace(rb) {
|
|
|
13711
13727
|
*/
|
|
13712
13728
|
listArchivedCatalog: async (params, options) => rb.execute(
|
|
13713
13729
|
getClinicalPracticeResourcesCatalogArchived,
|
|
13714
|
-
params ?? {},
|
|
13730
|
+
{ query: params ?? {} },
|
|
13715
13731
|
options
|
|
13716
13732
|
),
|
|
13717
13733
|
/**
|
|
@@ -13966,7 +13982,7 @@ function createClinicalNamespace(rb) {
|
|
|
13966
13982
|
*/
|
|
13967
13983
|
listArchived: async (params, options) => rb.execute(
|
|
13968
13984
|
getClinicalPracticeToolsArchived,
|
|
13969
|
-
params ?? {},
|
|
13985
|
+
{ query: params ?? {} },
|
|
13970
13986
|
options
|
|
13971
13987
|
),
|
|
13972
13988
|
/**
|
|
@@ -14058,7 +14074,7 @@ function createClinicalNamespace(rb) {
|
|
|
14058
14074
|
*/
|
|
14059
14075
|
listArchivedCatalog: async (params, options) => rb.execute(
|
|
14060
14076
|
getClinicalPracticeToolsCatalogArchived,
|
|
14061
|
-
params ?? {},
|
|
14077
|
+
{ query: params ?? {} },
|
|
14062
14078
|
options
|
|
14063
14079
|
),
|
|
14064
14080
|
/**
|
|
@@ -14173,7 +14189,7 @@ function createClinicalNamespace(rb) {
|
|
|
14173
14189
|
*/
|
|
14174
14190
|
list: async (params, options) => rb.execute(
|
|
14175
14191
|
getClinicalClientResourceAssignments,
|
|
14176
|
-
params ?? {},
|
|
14192
|
+
{ query: params ?? {} },
|
|
14177
14193
|
options
|
|
14178
14194
|
),
|
|
14179
14195
|
/**
|
|
@@ -14313,7 +14329,7 @@ function createClinicalNamespace(rb) {
|
|
|
14313
14329
|
*/
|
|
14314
14330
|
listArchived: async (params, options) => rb.execute(
|
|
14315
14331
|
getClinicalClientResourceAssignmentsArchived,
|
|
14316
|
-
params ?? {},
|
|
14332
|
+
{ query: params ?? {} },
|
|
14317
14333
|
options
|
|
14318
14334
|
)
|
|
14319
14335
|
},
|
|
@@ -14334,7 +14350,7 @@ function createClinicalNamespace(rb) {
|
|
|
14334
14350
|
*/
|
|
14335
14351
|
list: async (params, options) => rb.execute(
|
|
14336
14352
|
getClinicalSupplementRecCache,
|
|
14337
|
-
params ?? {},
|
|
14353
|
+
{ query: params ?? {} },
|
|
14338
14354
|
options
|
|
14339
14355
|
),
|
|
14340
14356
|
/**
|
|
@@ -14565,7 +14581,7 @@ function createClinicalNamespace(rb) {
|
|
|
14565
14581
|
*/
|
|
14566
14582
|
listArchived: async (params, options) => rb.execute(
|
|
14567
14583
|
getClinicalGoalTemplatesArchived,
|
|
14568
|
-
params ?? {},
|
|
14584
|
+
{ query: params ?? {} },
|
|
14569
14585
|
options
|
|
14570
14586
|
),
|
|
14571
14587
|
/**
|
|
@@ -14635,7 +14651,7 @@ function createClinicalNamespace(rb) {
|
|
|
14635
14651
|
*/
|
|
14636
14652
|
listArchivedCatalog: async (params, options) => rb.execute(
|
|
14637
14653
|
getClinicalGoalTemplatesCatalogArchived,
|
|
14638
|
-
params ?? {},
|
|
14654
|
+
{ query: params ?? {} },
|
|
14639
14655
|
options
|
|
14640
14656
|
),
|
|
14641
14657
|
/**
|
|
@@ -32946,7 +32962,11 @@ function createSocialNamespace(rb) {
|
|
|
32946
32962
|
get: async (id, options) => {
|
|
32947
32963
|
return rb.execute(getSocialCampaignsById, { path: { id } }, options);
|
|
32948
32964
|
},
|
|
32949
|
-
/**
|
|
32965
|
+
/**
|
|
32966
|
+
* Create a new social campaign.
|
|
32967
|
+
* Workspace is resolved from the authenticated user's context — do NOT
|
|
32968
|
+
* pass `workspace_id` in attributes.
|
|
32969
|
+
*/
|
|
32950
32970
|
create: async (attributes, options) => {
|
|
32951
32971
|
return rb.execute(
|
|
32952
32972
|
postSocialCampaigns,
|
|
@@ -33013,11 +33033,8 @@ function createSocialNamespace(rb) {
|
|
|
33013
33033
|
path: { id },
|
|
33014
33034
|
body: {
|
|
33015
33035
|
data: {
|
|
33016
|
-
|
|
33017
|
-
|
|
33018
|
-
campaign_id: id,
|
|
33019
|
-
workspace_id: workspaceId
|
|
33020
|
-
}
|
|
33036
|
+
campaign_id: id,
|
|
33037
|
+
workspace_id: workspaceId
|
|
33021
33038
|
}
|
|
33022
33039
|
}
|
|
33023
33040
|
},
|
|
@@ -33032,12 +33049,9 @@ function createSocialNamespace(rb) {
|
|
|
33032
33049
|
path: { id },
|
|
33033
33050
|
body: {
|
|
33034
33051
|
data: {
|
|
33035
|
-
|
|
33036
|
-
|
|
33037
|
-
|
|
33038
|
-
workspace_id: workspaceId,
|
|
33039
|
-
social_account_id: socialAccountId
|
|
33040
|
-
}
|
|
33052
|
+
campaign_id: id,
|
|
33053
|
+
workspace_id: workspaceId,
|
|
33054
|
+
social_account_id: socialAccountId
|
|
33041
33055
|
}
|
|
33042
33056
|
}
|
|
33043
33057
|
},
|
|
@@ -34618,6 +34632,7 @@ export {
|
|
|
34618
34632
|
collectStreamedMessage,
|
|
34619
34633
|
createChannelsNamespace,
|
|
34620
34634
|
createImportsNamespace,
|
|
34635
|
+
createProjectsNamespace,
|
|
34621
34636
|
handleApiError,
|
|
34622
34637
|
isBrowserEnvironment,
|
|
34623
34638
|
isSecureUrl,
|