omnara 1.0.2 → 1.0.3
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/bin.js +180 -3
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -98,6 +98,8 @@ __export(sdk_gen_exports, {
|
|
|
98
98
|
listEvents: () => listEvents,
|
|
99
99
|
listIntegrationInstalls: () => listIntegrationInstalls,
|
|
100
100
|
listMachinePools: () => listMachinePools,
|
|
101
|
+
listMcpServerTools: () => listMcpServerTools,
|
|
102
|
+
listMcpServers: () => listMcpServers,
|
|
101
103
|
listMemberProjectAccess: () => listMemberProjectAccess,
|
|
102
104
|
listModelProviderConfigs: () => listModelProviderConfigs,
|
|
103
105
|
listOrgApiKeyProjectAccess: () => listOrgApiKeyProjectAccess,
|
|
@@ -153,7 +155,8 @@ __export(sdk_gen_exports, {
|
|
|
153
155
|
updateOrgMember: () => updateOrgMember,
|
|
154
156
|
updateProjectMachinePoolGrant: () => updateProjectMachinePoolGrant,
|
|
155
157
|
updateProjectModelGrant: () => updateProjectModelGrant,
|
|
156
|
-
updateSecret: () => updateSecret
|
|
158
|
+
updateSecret: () => updateSecret,
|
|
159
|
+
uploadDaemonArtifact: () => uploadDaemonArtifact
|
|
157
160
|
});
|
|
158
161
|
|
|
159
162
|
// ../sdk/src/generated/core/bodySerializer.gen.ts
|
|
@@ -1467,6 +1470,102 @@ var zToolCatalog = z.object({
|
|
|
1467
1470
|
custom_tool_permissions: zToolPermissionProfile,
|
|
1468
1471
|
mcp_tool_permissions: zToolPermissionProfile
|
|
1469
1472
|
});
|
|
1473
|
+
var zMcpRegistryHeader = z.object({
|
|
1474
|
+
name: z.string(),
|
|
1475
|
+
description: z.string().optional(),
|
|
1476
|
+
is_required: z.boolean(),
|
|
1477
|
+
is_secret: z.boolean()
|
|
1478
|
+
});
|
|
1479
|
+
var zMcpRegistryRemote = z.object({
|
|
1480
|
+
type: z.string(),
|
|
1481
|
+
url: z.string(),
|
|
1482
|
+
headers: z.array(zMcpRegistryHeader).optional()
|
|
1483
|
+
});
|
|
1484
|
+
var zMcpRegistryIcon = z.object({
|
|
1485
|
+
src: z.string(),
|
|
1486
|
+
mime_type: z.string().optional(),
|
|
1487
|
+
sizes: z.array(z.string()).optional(),
|
|
1488
|
+
theme: z.string().optional()
|
|
1489
|
+
});
|
|
1490
|
+
var zMcpRegistryServer = z.object({
|
|
1491
|
+
name: z.string(),
|
|
1492
|
+
title: z.string().optional(),
|
|
1493
|
+
description: z.string(),
|
|
1494
|
+
version: z.string(),
|
|
1495
|
+
website_url: z.string().optional(),
|
|
1496
|
+
status: z.string(),
|
|
1497
|
+
updated_at: z.iso.datetime({ offset: true }),
|
|
1498
|
+
remotes: z.array(zMcpRegistryRemote),
|
|
1499
|
+
icons: z.array(zMcpRegistryIcon)
|
|
1500
|
+
});
|
|
1501
|
+
var zListMcpServersResponse = z.object({
|
|
1502
|
+
data: z.array(zMcpRegistryServer),
|
|
1503
|
+
next_cursor: z.string().nullable()
|
|
1504
|
+
});
|
|
1505
|
+
var zMcpServerAuthNone = z.object({
|
|
1506
|
+
type: z.enum(["none"])
|
|
1507
|
+
});
|
|
1508
|
+
var zMcpServerAuthBearer = z.object({
|
|
1509
|
+
type: z.enum(["bearer"]),
|
|
1510
|
+
secret_id: zSecretId
|
|
1511
|
+
});
|
|
1512
|
+
var zMcpServerAuthOAuth = z.object({
|
|
1513
|
+
type: z.enum(["oauth"]),
|
|
1514
|
+
secret_id: zSecretId
|
|
1515
|
+
});
|
|
1516
|
+
var zMcpServerAuthSigV4 = z.object({
|
|
1517
|
+
type: z.enum(["sigv4"]),
|
|
1518
|
+
secret_id: zSecretId,
|
|
1519
|
+
service: z.string().min(1).max(64),
|
|
1520
|
+
region: z.string().min(1).max(64)
|
|
1521
|
+
});
|
|
1522
|
+
var zMcpServerAuth = z.discriminatedUnion("type", [
|
|
1523
|
+
zMcpServerAuthNone.extend({ type: z.literal("none") }),
|
|
1524
|
+
zMcpServerAuthBearer.extend({ type: z.literal("bearer") }),
|
|
1525
|
+
zMcpServerAuthOAuth.extend({ type: z.literal("oauth") }),
|
|
1526
|
+
zMcpServerAuthSigV4.extend({ type: z.literal("sigv4") })
|
|
1527
|
+
]);
|
|
1528
|
+
var zMcpServerToolsRequest = z.object({
|
|
1529
|
+
url: z.url().min(1).max(2048),
|
|
1530
|
+
auth: zMcpServerAuth
|
|
1531
|
+
});
|
|
1532
|
+
var zMcpServerAuthHint = z.object({
|
|
1533
|
+
type: z.enum(["oauth", "bearer"]),
|
|
1534
|
+
scopes: z.array(z.string()).optional(),
|
|
1535
|
+
authorization_server: z.string().optional()
|
|
1536
|
+
});
|
|
1537
|
+
var zMcpServerAuthRequiredError = z.object({
|
|
1538
|
+
error: z.string(),
|
|
1539
|
+
code: z.enum(["unprocessable"]),
|
|
1540
|
+
auth: zMcpServerAuthHint
|
|
1541
|
+
});
|
|
1542
|
+
var zMcpServerInfo = z.object({
|
|
1543
|
+
name: z.string(),
|
|
1544
|
+
version: z.string(),
|
|
1545
|
+
title: z.string().optional(),
|
|
1546
|
+
description: z.string().optional(),
|
|
1547
|
+
website_url: z.string().optional()
|
|
1548
|
+
});
|
|
1549
|
+
var zMcpServerToolAnnotations = z.object({
|
|
1550
|
+
title: z.string().optional(),
|
|
1551
|
+
read_only_hint: z.boolean().optional(),
|
|
1552
|
+
destructive_hint: z.boolean().optional(),
|
|
1553
|
+
idempotent_hint: z.boolean().optional(),
|
|
1554
|
+
open_world_hint: z.boolean().optional()
|
|
1555
|
+
});
|
|
1556
|
+
var zMcpServerTool = z.object({
|
|
1557
|
+
name: z.string(),
|
|
1558
|
+
title: z.string().optional(),
|
|
1559
|
+
description: z.string().optional(),
|
|
1560
|
+
input_schema: z.record(z.string(), z.unknown()),
|
|
1561
|
+
output_schema: z.record(z.string(), z.unknown()).optional(),
|
|
1562
|
+
annotations: zMcpServerToolAnnotations.optional()
|
|
1563
|
+
});
|
|
1564
|
+
var zMcpServerToolsResponse = z.object({
|
|
1565
|
+
protocol_version: z.string(),
|
|
1566
|
+
server_info: zMcpServerInfo,
|
|
1567
|
+
tools: z.array(zMcpServerTool)
|
|
1568
|
+
});
|
|
1470
1569
|
var zAgentConfigModel = z.object({
|
|
1471
1570
|
provider_config: zResourceName,
|
|
1472
1571
|
name: zResourceName,
|
|
@@ -1735,6 +1834,7 @@ var zInlineMediaContentBlock = z.object({
|
|
|
1735
1834
|
var zMediaRefContentBlock = z.object({
|
|
1736
1835
|
type: z.enum(["media_ref"]),
|
|
1737
1836
|
artifact_id: zArtifactId,
|
|
1837
|
+
exclude_from_model_context: z.boolean().optional(),
|
|
1738
1838
|
metadata: zContentBlockMetadata.optional()
|
|
1739
1839
|
});
|
|
1740
1840
|
var zReasoningContentBlock = z.object({
|
|
@@ -1777,6 +1877,7 @@ var zAgentInput = z.object({
|
|
|
1777
1877
|
delivery_mode: zAgentInputDeliveryMode,
|
|
1778
1878
|
input_kind: zAgentInputKind,
|
|
1779
1879
|
actor_id: zActorId.optional(),
|
|
1880
|
+
input_idempotency_key: z.string().optional(),
|
|
1780
1881
|
content_blocks: z.array(zAgentInputContentBlock).optional(),
|
|
1781
1882
|
queued_at: zTimestamp
|
|
1782
1883
|
});
|
|
@@ -2826,6 +2927,9 @@ var zBootstrapDaemonResponse = z.object({
|
|
|
2826
2927
|
installation_id: zInstallationId,
|
|
2827
2928
|
machine_id: zMachineId
|
|
2828
2929
|
});
|
|
2930
|
+
var zUploadArtifactResponse = z.object({
|
|
2931
|
+
artifact_id: zArtifactId
|
|
2932
|
+
});
|
|
2829
2933
|
var zCreateProjectRequest = z.object({
|
|
2830
2934
|
name: zResourceName
|
|
2831
2935
|
});
|
|
@@ -3281,6 +3385,18 @@ var zCreateAgentConfigPath = z.object({
|
|
|
3281
3385
|
});
|
|
3282
3386
|
var zCreateAgentConfigResponse = zAgentConfig;
|
|
3283
3387
|
var zGetToolCatalogResponse = zToolCatalog;
|
|
3388
|
+
var zListMcpServersQuery = z.object({
|
|
3389
|
+
q: z.string().max(200).optional(),
|
|
3390
|
+
remote_url: z.string().max(2048).optional(),
|
|
3391
|
+
limit: z.int().gte(1).lte(100).optional().default(50),
|
|
3392
|
+
cursor: z.string().max(1024).optional()
|
|
3393
|
+
});
|
|
3394
|
+
var zListMcpServersResponse2 = zListMcpServersResponse;
|
|
3395
|
+
var zListMcpServerToolsPath = z.object({
|
|
3396
|
+
orgID: zOrganizationId,
|
|
3397
|
+
projectID: zProjectId
|
|
3398
|
+
});
|
|
3399
|
+
var zListMcpServerToolsResponse = zMcpServerToolsResponse;
|
|
3284
3400
|
var zGetAgentConfigPath = z.object({
|
|
3285
3401
|
orgID: z.string().regex(/^org_[a-z2-7]{26}$/),
|
|
3286
3402
|
projectID: z.string().regex(/^proj_[a-z2-7]{26}$/),
|
|
@@ -3911,6 +4027,14 @@ var zGetDaemonSkillArchiveQuery = z.object({
|
|
|
3911
4027
|
download_token: z.string().length(64)
|
|
3912
4028
|
});
|
|
3913
4029
|
var zGetDaemonSkillArchiveResponse = z.string();
|
|
4030
|
+
var zUploadDaemonArtifactBody = z.string();
|
|
4031
|
+
var zUploadDaemonArtifactPath = z.object({
|
|
4032
|
+
toolCallID: zToolCallId
|
|
4033
|
+
});
|
|
4034
|
+
var zUploadDaemonArtifactQuery = z.object({
|
|
4035
|
+
filename: z.string().min(1).max(255)
|
|
4036
|
+
});
|
|
4037
|
+
var zUploadDaemonArtifactResponse = zUploadArtifactResponse;
|
|
3914
4038
|
|
|
3915
4039
|
// ../sdk/src/validate-response.ts
|
|
3916
4040
|
function valueAt(data, path) {
|
|
@@ -4871,6 +4995,42 @@ var getToolCatalog = (options) => (options?.client ?? client).get({
|
|
|
4871
4995
|
url: "/api/v1/tool-catalog",
|
|
4872
4996
|
...options
|
|
4873
4997
|
});
|
|
4998
|
+
var listMcpServers = (options) => (options?.client ?? client).get({
|
|
4999
|
+
responseValidator: async (data) => await validateResponse(zListMcpServersResponse2, data),
|
|
5000
|
+
security: [{
|
|
5001
|
+
key: "bearerAuth",
|
|
5002
|
+
scheme: "bearer",
|
|
5003
|
+
type: "http"
|
|
5004
|
+
}, {
|
|
5005
|
+
in: "cookie",
|
|
5006
|
+
name: "__Host-omnara_session",
|
|
5007
|
+
type: "apiKey"
|
|
5008
|
+
}],
|
|
5009
|
+
url: "/api/v1/mcp-servers",
|
|
5010
|
+
...options
|
|
5011
|
+
});
|
|
5012
|
+
var listMcpServerTools = (options) => (options.client ?? client).post({
|
|
5013
|
+
responseValidator: async (data) => await validateResponse(zListMcpServerToolsResponse, data),
|
|
5014
|
+
security: [
|
|
5015
|
+
{
|
|
5016
|
+
key: "bearerAuth",
|
|
5017
|
+
scheme: "bearer",
|
|
5018
|
+
type: "http"
|
|
5019
|
+
},
|
|
5020
|
+
{
|
|
5021
|
+
in: "cookie",
|
|
5022
|
+
name: "__Host-omnara_session",
|
|
5023
|
+
type: "apiKey"
|
|
5024
|
+
},
|
|
5025
|
+
{ name: "X-Omnara-Csrf", type: "apiKey" }
|
|
5026
|
+
],
|
|
5027
|
+
url: "/api/v1/orgs/{orgID}/projects/{projectID}/mcp-servers/tools",
|
|
5028
|
+
...options,
|
|
5029
|
+
headers: {
|
|
5030
|
+
"Content-Type": "application/json",
|
|
5031
|
+
...options.headers
|
|
5032
|
+
}
|
|
5033
|
+
});
|
|
4874
5034
|
var getAgentConfig = (options) => (options.client ?? client).get({
|
|
4875
5035
|
responseValidator: async (data) => await validateResponse(zGetAgentConfigResponse, data),
|
|
4876
5036
|
security: [{
|
|
@@ -6316,6 +6476,21 @@ var getDaemonSkillArchive = (options) => (options.client ?? client).get({
|
|
|
6316
6476
|
url: "/api/v1/daemon/skills/{skillID}/archive",
|
|
6317
6477
|
...options
|
|
6318
6478
|
});
|
|
6479
|
+
var uploadDaemonArtifact = (options) => (options.client ?? client).post({
|
|
6480
|
+
bodySerializer: null,
|
|
6481
|
+
responseValidator: async (data) => await validateResponse(zUploadDaemonArtifactResponse, data),
|
|
6482
|
+
security: [{
|
|
6483
|
+
key: "machineDaemonAuth",
|
|
6484
|
+
scheme: "bearer",
|
|
6485
|
+
type: "http"
|
|
6486
|
+
}],
|
|
6487
|
+
url: "/api/v1/daemon/tool-calls/{toolCallID}/artifact",
|
|
6488
|
+
...options,
|
|
6489
|
+
headers: {
|
|
6490
|
+
"Content-Type": "application/octet-stream",
|
|
6491
|
+
...options.headers
|
|
6492
|
+
}
|
|
6493
|
+
});
|
|
6319
6494
|
|
|
6320
6495
|
// ../sdk/src/auth.ts
|
|
6321
6496
|
function bearerToken(token) {
|
|
@@ -6332,11 +6507,13 @@ function bearerToken(token) {
|
|
|
6332
6507
|
var ApiError = class _ApiError extends Error {
|
|
6333
6508
|
status;
|
|
6334
6509
|
code;
|
|
6335
|
-
|
|
6510
|
+
body;
|
|
6511
|
+
constructor(status, message, code, body) {
|
|
6336
6512
|
super(message);
|
|
6337
6513
|
this.name = "ApiError";
|
|
6338
6514
|
this.status = status;
|
|
6339
6515
|
this.code = code;
|
|
6516
|
+
this.body = body;
|
|
6340
6517
|
}
|
|
6341
6518
|
static async fromResponse(response) {
|
|
6342
6519
|
let message = `request failed with status ${response.status}`;
|
|
@@ -6355,7 +6532,7 @@ var ApiError = class _ApiError extends Error {
|
|
|
6355
6532
|
code = data.code;
|
|
6356
6533
|
}
|
|
6357
6534
|
}
|
|
6358
|
-
return new _ApiError(response.status, message, code);
|
|
6535
|
+
return new _ApiError(response.status, message, code, data);
|
|
6359
6536
|
}
|
|
6360
6537
|
};
|
|
6361
6538
|
|
package/package.json
CHANGED