@gravity-rail/sdk 0.55.0 → 0.55.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/{chat-interaction-CZnqOfut.d.ts → chat-interaction-C620llgG.d.cts} +472 -326
- package/dist/{chat-interaction-DZCWRbDi.d.cts → chat-interaction-DDz9ZtQ8.d.ts} +472 -326
- package/dist/{chunk-BF4MOZZO.js → chunk-7R22EG5F.js} +52 -4
- package/dist/chunk-7R22EG5F.js.map +1 -0
- package/dist/helpers.d.cts +2 -2
- package/dist/helpers.d.ts +2 -2
- package/dist/index.cjs +52 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +52 -3
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +4 -4
- package/dist/internal.d.ts +4 -4
- package/dist/internal.js +3 -1
- package/dist/internal.js.map +1 -1
- package/dist/{path-C6Ujx-3w.d.cts → path-BIk9UPr0.d.cts} +46 -2
- package/dist/{path-YfkJBAbf.d.ts → path-kbfnY2gB.d.ts} +46 -2
- package/package.json +3 -3
- package/dist/chunk-BF4MOZZO.js.map +0 -1
package/dist/helpers.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { gy as GravityRailClient } from './chat-interaction-C620llgG.cjs';
|
|
2
|
+
export { cn as ChatInteractionController } from './chat-interaction-C620llgG.cjs';
|
|
3
3
|
import { c7 as WorkspaceMemberResponse, aT as DataRecordResponse } from './tasks-BdYhYUpU.cjs';
|
|
4
4
|
export { t as toSafeMemberImportPreview, a as toSafeMemberImportSummary } from './member-import-DzuvKnMC.cjs';
|
|
5
5
|
import 'zod';
|
package/dist/helpers.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { gy as GravityRailClient } from './chat-interaction-DDz9ZtQ8.js';
|
|
2
|
+
export { cn as ChatInteractionController } from './chat-interaction-DDz9ZtQ8.js';
|
|
3
3
|
import { c7 as WorkspaceMemberResponse, aT as DataRecordResponse } from './tasks-BdYhYUpU.js';
|
|
4
4
|
export { t as toSafeMemberImportPreview, a as toSafeMemberImportSummary } from './member-import-D1QvZiy5.js';
|
|
5
5
|
import 'zod';
|
package/dist/index.cjs
CHANGED
|
@@ -39,6 +39,7 @@ __export(src_exports, {
|
|
|
39
39
|
ActivityWindowBasis: () => ActivityWindowBasis,
|
|
40
40
|
ActorKind: () => ActorKind,
|
|
41
41
|
AgentBuilder: () => AgentBuilder,
|
|
42
|
+
AiConnectorPolicy: () => AiConnectorPolicy,
|
|
42
43
|
ApiError: () => ApiError,
|
|
43
44
|
ApplyError: () => ApplyError,
|
|
44
45
|
AppsApi: () => AppsApi,
|
|
@@ -6705,6 +6706,33 @@ var OrgApi = class extends BaseApiClient {
|
|
|
6705
6706
|
method: "DELETE"
|
|
6706
6707
|
});
|
|
6707
6708
|
}
|
|
6709
|
+
/**
|
|
6710
|
+
* Read the organization's AI connector policy and the connectors (MCP
|
|
6711
|
+
* clients such as claude.ai or ChatGPT) that have requested access to it.
|
|
6712
|
+
* Requires `org:admin`.
|
|
6713
|
+
*/
|
|
6714
|
+
async getOrgAiConnectorPolicy(orgIdOrUuid) {
|
|
6715
|
+
return this.fetch(`o/${orgIdOrUuid}/ai-connectors`);
|
|
6716
|
+
}
|
|
6717
|
+
/** Set the AI connector mode: `any` or `allowlist`. Requires `org:admin`. */
|
|
6718
|
+
async updateOrgAiConnectorPolicy(orgIdOrUuid, data) {
|
|
6719
|
+
return this.fetch(`o/${orgIdOrUuid}/ai-connectors`, {
|
|
6720
|
+
method: "PUT",
|
|
6721
|
+
body: JSON.stringify(data)
|
|
6722
|
+
});
|
|
6723
|
+
}
|
|
6724
|
+
/** Allow a connector that has requested access. Requires `org:admin`. */
|
|
6725
|
+
async allowOrgAiConnector(orgIdOrUuid, appId) {
|
|
6726
|
+
return this.fetch(`o/${orgIdOrUuid}/ai-connectors/clients/${appId}`, {
|
|
6727
|
+
method: "PUT"
|
|
6728
|
+
});
|
|
6729
|
+
}
|
|
6730
|
+
/** Remove a connector from the allowlist. Requires `org:admin`. */
|
|
6731
|
+
async removeOrgAiConnector(orgIdOrUuid, appId) {
|
|
6732
|
+
return this.fetch(`o/${orgIdOrUuid}/ai-connectors/clients/${appId}`, {
|
|
6733
|
+
method: "DELETE"
|
|
6734
|
+
});
|
|
6735
|
+
}
|
|
6708
6736
|
/**
|
|
6709
6737
|
* Get the billing customer and this organization's billable subscription.
|
|
6710
6738
|
*
|
|
@@ -7532,13 +7560,22 @@ var OrgApi = class extends BaseApiClient {
|
|
|
7532
7560
|
method: "DELETE"
|
|
7533
7561
|
});
|
|
7534
7562
|
}
|
|
7535
|
-
async listOrgWebhookEndpointDeliveries(orgIdOrUuid, endpointUuid, limit = 50) {
|
|
7563
|
+
async listOrgWebhookEndpointDeliveries(orgIdOrUuid, endpointUuid, limit = 50, offset = 0) {
|
|
7536
7564
|
return this.fetch(
|
|
7537
|
-
`o/${orgIdOrUuid}/webhooks/${endpointUuid}/deliveries?limit=${limit}`
|
|
7565
|
+
`o/${orgIdOrUuid}/webhooks/${endpointUuid}/deliveries?limit=${limit}&offset=${offset}`
|
|
7538
7566
|
);
|
|
7539
7567
|
}
|
|
7568
|
+
async getOrgWebhookDeliveryDetail(orgIdOrUuid, endpointUuid, deliveryId) {
|
|
7569
|
+
return this.fetch(`o/${orgIdOrUuid}/webhooks/${endpointUuid}/deliveries/${deliveryId}`);
|
|
7570
|
+
}
|
|
7571
|
+
async clearOrgWebhookDeliveries(orgIdOrUuid, endpointUuid, failedOnly) {
|
|
7572
|
+
return this.fetch(`o/${orgIdOrUuid}/webhooks/${endpointUuid}/deliveries/clear`, {
|
|
7573
|
+
method: "POST",
|
|
7574
|
+
body: JSON.stringify({ failedOnly })
|
|
7575
|
+
});
|
|
7576
|
+
}
|
|
7540
7577
|
/**
|
|
7541
|
-
* Requeue one
|
|
7578
|
+
* Requeue one failed or expired delivery on its existing row.
|
|
7542
7579
|
*
|
|
7543
7580
|
* The response is identifiers only. The drain signs a fresh timestamp
|
|
7544
7581
|
* when it sends; this call does not POST to the receiver.
|
|
@@ -14886,6 +14923,8 @@ function bindOrgMethods(target, org) {
|
|
|
14886
14923
|
target.listOrgWebhookEndpointDeliveries = org.listOrgWebhookEndpointDeliveries.bind(org);
|
|
14887
14924
|
target.replayOrgWebhookDelivery = org.replayOrgWebhookDelivery.bind(org);
|
|
14888
14925
|
target.discardPendingOrgWebhookDeliveries = org.discardPendingOrgWebhookDeliveries.bind(org);
|
|
14926
|
+
target.getOrgWebhookDeliveryDetail = org.getOrgWebhookDeliveryDetail.bind(org);
|
|
14927
|
+
target.clearOrgWebhookDeliveries = org.clearOrgWebhookDeliveries.bind(org);
|
|
14889
14928
|
target.getOrgWebhookEndpointCoverage = org.getOrgWebhookEndpointCoverage.bind(org);
|
|
14890
14929
|
target.testOrgWebhookEndpoint = org.testOrgWebhookEndpoint.bind(org);
|
|
14891
14930
|
target.listWorkspaceLabels = org.listWorkspaceLabels.bind(org);
|
|
@@ -15658,6 +15697,8 @@ var GravityRailClient = class {
|
|
|
15658
15697
|
listOrgWebhookEndpointDeliveries;
|
|
15659
15698
|
replayOrgWebhookDelivery;
|
|
15660
15699
|
discardPendingOrgWebhookDeliveries;
|
|
15700
|
+
getOrgWebhookDeliveryDetail;
|
|
15701
|
+
clearOrgWebhookDeliveries;
|
|
15661
15702
|
getOrgWebhookEndpointCoverage;
|
|
15662
15703
|
testOrgWebhookEndpoint;
|
|
15663
15704
|
listWorkspaceLabels;
|
|
@@ -19071,6 +19112,7 @@ var AbilityTypeSlugs = {
|
|
|
19071
19112
|
GOOGLE_SHEETS: "integration:google_sheets",
|
|
19072
19113
|
CHARLESTON_PMD_PAGING: "integration:charleston_pmd_paging",
|
|
19073
19114
|
COSAN_PATHWAYS_SCHEDULING: "integration:cosan_pathways_scheduling",
|
|
19115
|
+
ATHENA_SCHEDULING: "integration:athena_scheduling",
|
|
19074
19116
|
// Communication
|
|
19075
19117
|
PHONE_CALL_TOOLS: "communication:phone_call_tools",
|
|
19076
19118
|
SEND_SMS: "communication:send_sms",
|
|
@@ -19283,6 +19325,12 @@ var SiteDnsRecordType = {
|
|
|
19283
19325
|
TXT: "TXT"
|
|
19284
19326
|
};
|
|
19285
19327
|
|
|
19328
|
+
// src/types/generated/ai_connector_policy.ts
|
|
19329
|
+
var AiConnectorPolicy = {
|
|
19330
|
+
any: "any",
|
|
19331
|
+
allowlist: "allowlist"
|
|
19332
|
+
};
|
|
19333
|
+
|
|
19286
19334
|
// src/types/generated/site.ts
|
|
19287
19335
|
var MenuItemResponseItemType = {
|
|
19288
19336
|
page: "page",
|
|
@@ -20648,6 +20696,7 @@ function pathDraftToStorage(draft, original) {
|
|
|
20648
20696
|
ActivityWindowBasis,
|
|
20649
20697
|
ActorKind,
|
|
20650
20698
|
AgentBuilder,
|
|
20699
|
+
AiConnectorPolicy,
|
|
20651
20700
|
ApiError,
|
|
20652
20701
|
ApplyError,
|
|
20653
20702
|
AppsApi,
|