@gravity-rail/sdk 0.40.0 → 0.42.0
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/README.md +2 -2
- package/dist/{chat-interaction-BB3ap8_u.d.ts → chat-interaction-BBBeSKGl.d.cts} +255 -37
- package/dist/{chat-interaction-Bj1pciwo.d.cts → chat-interaction-C9dD0qbD.d.ts} +255 -37
- package/dist/{chunk-ZTUOB4V2.js → chunk-JTOMGNUO.js} +23 -43
- package/dist/chunk-JTOMGNUO.js.map +1 -0
- package/dist/helpers.d.cts +4 -4
- package/dist/helpers.d.ts +4 -4
- package/dist/index.cjs +22 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +12 -5
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +24 -37
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +7 -21
- package/dist/internal.d.ts +7 -21
- package/dist/internal.js +3 -8
- package/dist/internal.js.map +1 -1
- package/dist/{member-import-D8fZr2Pd.d.cts → member-import-BXReoljG.d.cts} +1 -1
- package/dist/{member-import-YNk9MlEl.d.ts → member-import-jjfQHlWl.d.ts} +1 -1
- package/dist/{revision-state-CL11FA-T.d.cts → revision-state-Bp7WKk6z.d.cts} +2 -2
- package/dist/{revision-state-BaJTq3Or.d.ts → revision-state-QkNQXWJC.d.ts} +2 -2
- package/dist/schemas.d.cts +2 -2
- package/dist/schemas.d.ts +2 -2
- package/dist/{tasks-ByJCQ5BI.d.cts → tasks-BsLI-h11.d.cts} +265 -1
- package/dist/{tasks-ByJCQ5BI.d.ts → tasks-BsLI-h11.d.ts} +265 -1
- package/package.json +1 -1
- package/dist/chunk-ZTUOB4V2.js.map +0 -1
package/dist/internal.cjs
CHANGED
|
@@ -242,7 +242,6 @@ __export(internal_exports, {
|
|
|
242
242
|
SitesApi: () => SitesApi,
|
|
243
243
|
SlackAppsApi: () => SlackAppsApi,
|
|
244
244
|
SnippetsApi: () => SnippetsApi,
|
|
245
|
-
SolutionReleaseResponseSlug: () => SolutionReleaseResponseSlug,
|
|
246
245
|
SubscriptionsApi: () => SubscriptionsApi,
|
|
247
246
|
SupervisorsApi: () => SupervisorsApi,
|
|
248
247
|
SupportRequestsApi: () => SupportRequestsApi,
|
|
@@ -1580,13 +1579,10 @@ var CustomerActivityClassifierLabel = {
|
|
|
1580
1579
|
transcription_quality: "transcription_quality",
|
|
1581
1580
|
repetitive_loop: "repetitive_loop",
|
|
1582
1581
|
manager_no_response: "manager_no_response",
|
|
1582
|
+
manager_incomplete_task: "manager_incomplete_task",
|
|
1583
1583
|
docs_or_skill_gap: "docs_or_skill_gap",
|
|
1584
1584
|
discovery_thrash: "discovery_thrash",
|
|
1585
|
-
|
|
1586
|
-
manager_language_mismatch: "manager_language_mismatch",
|
|
1587
|
-
sandbox_failure: "sandbox_failure",
|
|
1588
|
-
cli_contract_error: "cli_contract_error",
|
|
1589
|
-
unverified_completion: "unverified_completion"
|
|
1585
|
+
manager_language_mismatch: "manager_language_mismatch"
|
|
1590
1586
|
};
|
|
1591
1587
|
var CustomerActivityEventSource = {
|
|
1592
1588
|
system: "system",
|
|
@@ -3542,11 +3538,15 @@ function pageQuery(params) {
|
|
|
3542
3538
|
return qs ? `?${qs}` : "";
|
|
3543
3539
|
}
|
|
3544
3540
|
var BundlesApi = class extends BaseApiClient {
|
|
3545
|
-
/**
|
|
3546
|
-
async
|
|
3547
|
-
return this.fetch(`
|
|
3541
|
+
/** Bundles shared with everyone. Needs no session. */
|
|
3542
|
+
async listPublicBundles(params) {
|
|
3543
|
+
return this.fetch(`bundles/public${pageQuery(params)}`);
|
|
3544
|
+
}
|
|
3545
|
+
/** The outline of one Bundle shared with everyone. Needs no session; 404 otherwise. */
|
|
3546
|
+
async getPublicBundle(bundleUuid) {
|
|
3547
|
+
return this.fetch(`bundles/${encodeURIComponent(bundleUuid)}/public`);
|
|
3548
3548
|
}
|
|
3549
|
-
/** Read an authorized Bundle by UUID
|
|
3549
|
+
/** Read an authorized Bundle by UUID. */
|
|
3550
3550
|
async getBundle(wid, bundleUuid) {
|
|
3551
3551
|
return this.fetch(bundlesPath(wid, bundleUuid));
|
|
3552
3552
|
}
|
|
@@ -3631,9 +3631,9 @@ var BundlesApi = class extends BaseApiClient {
|
|
|
3631
3631
|
return this.fetch(bundlesPath(wid, bundleUuid, "grants"));
|
|
3632
3632
|
}
|
|
3633
3633
|
/**
|
|
3634
|
-
* Share throughout the publisher's organization with organization-admin authority
|
|
3635
|
-
*
|
|
3636
|
-
*
|
|
3634
|
+
* Share throughout the publisher's organization with organization-admin authority,
|
|
3635
|
+
* or with everyone (`granteeType: "global"`) as a superuser. Workspace-specific
|
|
3636
|
+
* grants are refused.
|
|
3637
3637
|
*/
|
|
3638
3638
|
async grantBundle(wid, bundleUuid, data) {
|
|
3639
3639
|
return this.fetch(bundlesPath(wid, bundleUuid, "grants"), {
|
|
@@ -12844,15 +12844,11 @@ var WorkflowsApi = class extends BaseApiClient {
|
|
|
12844
12844
|
return this.fetch(`w/${wid}/workflows/${id}/diagram${query}`);
|
|
12845
12845
|
}
|
|
12846
12846
|
/**
|
|
12847
|
-
*
|
|
12848
|
-
*
|
|
12849
|
-
* For same-origin setups, returns the direct API URL.
|
|
12847
|
+
* The outline a Workflow's diagram is drawn from: its active Tasks, its
|
|
12848
|
+
* start Task, the moves between Tasks and its Ability types.
|
|
12850
12849
|
*/
|
|
12851
|
-
|
|
12852
|
-
|
|
12853
|
-
return `/api/v2/w/${wid}/workflows/${id}/thumbnail`;
|
|
12854
|
-
}
|
|
12855
|
-
return `${this.baseUrl}/api/v2/w/${wid}/workflows/${id}/thumbnail`;
|
|
12850
|
+
async getWorkflowOutline(wid, id) {
|
|
12851
|
+
return this.fetch(`w/${wid}/workflows/${id}/outline`);
|
|
12856
12852
|
}
|
|
12857
12853
|
/** Create a new workflow in a workspace. */
|
|
12858
12854
|
async createWorkflow(wid, workflow) {
|
|
@@ -14547,11 +14543,11 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
14547
14543
|
"getWorkflowDeletionPreview",
|
|
14548
14544
|
"getWorkflowDiagram",
|
|
14549
14545
|
"getWorkflowNotes",
|
|
14546
|
+
"getWorkflowOutline",
|
|
14550
14547
|
"getWorkflowRevision",
|
|
14551
14548
|
"getWorkflowRevisions",
|
|
14552
14549
|
"getWorkflowTaskAssignmentStats",
|
|
14553
14550
|
"getWorkflowTemplates",
|
|
14554
|
-
"getWorkflowThumbnailUrl",
|
|
14555
14551
|
"getWorkflows",
|
|
14556
14552
|
"getWorkflowsActivityBatch",
|
|
14557
14553
|
"getWorkspace",
|
|
@@ -15453,7 +15449,7 @@ function bindWorkflowsMethods(target, workflows, workflowNotes, voice, superviso
|
|
|
15453
15449
|
target.getWorkflowActivity = workflows.getWorkflowActivity.bind(workflows);
|
|
15454
15450
|
target.getWorkflowsActivityBatch = workflows.getWorkflowsActivityBatch.bind(workflows);
|
|
15455
15451
|
target.getWorkflowDiagram = workflows.getWorkflowDiagram.bind(workflows);
|
|
15456
|
-
target.
|
|
15452
|
+
target.getWorkflowOutline = workflows.getWorkflowOutline.bind(workflows);
|
|
15457
15453
|
target.createWorkflow = workflows.createWorkflow.bind(workflows);
|
|
15458
15454
|
target.updateWorkflow = workflows.updateWorkflow.bind(workflows);
|
|
15459
15455
|
target.getWorkflowDeletionPreview = workflows.getWorkflowDeletionPreview.bind(workflows);
|
|
@@ -15946,7 +15942,8 @@ function bindResourceWorkflowsMethods(target, resourceWorkflows) {
|
|
|
15946
15942
|
// src/client/bindings/bundles.ts
|
|
15947
15943
|
function bindBundlesMethods(target, bundles, resourceWorkflows) {
|
|
15948
15944
|
bindResourceWorkflowsMethods(target, resourceWorkflows);
|
|
15949
|
-
target.
|
|
15945
|
+
target.listPublicBundles = bundles.listPublicBundles.bind(bundles);
|
|
15946
|
+
target.getPublicBundle = bundles.getPublicBundle.bind(bundles);
|
|
15950
15947
|
target.updateBundle = bundles.updateBundle.bind(bundles);
|
|
15951
15948
|
target.listBundleInstallations = bundles.listBundleInstallations.bind(bundles);
|
|
15952
15949
|
target.listBundles = bundles.listBundles.bind(bundles);
|
|
@@ -16478,7 +16475,8 @@ var GravityRailClient = class {
|
|
|
16478
16475
|
updateBundle;
|
|
16479
16476
|
listBundleInstallations;
|
|
16480
16477
|
// Bundles API
|
|
16481
|
-
|
|
16478
|
+
listPublicBundles;
|
|
16479
|
+
getPublicBundle;
|
|
16482
16480
|
listBundles;
|
|
16483
16481
|
listBundleWorkflowCandidates;
|
|
16484
16482
|
createBundle;
|
|
@@ -16844,7 +16842,7 @@ var GravityRailClient = class {
|
|
|
16844
16842
|
getWorkflowActivity;
|
|
16845
16843
|
getWorkflowsActivityBatch;
|
|
16846
16844
|
getWorkflowDiagram;
|
|
16847
|
-
|
|
16845
|
+
getWorkflowOutline;
|
|
16848
16846
|
createWorkflow;
|
|
16849
16847
|
updateWorkflow;
|
|
16850
16848
|
getWorkflowDeletionPreview;
|
|
@@ -17511,16 +17509,6 @@ var ChatInteractionController = class {
|
|
|
17511
17509
|
this.pending = void 0;
|
|
17512
17510
|
}
|
|
17513
17511
|
};
|
|
17514
|
-
|
|
17515
|
-
// src/types/generated/bundle_contract.ts
|
|
17516
|
-
var SolutionReleaseResponseSlug = {
|
|
17517
|
-
"member-enrollment": "member-enrollment",
|
|
17518
|
-
"member-reengagement": "member-reengagement",
|
|
17519
|
-
"treatment-adherence": "treatment-adherence",
|
|
17520
|
-
"heart-health": "heart-health",
|
|
17521
|
-
"recovery-checkins": "recovery-checkins",
|
|
17522
|
-
"care-coordination": "care-coordination"
|
|
17523
|
-
};
|
|
17524
17512
|
// Annotate the CommonJS export names for ESM import in node:
|
|
17525
17513
|
0 && (module.exports = {
|
|
17526
17514
|
AGENT_NOTE_ORIGINS,
|
|
@@ -17745,7 +17733,6 @@ var SolutionReleaseResponseSlug = {
|
|
|
17745
17733
|
SitesApi,
|
|
17746
17734
|
SlackAppsApi,
|
|
17747
17735
|
SnippetsApi,
|
|
17748
|
-
SolutionReleaseResponseSlug,
|
|
17749
17736
|
SubscriptionsApi,
|
|
17750
17737
|
SupervisorsApi,
|
|
17751
17738
|
SupportRequestsApi,
|