@gravity-rail/sdk 0.5.0 → 0.6.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/agui.cjs +78 -0
- package/dist/agui.cjs.map +1 -0
- package/dist/agui.d.cts +13 -0
- package/dist/agui.d.ts +13 -0
- package/dist/agui.js +48 -0
- package/dist/agui.js.map +1 -0
- package/dist/audio.cjs +223 -0
- package/dist/audio.cjs.map +1 -0
- package/dist/audio.d.cts +25 -0
- package/dist/audio.d.ts +25 -0
- package/dist/audio.js +147 -0
- package/dist/audio.js.map +1 -0
- package/dist/chunk-BSOOMHW6.js +62 -0
- package/dist/chunk-BSOOMHW6.js.map +1 -0
- package/dist/{chunk-QZC4QPP2.js → chunk-DX42AMVM.js} +2 -31
- package/dist/chunk-DX42AMVM.js.map +1 -0
- package/dist/{index-CIwgGcAm.d.ts → client-BKGhDv14.d.cts} +37 -1617
- package/dist/{index-DNxSoo5S.d.cts → client-dP29995A.d.ts} +37 -1617
- package/dist/helpers.cjs +123 -0
- package/dist/helpers.cjs.map +1 -0
- package/dist/helpers.d.cts +28 -0
- package/dist/helpers.d.ts +28 -0
- package/dist/helpers.js +92 -0
- package/dist/helpers.js.map +1 -0
- package/dist/index-CBfaxd3y.d.cts +1589 -0
- package/dist/index-Q5qU2JFt.d.ts +1589 -0
- package/dist/index.cjs +1 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +1 -1
- package/dist/{inquiries-DiTDrTG2.d.cts → inquiries-BH6I8-SF.d.cts} +1 -1
- package/dist/{inquiries-DiTDrTG2.d.ts → inquiries-BH6I8-SF.d.ts} +1 -1
- package/dist/internal.cjs +1 -30
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +4 -3
- package/dist/internal.d.ts +4 -3
- package/dist/internal.js +1 -1
- package/dist/oauth-client.cjs +78 -0
- package/dist/oauth-client.cjs.map +1 -0
- package/dist/oauth-client.d.cts +15 -0
- package/dist/oauth-client.d.ts +15 -0
- package/dist/oauth-client.js +48 -0
- package/dist/oauth-client.js.map +1 -0
- package/dist/realtime.cjs +637 -0
- package/dist/realtime.cjs.map +1 -0
- package/dist/realtime.d.cts +94 -0
- package/dist/realtime.d.ts +94 -0
- package/dist/realtime.js +580 -0
- package/dist/realtime.js.map +1 -0
- package/dist/schemas.d.cts +2 -2
- package/dist/schemas.d.ts +2 -2
- package/dist/types-DkYyrvoC.d.cts +19 -0
- package/dist/types-DkYyrvoC.d.ts +19 -0
- package/package.json +27 -2
- package/dist/chunk-QZC4QPP2.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -4688,7 +4688,7 @@ var OrgApi = class extends BaseApiClient {
|
|
|
4688
4688
|
);
|
|
4689
4689
|
}
|
|
4690
4690
|
/**
|
|
4691
|
-
* Purchase a phone number from Twilio for this org.
|
|
4691
|
+
* Purchase a phone number from Twilio for this org inventory (org admin only).
|
|
4692
4692
|
*/
|
|
4693
4693
|
async purchasePhoneNumber(orgUuid, phoneNumber, numberType) {
|
|
4694
4694
|
return this.fetch(`o/${orgUuid}/phone-numbers/purchase`, {
|
|
@@ -5115,31 +5115,6 @@ var PhoneNumbersApi = class extends BaseApiClient {
|
|
|
5115
5115
|
body: JSON.stringify({ providerPhoneUuid })
|
|
5116
5116
|
});
|
|
5117
5117
|
}
|
|
5118
|
-
async searchAvailablePhoneNumbers(wid, params) {
|
|
5119
|
-
const searchParams = new URLSearchParams();
|
|
5120
|
-
if (params.country) searchParams.set("country", params.country);
|
|
5121
|
-
if (params.numberType) searchParams.set("number_type", params.numberType);
|
|
5122
|
-
if (params.areaCode) searchParams.set("area_code", params.areaCode);
|
|
5123
|
-
if (params.contains) searchParams.set("contains", params.contains);
|
|
5124
|
-
if (params.city) searchParams.set("city", params.city);
|
|
5125
|
-
if (params.state) searchParams.set("state", params.state);
|
|
5126
|
-
if (params.limit) searchParams.set("limit", String(params.limit));
|
|
5127
|
-
const qs = searchParams.toString();
|
|
5128
|
-
return this.fetch(
|
|
5129
|
-
`w/${wid}/phone-numbers/search${qs ? `?${qs}` : ""}`
|
|
5130
|
-
);
|
|
5131
|
-
}
|
|
5132
|
-
async purchasePhoneNumber(wid, request, idempotencyKey) {
|
|
5133
|
-
const headers = {};
|
|
5134
|
-
if (idempotencyKey) {
|
|
5135
|
-
headers["Idempotency-Key"] = idempotencyKey;
|
|
5136
|
-
}
|
|
5137
|
-
return this.fetch(`w/${wid}/phone-numbers/purchase`, {
|
|
5138
|
-
method: "POST",
|
|
5139
|
-
body: JSON.stringify(request),
|
|
5140
|
-
headers
|
|
5141
|
-
});
|
|
5142
|
-
}
|
|
5143
5118
|
async releasePhoneNumber(wid, id) {
|
|
5144
5119
|
return this.fetch(`w/${wid}/phone-numbers/${id}/release`, {
|
|
5145
5120
|
method: "POST"
|
|
@@ -8485,8 +8460,6 @@ function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRu
|
|
|
8485
8460
|
target.getPhoneNumberVoicemails = phoneNumbers.getPhoneNumberVoicemails.bind(phoneNumbers);
|
|
8486
8461
|
target.fetchVoicemailAudio = phoneNumbers.fetchVoicemailAudio.bind(phoneNumbers);
|
|
8487
8462
|
target.updateVoicemailStatus = phoneNumbers.updateVoicemailStatus.bind(phoneNumbers);
|
|
8488
|
-
target.searchAvailablePhoneNumbers = phoneNumbers.searchAvailablePhoneNumbers.bind(phoneNumbers);
|
|
8489
|
-
target.purchasePhoneNumber = phoneNumbers.purchasePhoneNumber.bind(phoneNumbers);
|
|
8490
8463
|
target.releasePhoneNumber = phoneNumbers.releasePhoneNumber.bind(phoneNumbers);
|
|
8491
8464
|
target.getLinkablePhones = phoneNumbers.getLinkablePhones.bind(phoneNumbers);
|
|
8492
8465
|
target.linkPhoneNumber = phoneNumbers.linkPhoneNumber.bind(phoneNumbers);
|
|
@@ -9464,8 +9437,6 @@ var GravityRailClient = class {
|
|
|
9464
9437
|
getPhoneNumberVoicemails;
|
|
9465
9438
|
fetchVoicemailAudio;
|
|
9466
9439
|
updateVoicemailStatus;
|
|
9467
|
-
searchAvailablePhoneNumbers;
|
|
9468
|
-
purchasePhoneNumber;
|
|
9469
9440
|
releasePhoneNumber;
|
|
9470
9441
|
getLinkablePhones;
|
|
9471
9442
|
linkPhoneNumber;
|