@gravity-rail/sdk 0.33.0 → 0.34.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 +5 -0
- package/dist/{chat-interaction-DJ9-Qtg2.d.cts → chat-interaction-BiH_iWSK.d.ts} +13205 -12489
- package/dist/{chat-interaction-dd6F3uT4.d.ts → chat-interaction-C-B463O4.d.cts} +13205 -12489
- package/dist/{chunk-WDYHAQDY.js → chunk-ON7HBHJA.js} +99 -6
- package/dist/chunk-ON7HBHJA.js.map +1 -0
- package/dist/helpers.d.cts +3 -3
- package/dist/helpers.d.ts +3 -3
- package/dist/index.cjs +98 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +1 -1
- package/dist/internal.cjs +98 -5
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +30 -12
- package/dist/internal.d.ts +30 -12
- package/dist/internal.js +1 -1
- package/dist/{revision-state-Cgmy_Cds.d.cts → revision-state-CXEcwfWa.d.cts} +44 -44
- package/dist/{revision-state-BD39fW5X.d.ts → revision-state-DLQDfN6Z.d.ts} +44 -44
- package/dist/schemas.d.cts +2 -2
- package/dist/schemas.d.ts +2 -2
- package/dist/{tasks-B-31JPuq.d.cts → tasks-Co5om-p9.d.cts} +3147 -3145
- package/dist/{tasks-B-31JPuq.d.ts → tasks-Co5om-p9.d.ts} +3147 -3145
- package/package.json +3 -3
- package/dist/chunk-WDYHAQDY.js.map +0 -1
package/dist/internal.cjs
CHANGED
|
@@ -7059,6 +7059,32 @@ var InboxesApi = class extends BaseApiClient {
|
|
|
7059
7059
|
body: JSON.stringify(body)
|
|
7060
7060
|
});
|
|
7061
7061
|
}
|
|
7062
|
+
/**
|
|
7063
|
+
* Render a compose or `email:send` template draft through the same
|
|
7064
|
+
* outbound body-assembly seam (footer, layout wrapper, markdown fallback)
|
|
7065
|
+
* as sending. Preview excludes delivery-specific MIME transformations,
|
|
7066
|
+
* including inline-image content IDs.
|
|
7067
|
+
*/
|
|
7068
|
+
async previewInboxEmail(wid, inboxId, body) {
|
|
7069
|
+
return this.fetch(`w/${wid}/inboxes/${inboxId}/emails/preview`, {
|
|
7070
|
+
method: "POST",
|
|
7071
|
+
body: JSON.stringify(body)
|
|
7072
|
+
});
|
|
7073
|
+
}
|
|
7074
|
+
/**
|
|
7075
|
+
* Render a reply draft, including its quote, through outbound body
|
|
7076
|
+
* assembly. Preview excludes delivery-specific MIME transformations,
|
|
7077
|
+
* including inline-image content IDs.
|
|
7078
|
+
*/
|
|
7079
|
+
async previewEmailReply(wid, inboxId, emailId, body) {
|
|
7080
|
+
return this.fetch(
|
|
7081
|
+
`w/${wid}/inboxes/${inboxId}/emails/${emailId}/reply-preview`,
|
|
7082
|
+
{
|
|
7083
|
+
method: "POST",
|
|
7084
|
+
body: JSON.stringify(body)
|
|
7085
|
+
}
|
|
7086
|
+
);
|
|
7087
|
+
}
|
|
7062
7088
|
/**
|
|
7063
7089
|
* Make a stored email's sender a Member of this workspace.
|
|
7064
7090
|
*
|
|
@@ -8966,10 +8992,19 @@ var OrgApi = class extends BaseApiClient {
|
|
|
8966
8992
|
}
|
|
8967
8993
|
/**
|
|
8968
8994
|
* Enable custom site routing for a verified org domain.
|
|
8995
|
+
*
|
|
8996
|
+
* Pass `{ childHosting: true }` to enable the domain as a **parent**
|
|
8997
|
+
* instead: it publishes one `*.<domain>` wildcard CNAME, serves nothing
|
|
8998
|
+
* at its own name, and hosts are added beneath it afterwards. The mode
|
|
8999
|
+
* is fixed at enable — disable and re-enable to change it.
|
|
9000
|
+
*
|
|
9001
|
+
* The request always carries a JSON body, `{}` by default: the route
|
|
9002
|
+
* requires one as a CSRF barrier.
|
|
8969
9003
|
*/
|
|
8970
|
-
async enableOrgDomainSite(orgIdOrUuid, domainUuid) {
|
|
9004
|
+
async enableOrgDomainSite(orgIdOrUuid, domainUuid, options = {}) {
|
|
8971
9005
|
return this.fetch(`o/${orgIdOrUuid}/domains/${domainUuid}/site`, {
|
|
8972
|
-
method: "POST"
|
|
9006
|
+
method: "POST",
|
|
9007
|
+
body: JSON.stringify(options)
|
|
8973
9008
|
});
|
|
8974
9009
|
}
|
|
8975
9010
|
/**
|
|
@@ -8981,12 +9016,15 @@ var OrgApi = class extends BaseApiClient {
|
|
|
8981
9016
|
/**
|
|
8982
9017
|
* Pre-enable DNS check: is the site CNAME resolving to the routing
|
|
8983
9018
|
* endpoint yet? Pure DNS — consumes no enable budget.
|
|
9019
|
+
*
|
|
9020
|
+
* Pass `{ childHosting: true }` to check the mode you intend to enable
|
|
9021
|
+
* in: the wildcard is probed instead of the domain's own CNAME.
|
|
8984
9022
|
*/
|
|
8985
|
-
async preflightOrgDomainSite(orgIdOrUuid, domainUuid) {
|
|
9023
|
+
async preflightOrgDomainSite(orgIdOrUuid, domainUuid, options = {}) {
|
|
8986
9024
|
return this.fetch(
|
|
8987
9025
|
`o/${orgIdOrUuid}/domains/${domainUuid}/site/preflight`,
|
|
8988
|
-
//
|
|
8989
|
-
{ method: "POST", body: JSON.stringify(
|
|
9026
|
+
// JSON body, `{}` by default: the route requires one as a CSRF barrier.
|
|
9027
|
+
{ method: "POST", body: JSON.stringify(options) }
|
|
8990
9028
|
);
|
|
8991
9029
|
}
|
|
8992
9030
|
/**
|
|
@@ -8998,6 +9036,27 @@ var OrgApi = class extends BaseApiClient {
|
|
|
8998
9036
|
{ method: "POST" }
|
|
8999
9037
|
);
|
|
9000
9038
|
}
|
|
9039
|
+
/**
|
|
9040
|
+
* Create one child host beneath a child-hosting parent domain.
|
|
9041
|
+
*
|
|
9042
|
+
* The child gets its own CloudFront tenant and managed certificate and
|
|
9043
|
+
* needs no customer DNS: the parent's wildcard CNAME already routes it.
|
|
9044
|
+
*/
|
|
9045
|
+
async createOrgDomainSiteChildHost(orgIdOrUuid, parentDomainUuid, request) {
|
|
9046
|
+
return this.fetch(
|
|
9047
|
+
`o/${orgIdOrUuid}/domains/${parentDomainUuid}/site/children`,
|
|
9048
|
+
{ method: "POST", body: JSON.stringify(request) }
|
|
9049
|
+
);
|
|
9050
|
+
}
|
|
9051
|
+
/**
|
|
9052
|
+
* List the child hosts beneath a child-hosting parent domain, with live
|
|
9053
|
+
* per-host status.
|
|
9054
|
+
*/
|
|
9055
|
+
async listOrgDomainSiteChildHosts(orgIdOrUuid, parentDomainUuid) {
|
|
9056
|
+
return this.fetch(
|
|
9057
|
+
`o/${orgIdOrUuid}/domains/${parentDomainUuid}/site/children`
|
|
9058
|
+
);
|
|
9059
|
+
}
|
|
9001
9060
|
/**
|
|
9002
9061
|
* Disable custom site routing for an org domain.
|
|
9003
9062
|
*/
|
|
@@ -9360,6 +9419,34 @@ var OrgApi = class extends BaseApiClient {
|
|
|
9360
9419
|
`o/${orgIdOrUuid}/webhooks/${endpointUuid}/deliveries?limit=${limit}`
|
|
9361
9420
|
);
|
|
9362
9421
|
}
|
|
9422
|
+
/**
|
|
9423
|
+
* A representative delivery body for one event type — what the test-send
|
|
9424
|
+
* editor is prefilled with, and the same builder the public event catalog
|
|
9425
|
+
* is generated from. Pass `endpointUuid` to have the sample name that
|
|
9426
|
+
* endpoint and sit in a workspace it actually covers.
|
|
9427
|
+
*/
|
|
9428
|
+
async getOrgWebhookEventSample(orgIdOrUuid, eventType, endpointUuid) {
|
|
9429
|
+
const query = endpointUuid ? `?endpointUuid=${encodeURIComponent(endpointUuid)}` : "";
|
|
9430
|
+
return this.fetch(
|
|
9431
|
+
`o/${orgIdOrUuid}/webhooks/event-types/${encodeURIComponent(eventType)}/sample${query}`
|
|
9432
|
+
);
|
|
9433
|
+
}
|
|
9434
|
+
/**
|
|
9435
|
+
* Send one payload to the endpoint now and report what came back.
|
|
9436
|
+
*
|
|
9437
|
+
* Outside the delivery queue: no delivery row, no retry, no effect on the
|
|
9438
|
+
* endpoint's status — but the same signing, egress vetting and outcome
|
|
9439
|
+
* classification a real delivery goes through.
|
|
9440
|
+
*/
|
|
9441
|
+
async testOrgWebhookEndpoint(orgIdOrUuid, endpointUuid, data) {
|
|
9442
|
+
return this.fetch(
|
|
9443
|
+
`o/${orgIdOrUuid}/webhooks/${endpointUuid}/test`,
|
|
9444
|
+
{
|
|
9445
|
+
method: "POST",
|
|
9446
|
+
body: JSON.stringify(data)
|
|
9447
|
+
}
|
|
9448
|
+
);
|
|
9449
|
+
}
|
|
9363
9450
|
};
|
|
9364
9451
|
function businessProfilePath(orgUuid, legalEntityUuid) {
|
|
9365
9452
|
return legalEntityUuid ? `o/${orgUuid}/legal-entities/${legalEntityUuid}/business-profile` : `o/${orgUuid}/business-profile`;
|
|
@@ -13638,10 +13725,12 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13638
13725
|
"markEmailAsUnread",
|
|
13639
13726
|
"markNotificationAsRead",
|
|
13640
13727
|
"mergeMemberRoles",
|
|
13728
|
+
"previewEmailReply",
|
|
13641
13729
|
"previewImportMembers",
|
|
13642
13730
|
"previewMemberWorkflowVoice",
|
|
13643
13731
|
"previewRenameFieldSlug",
|
|
13644
13732
|
"previewImportWorkspace",
|
|
13733
|
+
"previewInboxEmail",
|
|
13645
13734
|
"previewRoutineVoiceReadiness",
|
|
13646
13735
|
"previewRoutineWorkflowAccess",
|
|
13647
13736
|
"previewSchedule",
|
|
@@ -14542,6 +14631,8 @@ function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRu
|
|
|
14542
14631
|
target.getChatEmails = inboxes.getChatEmails.bind(inboxes);
|
|
14543
14632
|
target.replyToEmail = inboxes.replyToEmail.bind(inboxes);
|
|
14544
14633
|
target.sendInboxEmail = inboxes.sendInboxEmail.bind(inboxes);
|
|
14634
|
+
target.previewInboxEmail = inboxes.previewInboxEmail.bind(inboxes);
|
|
14635
|
+
target.previewEmailReply = inboxes.previewEmailReply.bind(inboxes);
|
|
14545
14636
|
target.getNotificationRules = notificationRules.getNotificationRules.bind(notificationRules);
|
|
14546
14637
|
target.createNotificationRule = notificationRules.createNotificationRule.bind(notificationRules);
|
|
14547
14638
|
target.updateNotificationRule = notificationRules.updateNotificationRule.bind(notificationRules);
|
|
@@ -15800,6 +15891,8 @@ var GravityRailClient = class {
|
|
|
15800
15891
|
getChatEmails;
|
|
15801
15892
|
replyToEmail;
|
|
15802
15893
|
sendInboxEmail;
|
|
15894
|
+
previewInboxEmail;
|
|
15895
|
+
previewEmailReply;
|
|
15803
15896
|
getNotificationRules;
|
|
15804
15897
|
createNotificationRule;
|
|
15805
15898
|
updateNotificationRule;
|