@gravity-rail/sdk 0.57.0 → 0.57.1
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/agui.d.cts +3 -2
- package/dist/agui.d.ts +3 -2
- package/dist/audio.d.cts +3 -2
- package/dist/audio.d.ts +3 -2
- package/dist/{chat-interaction-Bs0O3lwb.d.cts → chat-interaction-BlORjFix.d.cts} +56 -28
- package/dist/{chat-interaction-dRnhgwb-.d.ts → chat-interaction-DyQjxoyc.d.ts} +56 -28
- package/dist/{chunk-7ABBH5CC.js → chunk-YDC4OVZE.js} +16 -1
- package/dist/chunk-YDC4OVZE.js.map +1 -0
- package/dist/helpers.d.cts +6 -5
- package/dist/helpers.d.ts +6 -5
- package/dist/index.cjs +15 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -7
- package/dist/index.d.ts +9 -7
- package/dist/index.js +1 -1
- package/dist/internal.cjs +15 -0
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +7 -6
- package/dist/internal.d.ts +7 -6
- package/dist/internal.js +1 -1
- package/dist/{member-import-C9XwZqm4.d.cts → member-import-B8nsRMD9.d.cts} +1 -1
- package/dist/{member-import-CdXiqRFM.d.ts → member-import-l7j087-X.d.ts} +1 -1
- package/dist/{path-B08DHrW4.d.ts → path-BKKAG8ti.d.cts} +4 -3
- package/dist/{path-6wcAgEJR.d.cts → path-CdqBYuYi.d.ts} +4 -3
- package/dist/realtime.d.cts +4 -3
- package/dist/realtime.d.ts +4 -3
- package/dist/schemas.d.cts +67 -65
- package/dist/schemas.d.ts +67 -65
- package/dist/{tasks-BPvueNi2.d.cts → tasks-By6Bzhwy.d.cts} +17 -14
- package/dist/{tasks-BPvueNi2.d.ts → tasks-By6Bzhwy.d.ts} +17 -14
- package/dist/{types-DlfADjPR.d.cts → types-BXaWYGHj.d.cts} +2 -1
- package/dist/{types-DlfADjPR.d.ts → types-BXaWYGHj.d.ts} +2 -1
- package/package.json +3 -3
- package/dist/chunk-7ABBH5CC.js.map +0 -1
package/dist/helpers.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import {
|
|
4
|
-
export { t as toSafeMemberImportPreview, a as toSafeMemberImportSummary } from './member-import-
|
|
1
|
+
import { GravityRailClient } from './index.cjs';
|
|
2
|
+
export { C as ChatInteractionController } from './chat-interaction-BlORjFix.cjs';
|
|
3
|
+
import { WorkspaceMemberResponse, DataRecordResponse } from './index.cjs';
|
|
4
|
+
export { t as toSafeMemberImportPreview, a as toSafeMemberImportSummary } from './member-import-B8nsRMD9.cjs';
|
|
5
5
|
import 'zod';
|
|
6
6
|
|
|
7
7
|
interface OutboundPhoneNumberOption {
|
|
@@ -120,4 +120,5 @@ declare function isZipBuffer(bytes: Uint8Array): boolean;
|
|
|
120
120
|
declare function extractZipMember(bytes: Uint8Array, memberName: string): Promise<Uint8Array>;
|
|
121
121
|
declare function extractWorkspaceExportJson(bytes: Uint8Array): Promise<string>;
|
|
122
122
|
|
|
123
|
-
export {
|
|
123
|
+
export { MAX_EXPORT_JSON_BYTES, WEBHOOK_SIGNATURE_HEADER, WORKSPACE_EXPORT_JSON_MEMBER, enrollMemberInJourney, extractWorkspaceExportJson, extractZipMember, findMemberByPhone, findOrCreateMemberLabels, isZipBuffer, listOutboundPhoneNumbers, normalizePhoneLast10, resolveMemberId, resolveOutboundPhoneNumberId, resolveOutboundWorkflowId, signWebhookPayload, upsertDataRecordForMember, verifyWebhookSignature };
|
|
124
|
+
export type { EnrollMemberInJourneyOptions, EnrollMemberInJourneyResult, MemberRef, OutboundPhoneNumberConfigDefaults, OutboundPhoneNumberOption, VerifyWebhookOptions, VerifyWebhookResult, WorkspacePhoneNumbersPayload };
|
package/dist/helpers.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import {
|
|
4
|
-
export { t as toSafeMemberImportPreview, a as toSafeMemberImportSummary } from './member-import-
|
|
1
|
+
import { GravityRailClient } from './index.js';
|
|
2
|
+
export { C as ChatInteractionController } from './chat-interaction-DyQjxoyc.js';
|
|
3
|
+
import { WorkspaceMemberResponse, DataRecordResponse } from './index.js';
|
|
4
|
+
export { t as toSafeMemberImportPreview, a as toSafeMemberImportSummary } from './member-import-l7j087-X.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
|
|
7
7
|
interface OutboundPhoneNumberOption {
|
|
@@ -120,4 +120,5 @@ declare function isZipBuffer(bytes: Uint8Array): boolean;
|
|
|
120
120
|
declare function extractZipMember(bytes: Uint8Array, memberName: string): Promise<Uint8Array>;
|
|
121
121
|
declare function extractWorkspaceExportJson(bytes: Uint8Array): Promise<string>;
|
|
122
122
|
|
|
123
|
-
export {
|
|
123
|
+
export { MAX_EXPORT_JSON_BYTES, WEBHOOK_SIGNATURE_HEADER, WORKSPACE_EXPORT_JSON_MEMBER, enrollMemberInJourney, extractWorkspaceExportJson, extractZipMember, findMemberByPhone, findOrCreateMemberLabels, isZipBuffer, listOutboundPhoneNumbers, normalizePhoneLast10, resolveMemberId, resolveOutboundPhoneNumberId, resolveOutboundWorkflowId, signWebhookPayload, upsertDataRecordForMember, verifyWebhookSignature };
|
|
124
|
+
export type { EnrollMemberInJourneyOptions, EnrollMemberInJourneyResult, MemberRef, OutboundPhoneNumberConfigDefaults, OutboundPhoneNumberOption, VerifyWebhookOptions, VerifyWebhookResult, WorkspacePhoneNumbersPayload };
|
package/dist/index.cjs
CHANGED
|
@@ -3625,6 +3625,11 @@ var DiscordBotsApi = class extends BaseApiClient {
|
|
|
3625
3625
|
|
|
3626
3626
|
// src/api/slack-apps.ts
|
|
3627
3627
|
var SlackAppsApi = class extends BaseApiClient {
|
|
3628
|
+
async removeSlackAccount(wid, appId, credentialId) {
|
|
3629
|
+
return this.fetch(`w/${wid}/app-connections/slack/apps/${appId}/accounts/${credentialId}`, {
|
|
3630
|
+
method: "DELETE"
|
|
3631
|
+
});
|
|
3632
|
+
}
|
|
3628
3633
|
async removeSlackInstallation(wid, appId, installationId) {
|
|
3629
3634
|
return this.fetch(
|
|
3630
3635
|
`w/${wid}/app-connections/slack/apps/${appId}/installations/${installationId}`,
|
|
@@ -3643,6 +3648,8 @@ var SlackAppsApi = class extends BaseApiClient {
|
|
|
3643
3648
|
const params = new URLSearchParams();
|
|
3644
3649
|
if (options.appId) params.set("appId", String(options.appId));
|
|
3645
3650
|
if (options.workflowId) params.set("workflowId", String(options.workflowId));
|
|
3651
|
+
if (options.offset !== void 0) params.set("offset", String(options.offset));
|
|
3652
|
+
if (options.limit !== void 0) params.set("limit", String(options.limit));
|
|
3646
3653
|
return this.fetch(`w/${wid}/app-connections/slack/entry-points?${params}`);
|
|
3647
3654
|
}
|
|
3648
3655
|
async connectSlackEntryPoint(wid, data) {
|
|
@@ -3661,6 +3668,9 @@ var SlackAppsApi = class extends BaseApiClient {
|
|
|
3661
3668
|
if (options.sortBy) params.append("sortBy", options.sortBy);
|
|
3662
3669
|
if (options.sortOrder) params.append("sortOrder", options.sortOrder);
|
|
3663
3670
|
if (options.search) params.append("search", options.search);
|
|
3671
|
+
if (options.agentId !== void 0) params.set("agentId", String(options.agentId));
|
|
3672
|
+
if (options.workflowId !== void 0) params.set("workflowId", String(options.workflowId));
|
|
3673
|
+
if (options.managed !== void 0) params.set("managed", String(options.managed));
|
|
3664
3674
|
return this.fetch(
|
|
3665
3675
|
`w/${wid}/app-connections/slack/apps${params.toString() ? `?${params.toString()}` : ""}`
|
|
3666
3676
|
);
|
|
@@ -3728,6 +3738,8 @@ var SlackAppsApi = class extends BaseApiClient {
|
|
|
3728
3738
|
const params = new URLSearchParams();
|
|
3729
3739
|
if (options.page) params.append("page", options.page.toString());
|
|
3730
3740
|
if (options.pageSize) params.append("pageSize", options.pageSize.toString());
|
|
3741
|
+
if (options.teamId) params.set("teamId", options.teamId);
|
|
3742
|
+
if (options.search) params.set("search", options.search);
|
|
3731
3743
|
return this.fetch(
|
|
3732
3744
|
`w/${wid}/app-connections/slack/apps/${appId}/accounts${params.toString() ? `?${params.toString()}` : ""}`
|
|
3733
3745
|
);
|
|
@@ -13807,6 +13819,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13807
13819
|
"getSlackAppAccounts",
|
|
13808
13820
|
"getSlackApps",
|
|
13809
13821
|
"getSlackInstallations",
|
|
13822
|
+
"removeSlackAccount",
|
|
13810
13823
|
"removeSlackInstallation",
|
|
13811
13824
|
"getSlackThreads",
|
|
13812
13825
|
"getStepMemberCounts",
|
|
@@ -15068,6 +15081,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
15068
15081
|
target.deleteSlackApp = slackApps.deleteSlackApp.bind(slackApps);
|
|
15069
15082
|
target.getSlackThreads = slackApps.getSlackThreads.bind(slackApps);
|
|
15070
15083
|
target.getSlackInstallations = slackApps.getSlackInstallations.bind(slackApps);
|
|
15084
|
+
target.removeSlackAccount = slackApps.removeSlackAccount.bind(slackApps);
|
|
15071
15085
|
target.removeSlackInstallation = slackApps.removeSlackInstallation.bind(slackApps);
|
|
15072
15086
|
target.getSlackChannelChoices = slackApps.getSlackChannelChoices.bind(slackApps);
|
|
15073
15087
|
target.getSlackEntryPoints = slackApps.getSlackEntryPoints.bind(slackApps);
|
|
@@ -16571,6 +16585,7 @@ var GravityRailClient = class {
|
|
|
16571
16585
|
deleteSlackApp;
|
|
16572
16586
|
getSlackThreads;
|
|
16573
16587
|
getSlackInstallations;
|
|
16588
|
+
removeSlackAccount;
|
|
16574
16589
|
removeSlackInstallation;
|
|
16575
16590
|
getSlackChannelChoices;
|
|
16576
16591
|
getSlackEntryPoints;
|