@gravity-rail/sdk 9.0.0 → 10.0.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/dist/{account-DLwJWX9b.d.cts → account-DEA-f-I9.d.cts} +1 -1
- package/dist/{account-DLwJWX9b.d.ts → account-DEA-f-I9.d.ts} +1 -1
- package/dist/{agent_team-CeErHy0t.d.ts → agent_team-Baa7AvKF.d.ts} +4 -363
- package/dist/{agent_team-J0TyZPkg.d.cts → agent_team-EdLmOQDL.d.cts} +4 -363
- package/dist/{chunk-AMJ2MMBM.js → chunk-XTB2HFSI.js} +27 -9
- package/dist/chunk-XTB2HFSI.js.map +1 -0
- package/dist/{client-CO1hYs43.d.cts → client-BaF3v-ux.d.ts} +218 -41
- package/dist/{client-xtsG-YOi.d.ts → client-Cb9pM31S.d.cts} +218 -41
- package/dist/helpers.d.cts +3 -3
- package/dist/helpers.d.ts +3 -3
- package/dist/index.cjs +26 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +1 -1
- package/dist/internal.cjs +26 -8
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +44 -80
- package/dist/internal.d.ts +44 -80
- package/dist/internal.js +1 -1
- package/dist/internal.js.map +1 -1
- package/dist/{member-import-q5-fCvfV.d.ts → member-import-Bq_eC7gx.d.ts} +2 -2
- package/dist/{member-import-CzGVMtgv.d.cts → member-import-_zu58M9w.d.cts} +2 -2
- package/dist/realtime.cjs.map +1 -1
- package/dist/realtime.js.map +1 -1
- package/dist/schemas.d.cts +29 -29
- package/dist/schemas.d.ts +29 -29
- package/dist/{tasks-BM3pb5W6.d.cts → tasks-DssYoZDt.d.ts} +7 -2
- package/dist/{tasks-Dc89D2Gu.d.ts → tasks-yScacy3c.d.cts} +7 -2
- package/package.json +8 -7
- package/dist/chunk-AMJ2MMBM.js.map +0 -1
package/dist/helpers.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { GravityRailClient } from './index.cjs';
|
|
2
|
-
export { C as ChatInteractionController } from './client-
|
|
2
|
+
export { C as ChatInteractionController } from './client-Cb9pM31S.cjs';
|
|
3
3
|
import { WorkspaceMemberResponse, DataRecordResponse } from './index.cjs';
|
|
4
|
-
export { t as toSafeBusinessImportPreview, a as toSafeBusinessImportResult, b as toSafeMemberImportPreview, c as toSafeMemberImportSummary } from './member-import-
|
|
5
|
-
import './account-
|
|
4
|
+
export { t as toSafeBusinessImportPreview, a as toSafeBusinessImportResult, b as toSafeMemberImportPreview, c as toSafeMemberImportSummary } from './member-import-_zu58M9w.cjs';
|
|
5
|
+
import './account-DEA-f-I9.cjs';
|
|
6
6
|
import 'zod';
|
|
7
7
|
|
|
8
8
|
interface OutboundPhoneNumberOption {
|
package/dist/helpers.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { GravityRailClient } from './index.js';
|
|
2
|
-
export { C as ChatInteractionController } from './client-
|
|
2
|
+
export { C as ChatInteractionController } from './client-BaF3v-ux.js';
|
|
3
3
|
import { WorkspaceMemberResponse, DataRecordResponse } from './index.js';
|
|
4
|
-
export { t as toSafeBusinessImportPreview, a as toSafeBusinessImportResult, b as toSafeMemberImportPreview, c as toSafeMemberImportSummary } from './member-import-
|
|
5
|
-
import './account-
|
|
4
|
+
export { t as toSafeBusinessImportPreview, a as toSafeBusinessImportResult, b as toSafeMemberImportPreview, c as toSafeMemberImportSummary } from './member-import-Bq_eC7gx.js';
|
|
5
|
+
import './account-DEA-f-I9.js';
|
|
6
6
|
import 'zod';
|
|
7
7
|
|
|
8
8
|
interface OutboundPhoneNumberOption {
|
package/dist/index.cjs
CHANGED
|
@@ -7607,12 +7607,6 @@ var OrgApi = class extends BaseApiClient {
|
|
|
7607
7607
|
body: JSON.stringify(data)
|
|
7608
7608
|
});
|
|
7609
7609
|
}
|
|
7610
|
-
async setOrganizationMemberBillingRole(orgUuid, memberId, billingRole) {
|
|
7611
|
-
return this.fetch(`o/${orgUuid}/members/${memberId}/billing-role`, {
|
|
7612
|
-
method: "PUT",
|
|
7613
|
-
body: JSON.stringify({ billingRole })
|
|
7614
|
-
});
|
|
7615
|
-
}
|
|
7616
7610
|
/**
|
|
7617
7611
|
* Remove a member from an organization.
|
|
7618
7612
|
*/
|
|
@@ -8326,8 +8320,8 @@ var OrgApi = class extends BaseApiClient {
|
|
|
8326
8320
|
}
|
|
8327
8321
|
/**
|
|
8328
8322
|
* Submit a later campaign that has never been submitted. The caller must be
|
|
8329
|
-
* an org admin with recent 2FA, and
|
|
8330
|
-
*
|
|
8323
|
+
* an org admin with recent 2FA, and — on subscription billing — an active
|
|
8324
|
+
* Organization Owner (the submission buys the campaign's vetting). The brand's first
|
|
8331
8325
|
* campaign is submitted by approving its sample messages during registration;
|
|
8332
8326
|
* an ineligible campaign comes back as a structured 409 with a `code`. A brand
|
|
8333
8327
|
* that no longer reads approved at the carrier, or a use case it no longer
|
|
@@ -9049,6 +9043,22 @@ var PhoneNumbersApi = class extends BaseApiClient {
|
|
|
9049
9043
|
`w/${wid}/phone-numbers/${id}/voicemails?${params}`
|
|
9050
9044
|
);
|
|
9051
9045
|
}
|
|
9046
|
+
/** Fetch one authorized voicemail by uuid. */
|
|
9047
|
+
async getVoicemailByUuid(wid, uuid) {
|
|
9048
|
+
return this.fetch(`w/${wid}/voicemails/by-uuid/${encodeURIComponent(uuid)}`);
|
|
9049
|
+
}
|
|
9050
|
+
/** Fetch one authorized SMS delivery by uuid with failure reason and trigger provenance. */
|
|
9051
|
+
async getSmsDeliveryByUuid(wid, uuid) {
|
|
9052
|
+
return this.fetch(
|
|
9053
|
+
`w/${wid}/phone-numbers/sms-messages/by-uuid/${encodeURIComponent(uuid)}`
|
|
9054
|
+
);
|
|
9055
|
+
}
|
|
9056
|
+
/** Fetch one org-authorized SMS delivery by uuid inside a workspace of the org. */
|
|
9057
|
+
async getOrgWorkspaceSmsDeliveryByUuid(orgUuid, wid, uuid) {
|
|
9058
|
+
return this.fetch(
|
|
9059
|
+
`o/${orgUuid}/activity/workspaces/${wid}/sms-messages/by-uuid/${encodeURIComponent(uuid)}`
|
|
9060
|
+
);
|
|
9061
|
+
}
|
|
9052
9062
|
/** Fetch voicemail audio through the authenticated client path. */
|
|
9053
9063
|
async fetchVoicemailAudio(wid, phoneNumberId, voicemailId) {
|
|
9054
9064
|
const response = await this.fetchRaw(
|
|
@@ -15319,6 +15329,8 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
15319
15329
|
"exportWorkspace",
|
|
15320
15330
|
"exportWorkspaceZip",
|
|
15321
15331
|
"fetchVoicemailAudio",
|
|
15332
|
+
"getVoicemailByUuid",
|
|
15333
|
+
"getSmsDeliveryByUuid",
|
|
15322
15334
|
"fhirBackfillEncounterSync",
|
|
15323
15335
|
"fhirCheckPatientLinks",
|
|
15324
15336
|
"fhirCreateEncounter",
|
|
@@ -16823,6 +16835,9 @@ function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRu
|
|
|
16823
16835
|
target.getPhoneNumberMessages = phoneNumbers.getPhoneNumberMessages.bind(phoneNumbers);
|
|
16824
16836
|
target.getPhoneNumberFaxes = phoneNumbers.getPhoneNumberFaxes.bind(phoneNumbers);
|
|
16825
16837
|
target.getPhoneNumberVoicemails = phoneNumbers.getPhoneNumberVoicemails.bind(phoneNumbers);
|
|
16838
|
+
target.getVoicemailByUuid = phoneNumbers.getVoicemailByUuid.bind(phoneNumbers);
|
|
16839
|
+
target.getSmsDeliveryByUuid = phoneNumbers.getSmsDeliveryByUuid.bind(phoneNumbers);
|
|
16840
|
+
target.getOrgWorkspaceSmsDeliveryByUuid = phoneNumbers.getOrgWorkspaceSmsDeliveryByUuid.bind(phoneNumbers);
|
|
16826
16841
|
target.fetchVoicemailAudio = phoneNumbers.fetchVoicemailAudio.bind(phoneNumbers);
|
|
16827
16842
|
target.updateVoicemailStatus = phoneNumbers.updateVoicemailStatus.bind(phoneNumbers);
|
|
16828
16843
|
target.releasePhoneNumber = phoneNumbers.releasePhoneNumber.bind(phoneNumbers);
|
|
@@ -18471,6 +18486,9 @@ var GravityRailClient = class {
|
|
|
18471
18486
|
getPhoneNumberMessages;
|
|
18472
18487
|
getPhoneNumberFaxes;
|
|
18473
18488
|
getPhoneNumberVoicemails;
|
|
18489
|
+
getVoicemailByUuid;
|
|
18490
|
+
getSmsDeliveryByUuid;
|
|
18491
|
+
getOrgWorkspaceSmsDeliveryByUuid;
|
|
18474
18492
|
fetchVoicemailAudio;
|
|
18475
18493
|
updateVoicemailStatus;
|
|
18476
18494
|
releasePhoneNumber;
|