@naturali/sdk 0.220.1 → 0.220.2
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/index.cjs +109 -0
- package/dist/index.d.cts +566 -1
- package/dist/index.d.mts +566 -1
- package/dist/index.mjs +109 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -3754,6 +3754,112 @@ var Listings = class {
|
|
|
3754
3754
|
});
|
|
3755
3755
|
}
|
|
3756
3756
|
};
|
|
3757
|
+
var McpServers = class {
|
|
3758
|
+
/**
|
|
3759
|
+
* List MCP servers
|
|
3760
|
+
*
|
|
3761
|
+
* The project's MCP servers, newest first.
|
|
3762
|
+
*/
|
|
3763
|
+
static listMcpServers(options) {
|
|
3764
|
+
return (options.client ?? client).get({
|
|
3765
|
+
url: "/v1/projects/{project_id}/mcp-servers",
|
|
3766
|
+
...options
|
|
3767
|
+
});
|
|
3768
|
+
}
|
|
3769
|
+
/**
|
|
3770
|
+
* Create an MCP server
|
|
3771
|
+
*
|
|
3772
|
+
* Each item of `tools` is checked against the tool it names: the project's own or an installed one, else `400`. `action` is required, and must be one of the tool's available actions, when the tool declares `actions`; otherwise it is ignored and stored as `null`. A tool whose definition reads `{{context:naturali_caller_…}}` is refused unless `auth.type` is `oauth`.
|
|
3773
|
+
* `daily_call_limit` is required when `auth` is `none` or `oauth` with `mode: any_account`.
|
|
3774
|
+
*
|
|
3775
|
+
*/
|
|
3776
|
+
static createMcpServer(options) {
|
|
3777
|
+
return (options.client ?? client).post({
|
|
3778
|
+
url: "/v1/projects/{project_id}/mcp-servers",
|
|
3779
|
+
...options,
|
|
3780
|
+
headers: {
|
|
3781
|
+
"Content-Type": "application/json",
|
|
3782
|
+
...options.headers
|
|
3783
|
+
}
|
|
3784
|
+
});
|
|
3785
|
+
}
|
|
3786
|
+
/**
|
|
3787
|
+
* Delete an MCP server
|
|
3788
|
+
*
|
|
3789
|
+
* Removes the server and its keys.
|
|
3790
|
+
*/
|
|
3791
|
+
static deleteMcpServer(options) {
|
|
3792
|
+
return (options.client ?? client).delete({
|
|
3793
|
+
url: "/v1/projects/{project_id}/mcp-servers/{mcp_server_id}",
|
|
3794
|
+
...options
|
|
3795
|
+
});
|
|
3796
|
+
}
|
|
3797
|
+
/**
|
|
3798
|
+
* Get an MCP server
|
|
3799
|
+
*
|
|
3800
|
+
* The server, with the keys of its context; values are never returned.
|
|
3801
|
+
*/
|
|
3802
|
+
static getMcpServer(options) {
|
|
3803
|
+
return (options.client ?? client).get({
|
|
3804
|
+
url: "/v1/projects/{project_id}/mcp-servers/{mcp_server_id}",
|
|
3805
|
+
...options
|
|
3806
|
+
});
|
|
3807
|
+
}
|
|
3808
|
+
/**
|
|
3809
|
+
* Update an MCP server
|
|
3810
|
+
*
|
|
3811
|
+
* A field sent replaces the stored one, `tools`, `context` and `auth` whole; `null` clears an optional field. The result is checked as on create. Changing `auth.type` away from `header` deletes the server's keys.
|
|
3812
|
+
*
|
|
3813
|
+
*/
|
|
3814
|
+
static updateMcpServer(options) {
|
|
3815
|
+
return (options.client ?? client).patch({
|
|
3816
|
+
url: "/v1/projects/{project_id}/mcp-servers/{mcp_server_id}",
|
|
3817
|
+
...options,
|
|
3818
|
+
headers: {
|
|
3819
|
+
"Content-Type": "application/json",
|
|
3820
|
+
...options.headers
|
|
3821
|
+
}
|
|
3822
|
+
});
|
|
3823
|
+
}
|
|
3824
|
+
/**
|
|
3825
|
+
* List MCP server keys
|
|
3826
|
+
*
|
|
3827
|
+
* The server's keys, newest first. The secret is not returned.
|
|
3828
|
+
*/
|
|
3829
|
+
static listMcpServerKeys(options) {
|
|
3830
|
+
return (options.client ?? client).get({
|
|
3831
|
+
url: "/v1/projects/{project_id}/mcp-servers/{mcp_server_id}/keys",
|
|
3832
|
+
...options
|
|
3833
|
+
});
|
|
3834
|
+
}
|
|
3835
|
+
/**
|
|
3836
|
+
* Create an MCP server key
|
|
3837
|
+
*
|
|
3838
|
+
* A key confined to this server, for a server whose `auth.type` is `header`. The response carries `key`; **this is the only time it is returned.** `idempotency_key` is refused.
|
|
3839
|
+
*
|
|
3840
|
+
*/
|
|
3841
|
+
static createMcpServerKey(options) {
|
|
3842
|
+
return (options.client ?? client).post({
|
|
3843
|
+
url: "/v1/projects/{project_id}/mcp-servers/{mcp_server_id}/keys",
|
|
3844
|
+
...options,
|
|
3845
|
+
headers: {
|
|
3846
|
+
"Content-Type": "application/json",
|
|
3847
|
+
...options.headers
|
|
3848
|
+
}
|
|
3849
|
+
});
|
|
3850
|
+
}
|
|
3851
|
+
/**
|
|
3852
|
+
* Revoke an MCP server key
|
|
3853
|
+
*
|
|
3854
|
+
* Deletes the key; a client holding it can no longer connect.
|
|
3855
|
+
*/
|
|
3856
|
+
static deleteMcpServerKey(options) {
|
|
3857
|
+
return (options.client ?? client).delete({
|
|
3858
|
+
url: "/v1/projects/{project_id}/mcp-servers/{mcp_server_id}/keys/{key_id}",
|
|
3859
|
+
...options
|
|
3860
|
+
});
|
|
3861
|
+
}
|
|
3862
|
+
};
|
|
3757
3863
|
var Memories = class {
|
|
3758
3864
|
/**
|
|
3759
3865
|
* List memories
|
|
@@ -6590,6 +6696,7 @@ var NaturaliClient = class {
|
|
|
6590
6696
|
installs;
|
|
6591
6697
|
knowledge;
|
|
6592
6698
|
listings;
|
|
6699
|
+
mcpServers;
|
|
6593
6700
|
memories;
|
|
6594
6701
|
memoryRules;
|
|
6595
6702
|
memoryStores;
|
|
@@ -6646,6 +6753,7 @@ var NaturaliClient = class {
|
|
|
6646
6753
|
this.installs = bindResource(Installs, this.http);
|
|
6647
6754
|
this.knowledge = bindResource(Knowledge, this.http);
|
|
6648
6755
|
this.listings = bindResource(Listings, this.http);
|
|
6756
|
+
this.mcpServers = bindResource(McpServers, this.http);
|
|
6649
6757
|
this.memories = bindResource(Memories, this.http);
|
|
6650
6758
|
this.memoryRules = bindResource(MemoryRules, this.http);
|
|
6651
6759
|
this.memoryStores = bindResource(MemoryStores, this.http);
|
|
@@ -6695,6 +6803,7 @@ exports.IngestionRules = IngestionRules;
|
|
|
6695
6803
|
exports.Installs = Installs;
|
|
6696
6804
|
exports.Knowledge = Knowledge;
|
|
6697
6805
|
exports.Listings = Listings;
|
|
6806
|
+
exports.McpServers = McpServers;
|
|
6698
6807
|
exports.Memories = Memories;
|
|
6699
6808
|
exports.MemoryRules = MemoryRules;
|
|
6700
6809
|
exports.MemoryStores = MemoryStores;
|