@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/helpers.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import { c7 as WorkspaceMemberResponse, aT as DataRecordResponse } from './tasks-
|
|
4
|
-
export { t as toSafeMemberImportPreview, a as toSafeMemberImportSummary } from './member-import-
|
|
1
|
+
import { fW as GravityRailClient } from './chat-interaction-BBBeSKGl.cjs';
|
|
2
|
+
export { c5 as ChatInteractionController } from './chat-interaction-BBBeSKGl.cjs';
|
|
3
|
+
import { c7 as WorkspaceMemberResponse, aT as DataRecordResponse } from './tasks-BsLI-h11.cjs';
|
|
4
|
+
export { t as toSafeMemberImportPreview, a as toSafeMemberImportSummary } from './member-import-BXReoljG.cjs';
|
|
5
5
|
import 'zod';
|
|
6
6
|
|
|
7
7
|
interface OutboundPhoneNumberOption {
|
package/dist/helpers.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import { c7 as WorkspaceMemberResponse, aT as DataRecordResponse } from './tasks-
|
|
4
|
-
export { t as toSafeMemberImportPreview, a as toSafeMemberImportSummary } from './member-import-
|
|
1
|
+
import { fW as GravityRailClient } from './chat-interaction-C9dD0qbD.js';
|
|
2
|
+
export { c5 as ChatInteractionController } from './chat-interaction-C9dD0qbD.js';
|
|
3
|
+
import { c7 as WorkspaceMemberResponse, aT as DataRecordResponse } from './tasks-BsLI-h11.js';
|
|
4
|
+
export { t as toSafeMemberImportPreview, a as toSafeMemberImportSummary } from './member-import-jjfQHlWl.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
|
|
7
7
|
interface OutboundPhoneNumberOption {
|
package/dist/index.cjs
CHANGED
|
@@ -193,7 +193,6 @@ __export(src_exports, {
|
|
|
193
193
|
SendingStopState: () => SendingStopState,
|
|
194
194
|
SetInstallationPolicyRequestUpgradePolicy: () => SetInstallationPolicyRequestUpgradePolicy,
|
|
195
195
|
SiteDnsRecordType: () => SiteDnsRecordType,
|
|
196
|
-
SolutionReleaseResponseSlug: () => SolutionReleaseResponseSlug,
|
|
197
196
|
SupervisorsApi: () => SupervisorsApi,
|
|
198
197
|
TTS_MODEL_AWS_POLLY_GENERATIVE: () => TTS_MODEL_AWS_POLLY_GENERATIVE,
|
|
199
198
|
TTS_MODEL_AWS_POLLY_NEURAL: () => TTS_MODEL_AWS_POLLY_NEURAL,
|
|
@@ -843,11 +842,15 @@ function pageQuery(params) {
|
|
|
843
842
|
return qs ? `?${qs}` : "";
|
|
844
843
|
}
|
|
845
844
|
var BundlesApi = class extends BaseApiClient {
|
|
846
|
-
/**
|
|
847
|
-
async
|
|
848
|
-
return this.fetch(`
|
|
845
|
+
/** Bundles shared with everyone. Needs no session. */
|
|
846
|
+
async listPublicBundles(params) {
|
|
847
|
+
return this.fetch(`bundles/public${pageQuery(params)}`);
|
|
849
848
|
}
|
|
850
|
-
/**
|
|
849
|
+
/** The outline of one Bundle shared with everyone. Needs no session; 404 otherwise. */
|
|
850
|
+
async getPublicBundle(bundleUuid) {
|
|
851
|
+
return this.fetch(`bundles/${encodeURIComponent(bundleUuid)}/public`);
|
|
852
|
+
}
|
|
853
|
+
/** Read an authorized Bundle by UUID. */
|
|
851
854
|
async getBundle(wid, bundleUuid) {
|
|
852
855
|
return this.fetch(bundlesPath(wid, bundleUuid));
|
|
853
856
|
}
|
|
@@ -932,9 +935,9 @@ var BundlesApi = class extends BaseApiClient {
|
|
|
932
935
|
return this.fetch(bundlesPath(wid, bundleUuid, "grants"));
|
|
933
936
|
}
|
|
934
937
|
/**
|
|
935
|
-
* Share throughout the publisher's organization with organization-admin authority
|
|
936
|
-
*
|
|
937
|
-
*
|
|
938
|
+
* Share throughout the publisher's organization with organization-admin authority,
|
|
939
|
+
* or with everyone (`granteeType: "global"`) as a superuser. Workspace-specific
|
|
940
|
+
* grants are refused.
|
|
938
941
|
*/
|
|
939
942
|
async grantBundle(wid, bundleUuid, data) {
|
|
940
943
|
return this.fetch(bundlesPath(wid, bundleUuid, "grants"), {
|
|
@@ -10152,15 +10155,11 @@ var WorkflowsApi = class extends BaseApiClient {
|
|
|
10152
10155
|
return this.fetch(`w/${wid}/workflows/${id}/diagram${query}`);
|
|
10153
10156
|
}
|
|
10154
10157
|
/**
|
|
10155
|
-
*
|
|
10156
|
-
*
|
|
10157
|
-
* For same-origin setups, returns the direct API URL.
|
|
10158
|
+
* The outline a Workflow's diagram is drawn from: its active Tasks, its
|
|
10159
|
+
* start Task, the moves between Tasks and its Ability types.
|
|
10158
10160
|
*/
|
|
10159
|
-
|
|
10160
|
-
|
|
10161
|
-
return `/api/v2/w/${wid}/workflows/${id}/thumbnail`;
|
|
10162
|
-
}
|
|
10163
|
-
return `${this.baseUrl}/api/v2/w/${wid}/workflows/${id}/thumbnail`;
|
|
10161
|
+
async getWorkflowOutline(wid, id) {
|
|
10162
|
+
return this.fetch(`w/${wid}/workflows/${id}/outline`);
|
|
10164
10163
|
}
|
|
10165
10164
|
/** Create a new workflow in a workspace. */
|
|
10166
10165
|
async createWorkflow(wid, workflow) {
|
|
@@ -12183,14 +12182,6 @@ var FormBundleItemRecordScope = {
|
|
|
12183
12182
|
workspace: "workspace",
|
|
12184
12183
|
anonymous: "anonymous"
|
|
12185
12184
|
};
|
|
12186
|
-
var SolutionReleaseResponseSlug = {
|
|
12187
|
-
"member-enrollment": "member-enrollment",
|
|
12188
|
-
"member-reengagement": "member-reengagement",
|
|
12189
|
-
"treatment-adherence": "treatment-adherence",
|
|
12190
|
-
"heart-health": "heart-health",
|
|
12191
|
-
"recovery-checkins": "recovery-checkins",
|
|
12192
|
-
"care-coordination": "care-coordination"
|
|
12193
|
-
};
|
|
12194
12185
|
|
|
12195
12186
|
// src/types/generated/installation_contract.ts
|
|
12196
12187
|
var InstallationItemChangeChange = {
|
|
@@ -12976,11 +12967,11 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
12976
12967
|
"getWorkflowDeletionPreview",
|
|
12977
12968
|
"getWorkflowDiagram",
|
|
12978
12969
|
"getWorkflowNotes",
|
|
12970
|
+
"getWorkflowOutline",
|
|
12979
12971
|
"getWorkflowRevision",
|
|
12980
12972
|
"getWorkflowRevisions",
|
|
12981
12973
|
"getWorkflowTaskAssignmentStats",
|
|
12982
12974
|
"getWorkflowTemplates",
|
|
12983
|
-
"getWorkflowThumbnailUrl",
|
|
12984
12975
|
"getWorkflows",
|
|
12985
12976
|
"getWorkflowsActivityBatch",
|
|
12986
12977
|
"getWorkspace",
|
|
@@ -13882,7 +13873,7 @@ function bindWorkflowsMethods(target, workflows, workflowNotes, voice, superviso
|
|
|
13882
13873
|
target.getWorkflowActivity = workflows.getWorkflowActivity.bind(workflows);
|
|
13883
13874
|
target.getWorkflowsActivityBatch = workflows.getWorkflowsActivityBatch.bind(workflows);
|
|
13884
13875
|
target.getWorkflowDiagram = workflows.getWorkflowDiagram.bind(workflows);
|
|
13885
|
-
target.
|
|
13876
|
+
target.getWorkflowOutline = workflows.getWorkflowOutline.bind(workflows);
|
|
13886
13877
|
target.createWorkflow = workflows.createWorkflow.bind(workflows);
|
|
13887
13878
|
target.updateWorkflow = workflows.updateWorkflow.bind(workflows);
|
|
13888
13879
|
target.getWorkflowDeletionPreview = workflows.getWorkflowDeletionPreview.bind(workflows);
|
|
@@ -14375,7 +14366,8 @@ function bindResourceWorkflowsMethods(target, resourceWorkflows) {
|
|
|
14375
14366
|
// src/client/bindings/bundles.ts
|
|
14376
14367
|
function bindBundlesMethods(target, bundles, resourceWorkflows) {
|
|
14377
14368
|
bindResourceWorkflowsMethods(target, resourceWorkflows);
|
|
14378
|
-
target.
|
|
14369
|
+
target.listPublicBundles = bundles.listPublicBundles.bind(bundles);
|
|
14370
|
+
target.getPublicBundle = bundles.getPublicBundle.bind(bundles);
|
|
14379
14371
|
target.updateBundle = bundles.updateBundle.bind(bundles);
|
|
14380
14372
|
target.listBundleInstallations = bundles.listBundleInstallations.bind(bundles);
|
|
14381
14373
|
target.listBundles = bundles.listBundles.bind(bundles);
|
|
@@ -14907,7 +14899,8 @@ var GravityRailClient = class {
|
|
|
14907
14899
|
updateBundle;
|
|
14908
14900
|
listBundleInstallations;
|
|
14909
14901
|
// Bundles API
|
|
14910
|
-
|
|
14902
|
+
listPublicBundles;
|
|
14903
|
+
getPublicBundle;
|
|
14911
14904
|
listBundles;
|
|
14912
14905
|
listBundleWorkflowCandidates;
|
|
14913
14906
|
createBundle;
|
|
@@ -15273,7 +15266,7 @@ var GravityRailClient = class {
|
|
|
15273
15266
|
getWorkflowActivity;
|
|
15274
15267
|
getWorkflowsActivityBatch;
|
|
15275
15268
|
getWorkflowDiagram;
|
|
15276
|
-
|
|
15269
|
+
getWorkflowOutline;
|
|
15277
15270
|
createWorkflow;
|
|
15278
15271
|
updateWorkflow;
|
|
15279
15272
|
getWorkflowDeletionPreview;
|
|
@@ -20087,7 +20080,6 @@ function toSafeMemberImportSummary(event) {
|
|
|
20087
20080
|
SendingStopState,
|
|
20088
20081
|
SetInstallationPolicyRequestUpgradePolicy,
|
|
20089
20082
|
SiteDnsRecordType,
|
|
20090
|
-
SolutionReleaseResponseSlug,
|
|
20091
20083
|
SupervisorsApi,
|
|
20092
20084
|
TTS_MODEL_AWS_POLLY_GENERATIVE,
|
|
20093
20085
|
TTS_MODEL_AWS_POLLY_NEURAL,
|