@scalemule/sdk 0.0.82 → 0.0.83
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 +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +7 -0
- package/dist/index.mjs +7 -0
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -4502,6 +4502,11 @@ declare class DecisionsService extends ServiceModule {
|
|
|
4502
4502
|
* GET /runs/{id} → read a run
|
|
4503
4503
|
* GET /runs/{id}/events → lifecycle events (SSE)
|
|
4504
4504
|
* POST /runs/{id}/cancel → cancel
|
|
4505
|
+
* GET /operations → catalog with options
|
|
4506
|
+
* PUT /operations/{op}/preference → own preference
|
|
4507
|
+
* DELETE /operations/{op}/preference → clear own preference
|
|
4508
|
+
* GET /operations/{op}/settings → account settings (admins)
|
|
4509
|
+
* PUT /operations/{op}/settings → change account settings (admins)
|
|
4505
4510
|
*
|
|
4506
4511
|
* Account scope: the active workspace (`sm.setWorkspaceContext`) is sent as
|
|
4507
4512
|
* `x-requested-account-id`; the gateway verifies membership. A publishable
|
|
@@ -4518,6 +4523,11 @@ declare class AiService {
|
|
|
4518
4523
|
constructor(client: ScaleMuleClient, options?: AiServiceOptions);
|
|
4519
4524
|
/** Low-level run API: `create`, `get`, `wait`, `cancel`, `events`. */
|
|
4520
4525
|
get runs(): ScaleMuleAi['runs'];
|
|
4526
|
+
/**
|
|
4527
|
+
* Operation selection: `list`, `setPreference`, `clearPreference`,
|
|
4528
|
+
* `getSettings`, `updateSettings`. Option keys only; never agent or model ids.
|
|
4529
|
+
*/
|
|
4530
|
+
get operations(): ScaleMuleAi['operations'];
|
|
4521
4531
|
/** Summarize text and wait for the typed result. */
|
|
4522
4532
|
summarize(input: SummarizeInput, options?: SummarizeOptions): Promise<AiResult<SummarizeResult>>;
|
|
4523
4533
|
/** Read one run (alias of `runs.get`). */
|
package/dist/index.d.ts
CHANGED
|
@@ -4502,6 +4502,11 @@ declare class DecisionsService extends ServiceModule {
|
|
|
4502
4502
|
* GET /runs/{id} → read a run
|
|
4503
4503
|
* GET /runs/{id}/events → lifecycle events (SSE)
|
|
4504
4504
|
* POST /runs/{id}/cancel → cancel
|
|
4505
|
+
* GET /operations → catalog with options
|
|
4506
|
+
* PUT /operations/{op}/preference → own preference
|
|
4507
|
+
* DELETE /operations/{op}/preference → clear own preference
|
|
4508
|
+
* GET /operations/{op}/settings → account settings (admins)
|
|
4509
|
+
* PUT /operations/{op}/settings → change account settings (admins)
|
|
4505
4510
|
*
|
|
4506
4511
|
* Account scope: the active workspace (`sm.setWorkspaceContext`) is sent as
|
|
4507
4512
|
* `x-requested-account-id`; the gateway verifies membership. A publishable
|
|
@@ -4518,6 +4523,11 @@ declare class AiService {
|
|
|
4518
4523
|
constructor(client: ScaleMuleClient, options?: AiServiceOptions);
|
|
4519
4524
|
/** Low-level run API: `create`, `get`, `wait`, `cancel`, `events`. */
|
|
4520
4525
|
get runs(): ScaleMuleAi['runs'];
|
|
4526
|
+
/**
|
|
4527
|
+
* Operation selection: `list`, `setPreference`, `clearPreference`,
|
|
4528
|
+
* `getSettings`, `updateSettings`. Option keys only; never agent or model ids.
|
|
4529
|
+
*/
|
|
4530
|
+
get operations(): ScaleMuleAi['operations'];
|
|
4521
4531
|
/** Summarize text and wait for the typed result. */
|
|
4522
4532
|
summarize(input: SummarizeInput, options?: SummarizeOptions): Promise<AiResult<SummarizeResult>>;
|
|
4523
4533
|
/** Read one run (alias of `runs.get`). */
|
package/dist/index.js
CHANGED
|
@@ -6654,6 +6654,13 @@ var AiService = class {
|
|
|
6654
6654
|
get runs() {
|
|
6655
6655
|
return this.ai.runs;
|
|
6656
6656
|
}
|
|
6657
|
+
/**
|
|
6658
|
+
* Operation selection: `list`, `setPreference`, `clearPreference`,
|
|
6659
|
+
* `getSettings`, `updateSettings`. Option keys only; never agent or model ids.
|
|
6660
|
+
*/
|
|
6661
|
+
get operations() {
|
|
6662
|
+
return this.ai.operations;
|
|
6663
|
+
}
|
|
6657
6664
|
/** Summarize text and wait for the typed result. */
|
|
6658
6665
|
summarize(input, options) {
|
|
6659
6666
|
return this.ai.summarize(input, options);
|
package/dist/index.mjs
CHANGED
|
@@ -6515,6 +6515,13 @@ var AiService = class {
|
|
|
6515
6515
|
get runs() {
|
|
6516
6516
|
return this.ai.runs;
|
|
6517
6517
|
}
|
|
6518
|
+
/**
|
|
6519
|
+
* Operation selection: `list`, `setPreference`, `clearPreference`,
|
|
6520
|
+
* `getSettings`, `updateSettings`. Option keys only; never agent or model ids.
|
|
6521
|
+
*/
|
|
6522
|
+
get operations() {
|
|
6523
|
+
return this.ai.operations;
|
|
6524
|
+
}
|
|
6518
6525
|
/** Summarize text and wait for the typed result. */
|
|
6519
6526
|
summarize(input, options) {
|
|
6520
6527
|
return this.ai.summarize(input, options);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scalemule/sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.83",
|
|
4
4
|
"description": "Official TypeScript/JavaScript SDK for ScaleMule Backend-as-a-Service",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"node": ">=18.0.0"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@scalemule/ai": "^0.0.
|
|
65
|
+
"@scalemule/ai": "^0.0.2",
|
|
66
66
|
"@scalemule/ui": ">=0.0.1",
|
|
67
67
|
"browser-image-compression": "^2.0.2",
|
|
68
68
|
"semver": "^7.7.4"
|