@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.js
CHANGED
|
@@ -51,6 +51,7 @@ __export(index_exports, {
|
|
|
51
51
|
collectStreamedMessage: () => collectStreamedMessage,
|
|
52
52
|
createChannelsNamespace: () => createChannelsNamespace,
|
|
53
53
|
createImportsNamespace: () => createImportsNamespace,
|
|
54
|
+
createProjectsNamespace: () => createProjectsNamespace,
|
|
54
55
|
handleApiError: () => handleApiError,
|
|
55
56
|
isBrowserEnvironment: () => isBrowserEnvironment,
|
|
56
57
|
isSecureUrl: () => isSecureUrl,
|
|
@@ -1338,7 +1339,7 @@ function buildUserAgent(sdkVersion, appInfo) {
|
|
|
1338
1339
|
}
|
|
1339
1340
|
|
|
1340
1341
|
// src/version.ts
|
|
1341
|
-
var SDK_VERSION = "0.10.
|
|
1342
|
+
var SDK_VERSION = "0.10.2";
|
|
1342
1343
|
var DEFAULT_API_VERSION = "2026-03-23";
|
|
1343
1344
|
|
|
1344
1345
|
// src/base-client.ts
|
|
@@ -12427,7 +12428,7 @@ function createClinicalNamespace(rb) {
|
|
|
12427
12428
|
*/
|
|
12428
12429
|
list: async (params, options) => rb.execute(
|
|
12429
12430
|
getClinicalPatients,
|
|
12430
|
-
params ?? {},
|
|
12431
|
+
{ query: params ?? {} },
|
|
12431
12432
|
options
|
|
12432
12433
|
),
|
|
12433
12434
|
/**
|
|
@@ -12616,7 +12617,7 @@ function createClinicalNamespace(rb) {
|
|
|
12616
12617
|
*/
|
|
12617
12618
|
list: async (params, options) => rb.execute(
|
|
12618
12619
|
getClinicalSessions,
|
|
12619
|
-
params ?? {},
|
|
12620
|
+
{ query: params ?? {} },
|
|
12620
12621
|
options
|
|
12621
12622
|
),
|
|
12622
12623
|
/**
|
|
@@ -12711,20 +12712,32 @@ function createClinicalNamespace(rb) {
|
|
|
12711
12712
|
*
|
|
12712
12713
|
* @param sessionId - Session UUID
|
|
12713
12714
|
* @param workspaceId - Workspace UUID
|
|
12715
|
+
* @param triggerOptions - Optional pipeline targeting (pipeline_slug)
|
|
12714
12716
|
* @param options - Request options
|
|
12715
12717
|
* @returns {@link TriggerPipelineResponse} with execution_id (may be null if pipeline not configured)
|
|
12716
12718
|
*
|
|
12717
12719
|
* @example
|
|
12718
12720
|
* ```typescript
|
|
12721
|
+
* // Default pipeline (post-session-documentation)
|
|
12719
12722
|
* const { execution_id } = await client.clinical.sessions.triggerPipeline(
|
|
12720
12723
|
* 'sess_xyz',
|
|
12721
12724
|
* 'ws_123',
|
|
12722
12725
|
* );
|
|
12726
|
+
*
|
|
12727
|
+
* // Specific pipeline by slug
|
|
12728
|
+
* const { execution_id: eid } = await client.clinical.sessions.triggerPipeline(
|
|
12729
|
+
* 'sess_xyz',
|
|
12730
|
+
* 'ws_123',
|
|
12731
|
+
* { pipeline_slug: 'chartless-quick-goals-update' },
|
|
12732
|
+
* );
|
|
12723
12733
|
* ```
|
|
12724
12734
|
*/
|
|
12725
|
-
triggerPipeline: async (sessionId, workspaceId, options) => rb.rawPost(
|
|
12735
|
+
triggerPipeline: async (sessionId, workspaceId, triggerOptions, options) => rb.rawPost(
|
|
12726
12736
|
`/clinical/sessions/${sessionId}/trigger-pipeline`,
|
|
12727
|
-
{
|
|
12737
|
+
{
|
|
12738
|
+
workspace_id: workspaceId,
|
|
12739
|
+
...triggerOptions?.pipeline_slug ? { pipeline_slug: triggerOptions.pipeline_slug } : {}
|
|
12740
|
+
},
|
|
12728
12741
|
options
|
|
12729
12742
|
)
|
|
12730
12743
|
},
|
|
@@ -12743,7 +12756,11 @@ function createClinicalNamespace(rb) {
|
|
|
12743
12756
|
* @param options - Request options
|
|
12744
12757
|
* @returns Array of {@link ClinicalNote} records
|
|
12745
12758
|
*/
|
|
12746
|
-
list: async (params, options) => rb.execute(
|
|
12759
|
+
list: async (params, options) => rb.execute(
|
|
12760
|
+
getClinicalNotes,
|
|
12761
|
+
{ query: params ?? {} },
|
|
12762
|
+
options
|
|
12763
|
+
),
|
|
12747
12764
|
/**
|
|
12748
12765
|
* Get a single note by ID.
|
|
12749
12766
|
*
|
|
@@ -12852,7 +12869,7 @@ function createClinicalNamespace(rb) {
|
|
|
12852
12869
|
*/
|
|
12853
12870
|
listArchived: async (params, options) => rb.execute(
|
|
12854
12871
|
getClinicalNotesArchived,
|
|
12855
|
-
params ?? {},
|
|
12872
|
+
{ query: params ?? {} },
|
|
12856
12873
|
options
|
|
12857
12874
|
),
|
|
12858
12875
|
/**
|
|
@@ -12959,7 +12976,7 @@ function createClinicalNamespace(rb) {
|
|
|
12959
12976
|
*/
|
|
12960
12977
|
list: async (params, options) => rb.execute(
|
|
12961
12978
|
getClinicalHealthMetrics,
|
|
12962
|
-
params ?? {},
|
|
12979
|
+
{ query: params ?? {} },
|
|
12963
12980
|
options
|
|
12964
12981
|
),
|
|
12965
12982
|
/**
|
|
@@ -13089,7 +13106,7 @@ function createClinicalNamespace(rb) {
|
|
|
13089
13106
|
*/
|
|
13090
13107
|
listArchived: async (params, options) => rb.execute(
|
|
13091
13108
|
getClinicalHealthMetricsArchived,
|
|
13092
|
-
params ?? {},
|
|
13109
|
+
{ query: params ?? {} },
|
|
13093
13110
|
options
|
|
13094
13111
|
)
|
|
13095
13112
|
},
|
|
@@ -13106,7 +13123,7 @@ function createClinicalNamespace(rb) {
|
|
|
13106
13123
|
*/
|
|
13107
13124
|
list: async (params, options) => rb.execute(
|
|
13108
13125
|
getClinicalMealPlans,
|
|
13109
|
-
params ?? {},
|
|
13126
|
+
{ query: params ?? {} },
|
|
13110
13127
|
options
|
|
13111
13128
|
),
|
|
13112
13129
|
/**
|
|
@@ -13217,7 +13234,7 @@ function createClinicalNamespace(rb) {
|
|
|
13217
13234
|
*/
|
|
13218
13235
|
listArchived: async (params, options) => rb.execute(
|
|
13219
13236
|
getClinicalMealPlansArchived,
|
|
13220
|
-
params ?? {},
|
|
13237
|
+
{ query: params ?? {} },
|
|
13221
13238
|
options
|
|
13222
13239
|
)
|
|
13223
13240
|
},
|
|
@@ -13234,7 +13251,7 @@ function createClinicalNamespace(rb) {
|
|
|
13234
13251
|
*/
|
|
13235
13252
|
list: async (params, options) => rb.execute(
|
|
13236
13253
|
getClinicalClientGoals,
|
|
13237
|
-
params ?? {},
|
|
13254
|
+
{ query: params ?? {} },
|
|
13238
13255
|
options
|
|
13239
13256
|
),
|
|
13240
13257
|
/**
|
|
@@ -13351,7 +13368,7 @@ function createClinicalNamespace(rb) {
|
|
|
13351
13368
|
*/
|
|
13352
13369
|
listArchived: async (params, options) => rb.execute(
|
|
13353
13370
|
getClinicalClientGoalsArchived,
|
|
13354
|
-
params ?? {},
|
|
13371
|
+
{ query: params ?? {} },
|
|
13355
13372
|
options
|
|
13356
13373
|
),
|
|
13357
13374
|
/**
|
|
@@ -13389,7 +13406,7 @@ function createClinicalNamespace(rb) {
|
|
|
13389
13406
|
*/
|
|
13390
13407
|
list: async (params, options) => rb.execute(
|
|
13391
13408
|
getClinicalClientSupplements,
|
|
13392
|
-
params ?? {},
|
|
13409
|
+
{ query: params ?? {} },
|
|
13393
13410
|
options
|
|
13394
13411
|
),
|
|
13395
13412
|
/**
|
|
@@ -13511,7 +13528,7 @@ function createClinicalNamespace(rb) {
|
|
|
13511
13528
|
*/
|
|
13512
13529
|
listArchived: async (params, options) => rb.execute(
|
|
13513
13530
|
getClinicalClientSupplementsArchived,
|
|
13514
|
-
params ?? {},
|
|
13531
|
+
{ query: params ?? {} },
|
|
13515
13532
|
options
|
|
13516
13533
|
)
|
|
13517
13534
|
},
|
|
@@ -13528,7 +13545,7 @@ function createClinicalNamespace(rb) {
|
|
|
13528
13545
|
*/
|
|
13529
13546
|
list: async (params, options) => rb.execute(
|
|
13530
13547
|
getClinicalDeliveries,
|
|
13531
|
-
params ?? {},
|
|
13548
|
+
{ query: params ?? {} },
|
|
13532
13549
|
options
|
|
13533
13550
|
),
|
|
13534
13551
|
/**
|
|
@@ -13586,7 +13603,7 @@ function createClinicalNamespace(rb) {
|
|
|
13586
13603
|
*/
|
|
13587
13604
|
list: async (params, options) => rb.execute(
|
|
13588
13605
|
getClinicalPracticeResources,
|
|
13589
|
-
params ?? {},
|
|
13606
|
+
{ query: params ?? {} },
|
|
13590
13607
|
options
|
|
13591
13608
|
),
|
|
13592
13609
|
/**
|
|
@@ -13707,7 +13724,7 @@ function createClinicalNamespace(rb) {
|
|
|
13707
13724
|
*/
|
|
13708
13725
|
listArchived: async (params, options) => rb.execute(
|
|
13709
13726
|
getClinicalPracticeResourcesArchived,
|
|
13710
|
-
params ?? {},
|
|
13727
|
+
{ query: params ?? {} },
|
|
13711
13728
|
options
|
|
13712
13729
|
),
|
|
13713
13730
|
/**
|
|
@@ -13777,7 +13794,7 @@ function createClinicalNamespace(rb) {
|
|
|
13777
13794
|
*/
|
|
13778
13795
|
listArchivedCatalog: async (params, options) => rb.execute(
|
|
13779
13796
|
getClinicalPracticeResourcesCatalogArchived,
|
|
13780
|
-
params ?? {},
|
|
13797
|
+
{ query: params ?? {} },
|
|
13781
13798
|
options
|
|
13782
13799
|
),
|
|
13783
13800
|
/**
|
|
@@ -14032,7 +14049,7 @@ function createClinicalNamespace(rb) {
|
|
|
14032
14049
|
*/
|
|
14033
14050
|
listArchived: async (params, options) => rb.execute(
|
|
14034
14051
|
getClinicalPracticeToolsArchived,
|
|
14035
|
-
params ?? {},
|
|
14052
|
+
{ query: params ?? {} },
|
|
14036
14053
|
options
|
|
14037
14054
|
),
|
|
14038
14055
|
/**
|
|
@@ -14124,7 +14141,7 @@ function createClinicalNamespace(rb) {
|
|
|
14124
14141
|
*/
|
|
14125
14142
|
listArchivedCatalog: async (params, options) => rb.execute(
|
|
14126
14143
|
getClinicalPracticeToolsCatalogArchived,
|
|
14127
|
-
params ?? {},
|
|
14144
|
+
{ query: params ?? {} },
|
|
14128
14145
|
options
|
|
14129
14146
|
),
|
|
14130
14147
|
/**
|
|
@@ -14239,7 +14256,7 @@ function createClinicalNamespace(rb) {
|
|
|
14239
14256
|
*/
|
|
14240
14257
|
list: async (params, options) => rb.execute(
|
|
14241
14258
|
getClinicalClientResourceAssignments,
|
|
14242
|
-
params ?? {},
|
|
14259
|
+
{ query: params ?? {} },
|
|
14243
14260
|
options
|
|
14244
14261
|
),
|
|
14245
14262
|
/**
|
|
@@ -14379,7 +14396,7 @@ function createClinicalNamespace(rb) {
|
|
|
14379
14396
|
*/
|
|
14380
14397
|
listArchived: async (params, options) => rb.execute(
|
|
14381
14398
|
getClinicalClientResourceAssignmentsArchived,
|
|
14382
|
-
params ?? {},
|
|
14399
|
+
{ query: params ?? {} },
|
|
14383
14400
|
options
|
|
14384
14401
|
)
|
|
14385
14402
|
},
|
|
@@ -14400,7 +14417,7 @@ function createClinicalNamespace(rb) {
|
|
|
14400
14417
|
*/
|
|
14401
14418
|
list: async (params, options) => rb.execute(
|
|
14402
14419
|
getClinicalSupplementRecCache,
|
|
14403
|
-
params ?? {},
|
|
14420
|
+
{ query: params ?? {} },
|
|
14404
14421
|
options
|
|
14405
14422
|
),
|
|
14406
14423
|
/**
|
|
@@ -14631,7 +14648,7 @@ function createClinicalNamespace(rb) {
|
|
|
14631
14648
|
*/
|
|
14632
14649
|
listArchived: async (params, options) => rb.execute(
|
|
14633
14650
|
getClinicalGoalTemplatesArchived,
|
|
14634
|
-
params ?? {},
|
|
14651
|
+
{ query: params ?? {} },
|
|
14635
14652
|
options
|
|
14636
14653
|
),
|
|
14637
14654
|
/**
|
|
@@ -14701,7 +14718,7 @@ function createClinicalNamespace(rb) {
|
|
|
14701
14718
|
*/
|
|
14702
14719
|
listArchivedCatalog: async (params, options) => rb.execute(
|
|
14703
14720
|
getClinicalGoalTemplatesCatalogArchived,
|
|
14704
|
-
params ?? {},
|
|
14721
|
+
{ query: params ?? {} },
|
|
14705
14722
|
options
|
|
14706
14723
|
),
|
|
14707
14724
|
/**
|
|
@@ -33012,7 +33029,11 @@ function createSocialNamespace(rb) {
|
|
|
33012
33029
|
get: async (id, options) => {
|
|
33013
33030
|
return rb.execute(getSocialCampaignsById, { path: { id } }, options);
|
|
33014
33031
|
},
|
|
33015
|
-
/**
|
|
33032
|
+
/**
|
|
33033
|
+
* Create a new social campaign.
|
|
33034
|
+
* Workspace is resolved from the authenticated user's context — do NOT
|
|
33035
|
+
* pass `workspace_id` in attributes.
|
|
33036
|
+
*/
|
|
33016
33037
|
create: async (attributes, options) => {
|
|
33017
33038
|
return rb.execute(
|
|
33018
33039
|
postSocialCampaigns,
|
|
@@ -33079,11 +33100,8 @@ function createSocialNamespace(rb) {
|
|
|
33079
33100
|
path: { id },
|
|
33080
33101
|
body: {
|
|
33081
33102
|
data: {
|
|
33082
|
-
|
|
33083
|
-
|
|
33084
|
-
campaign_id: id,
|
|
33085
|
-
workspace_id: workspaceId
|
|
33086
|
-
}
|
|
33103
|
+
campaign_id: id,
|
|
33104
|
+
workspace_id: workspaceId
|
|
33087
33105
|
}
|
|
33088
33106
|
}
|
|
33089
33107
|
},
|
|
@@ -33098,12 +33116,9 @@ function createSocialNamespace(rb) {
|
|
|
33098
33116
|
path: { id },
|
|
33099
33117
|
body: {
|
|
33100
33118
|
data: {
|
|
33101
|
-
|
|
33102
|
-
|
|
33103
|
-
|
|
33104
|
-
workspace_id: workspaceId,
|
|
33105
|
-
social_account_id: socialAccountId
|
|
33106
|
-
}
|
|
33119
|
+
campaign_id: id,
|
|
33120
|
+
workspace_id: workspaceId,
|
|
33121
|
+
social_account_id: socialAccountId
|
|
33107
33122
|
}
|
|
33108
33123
|
}
|
|
33109
33124
|
},
|
|
@@ -34685,6 +34700,7 @@ var Webhooks = class _Webhooks {
|
|
|
34685
34700
|
collectStreamedMessage,
|
|
34686
34701
|
createChannelsNamespace,
|
|
34687
34702
|
createImportsNamespace,
|
|
34703
|
+
createProjectsNamespace,
|
|
34688
34704
|
handleApiError,
|
|
34689
34705
|
isBrowserEnvironment,
|
|
34690
34706
|
isSecureUrl,
|