@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/internal.cjs
CHANGED
|
@@ -40,6 +40,7 @@ __export(internal_exports, {
|
|
|
40
40
|
AddonMutationResponseScope: () => AddonMutationResponseScope,
|
|
41
41
|
AgentTasksApi: () => AgentTasksApi,
|
|
42
42
|
AgentsApi: () => AgentsApi,
|
|
43
|
+
AiConnectorPolicy: () => AiConnectorPolicy,
|
|
43
44
|
ApiError: () => ApiError,
|
|
44
45
|
ApiKeysApi: () => ApiKeysApi,
|
|
45
46
|
AppConnectionsApi: () => AppConnectionsApi,
|
|
@@ -1519,6 +1520,7 @@ var AbilityTypeSlugs = {
|
|
|
1519
1520
|
GOOGLE_SHEETS: "integration:google_sheets",
|
|
1520
1521
|
CHARLESTON_PMD_PAGING: "integration:charleston_pmd_paging",
|
|
1521
1522
|
COSAN_PATHWAYS_SCHEDULING: "integration:cosan_pathways_scheduling",
|
|
1523
|
+
ATHENA_SCHEDULING: "integration:athena_scheduling",
|
|
1522
1524
|
// Communication
|
|
1523
1525
|
PHONE_CALL_TOOLS: "communication:phone_call_tools",
|
|
1524
1526
|
SEND_SMS: "communication:send_sms",
|
|
@@ -2083,6 +2085,12 @@ var MetricUnit = {
|
|
|
2083
2085
|
custom: "custom"
|
|
2084
2086
|
};
|
|
2085
2087
|
|
|
2088
|
+
// src/types/generated/ai_connector_policy.ts
|
|
2089
|
+
var AiConnectorPolicy = {
|
|
2090
|
+
any: "any",
|
|
2091
|
+
allowlist: "allowlist"
|
|
2092
|
+
};
|
|
2093
|
+
|
|
2086
2094
|
// src/types/generated/site.ts
|
|
2087
2095
|
var MenuItemResponseItemType = {
|
|
2088
2096
|
page: "page",
|
|
@@ -9509,6 +9517,33 @@ var OrgApi = class extends BaseApiClient {
|
|
|
9509
9517
|
method: "DELETE"
|
|
9510
9518
|
});
|
|
9511
9519
|
}
|
|
9520
|
+
/**
|
|
9521
|
+
* Read the organization's AI connector policy and the connectors (MCP
|
|
9522
|
+
* clients such as claude.ai or ChatGPT) that have requested access to it.
|
|
9523
|
+
* Requires `org:admin`.
|
|
9524
|
+
*/
|
|
9525
|
+
async getOrgAiConnectorPolicy(orgIdOrUuid) {
|
|
9526
|
+
return this.fetch(`o/${orgIdOrUuid}/ai-connectors`);
|
|
9527
|
+
}
|
|
9528
|
+
/** Set the AI connector mode: `any` or `allowlist`. Requires `org:admin`. */
|
|
9529
|
+
async updateOrgAiConnectorPolicy(orgIdOrUuid, data) {
|
|
9530
|
+
return this.fetch(`o/${orgIdOrUuid}/ai-connectors`, {
|
|
9531
|
+
method: "PUT",
|
|
9532
|
+
body: JSON.stringify(data)
|
|
9533
|
+
});
|
|
9534
|
+
}
|
|
9535
|
+
/** Allow a connector that has requested access. Requires `org:admin`. */
|
|
9536
|
+
async allowOrgAiConnector(orgIdOrUuid, appId) {
|
|
9537
|
+
return this.fetch(`o/${orgIdOrUuid}/ai-connectors/clients/${appId}`, {
|
|
9538
|
+
method: "PUT"
|
|
9539
|
+
});
|
|
9540
|
+
}
|
|
9541
|
+
/** Remove a connector from the allowlist. Requires `org:admin`. */
|
|
9542
|
+
async removeOrgAiConnector(orgIdOrUuid, appId) {
|
|
9543
|
+
return this.fetch(`o/${orgIdOrUuid}/ai-connectors/clients/${appId}`, {
|
|
9544
|
+
method: "DELETE"
|
|
9545
|
+
});
|
|
9546
|
+
}
|
|
9512
9547
|
/**
|
|
9513
9548
|
* Get the billing customer and this organization's billable subscription.
|
|
9514
9549
|
*
|
|
@@ -10336,13 +10371,22 @@ var OrgApi = class extends BaseApiClient {
|
|
|
10336
10371
|
method: "DELETE"
|
|
10337
10372
|
});
|
|
10338
10373
|
}
|
|
10339
|
-
async listOrgWebhookEndpointDeliveries(orgIdOrUuid, endpointUuid, limit = 50) {
|
|
10374
|
+
async listOrgWebhookEndpointDeliveries(orgIdOrUuid, endpointUuid, limit = 50, offset = 0) {
|
|
10340
10375
|
return this.fetch(
|
|
10341
|
-
`o/${orgIdOrUuid}/webhooks/${endpointUuid}/deliveries?limit=${limit}`
|
|
10376
|
+
`o/${orgIdOrUuid}/webhooks/${endpointUuid}/deliveries?limit=${limit}&offset=${offset}`
|
|
10342
10377
|
);
|
|
10343
10378
|
}
|
|
10379
|
+
async getOrgWebhookDeliveryDetail(orgIdOrUuid, endpointUuid, deliveryId) {
|
|
10380
|
+
return this.fetch(`o/${orgIdOrUuid}/webhooks/${endpointUuid}/deliveries/${deliveryId}`);
|
|
10381
|
+
}
|
|
10382
|
+
async clearOrgWebhookDeliveries(orgIdOrUuid, endpointUuid, failedOnly) {
|
|
10383
|
+
return this.fetch(`o/${orgIdOrUuid}/webhooks/${endpointUuid}/deliveries/clear`, {
|
|
10384
|
+
method: "POST",
|
|
10385
|
+
body: JSON.stringify({ failedOnly })
|
|
10386
|
+
});
|
|
10387
|
+
}
|
|
10344
10388
|
/**
|
|
10345
|
-
* Requeue one
|
|
10389
|
+
* Requeue one failed or expired delivery on its existing row.
|
|
10346
10390
|
*
|
|
10347
10391
|
* The response is identifiers only. The drain signs a fresh timestamp
|
|
10348
10392
|
* when it sends; this call does not POST to the receiver.
|
|
@@ -16507,6 +16551,8 @@ function bindOrgMethods(target, org) {
|
|
|
16507
16551
|
target.listOrgWebhookEndpointDeliveries = org.listOrgWebhookEndpointDeliveries.bind(org);
|
|
16508
16552
|
target.replayOrgWebhookDelivery = org.replayOrgWebhookDelivery.bind(org);
|
|
16509
16553
|
target.discardPendingOrgWebhookDeliveries = org.discardPendingOrgWebhookDeliveries.bind(org);
|
|
16554
|
+
target.getOrgWebhookDeliveryDetail = org.getOrgWebhookDeliveryDetail.bind(org);
|
|
16555
|
+
target.clearOrgWebhookDeliveries = org.clearOrgWebhookDeliveries.bind(org);
|
|
16510
16556
|
target.getOrgWebhookEndpointCoverage = org.getOrgWebhookEndpointCoverage.bind(org);
|
|
16511
16557
|
target.testOrgWebhookEndpoint = org.testOrgWebhookEndpoint.bind(org);
|
|
16512
16558
|
target.listWorkspaceLabels = org.listWorkspaceLabels.bind(org);
|
|
@@ -17279,6 +17325,8 @@ var GravityRailClient = class {
|
|
|
17279
17325
|
listOrgWebhookEndpointDeliveries;
|
|
17280
17326
|
replayOrgWebhookDelivery;
|
|
17281
17327
|
discardPendingOrgWebhookDeliveries;
|
|
17328
|
+
getOrgWebhookDeliveryDetail;
|
|
17329
|
+
clearOrgWebhookDeliveries;
|
|
17282
17330
|
getOrgWebhookEndpointCoverage;
|
|
17283
17331
|
testOrgWebhookEndpoint;
|
|
17284
17332
|
listWorkspaceLabels;
|
|
@@ -18267,6 +18315,7 @@ function pathDraftToStorage(draft, original) {
|
|
|
18267
18315
|
AddonMutationResponseScope,
|
|
18268
18316
|
AgentTasksApi,
|
|
18269
18317
|
AgentsApi,
|
|
18318
|
+
AiConnectorPolicy,
|
|
18270
18319
|
ApiError,
|
|
18271
18320
|
ApiKeysApi,
|
|
18272
18321
|
AppConnectionsApi,
|