@naturali/sdk 0.329.0 → 0.331.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/dist/index.cjs +79 -0
- package/dist/index.d.cts +466 -1
- package/dist/index.d.mts +466 -1
- package/dist/index.mjs +79 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -6103,6 +6103,82 @@ var Quotas = class {
|
|
|
6103
6103
|
});
|
|
6104
6104
|
}
|
|
6105
6105
|
};
|
|
6106
|
+
var Repositories = class {
|
|
6107
|
+
/**
|
|
6108
|
+
* List the project's repositories
|
|
6109
|
+
*
|
|
6110
|
+
* The repositories granted to the project, newest first.
|
|
6111
|
+
*/
|
|
6112
|
+
static listRepositories(options) {
|
|
6113
|
+
return (options.client ?? client).get({
|
|
6114
|
+
url: "/v1/projects/{project_id}/repositories",
|
|
6115
|
+
...options
|
|
6116
|
+
});
|
|
6117
|
+
}
|
|
6118
|
+
/**
|
|
6119
|
+
* Grant a repository to the project
|
|
6120
|
+
*
|
|
6121
|
+
* Grant a repository the caller's code-host connection reaches. Only the account holding `connection_id` grants it, and it must be a member of the project. Granting it again answers `200` with the same repository.
|
|
6122
|
+
*
|
|
6123
|
+
*/
|
|
6124
|
+
static grantRepository(options) {
|
|
6125
|
+
return (options.client ?? client).post({
|
|
6126
|
+
url: "/v1/projects/{project_id}/repositories",
|
|
6127
|
+
...options,
|
|
6128
|
+
headers: {
|
|
6129
|
+
"Content-Type": "application/json",
|
|
6130
|
+
...options.headers
|
|
6131
|
+
}
|
|
6132
|
+
});
|
|
6133
|
+
}
|
|
6134
|
+
/**
|
|
6135
|
+
* Revoke a repository from the project
|
|
6136
|
+
*
|
|
6137
|
+
* Only the account holding the repository's connection revokes it. Disconnecting the code host revokes every repository it granted.
|
|
6138
|
+
*
|
|
6139
|
+
*/
|
|
6140
|
+
static revokeRepository(options) {
|
|
6141
|
+
return (options.client ?? client).delete({
|
|
6142
|
+
url: "/v1/projects/{project_id}/repositories/{repository_id}",
|
|
6143
|
+
...options
|
|
6144
|
+
});
|
|
6145
|
+
}
|
|
6146
|
+
/**
|
|
6147
|
+
* Get a repository
|
|
6148
|
+
*
|
|
6149
|
+
* One repository granted to the project.
|
|
6150
|
+
*/
|
|
6151
|
+
static getRepository(options) {
|
|
6152
|
+
return (options.client ?? client).get({
|
|
6153
|
+
url: "/v1/projects/{project_id}/repositories/{repository_id}",
|
|
6154
|
+
...options
|
|
6155
|
+
});
|
|
6156
|
+
}
|
|
6157
|
+
/**
|
|
6158
|
+
* Read a file or directory
|
|
6159
|
+
*
|
|
6160
|
+
* What `path` names at `ref`: a file with its content, or a directory with its entries. Text comes back as `utf-8`, anything else as `base64`. A file above 1 MiB is `400 REPOSITORY_FILE_TOO_LARGE`.
|
|
6161
|
+
*
|
|
6162
|
+
*/
|
|
6163
|
+
static getRepositoryContents(options) {
|
|
6164
|
+
return (options.client ?? client).get({
|
|
6165
|
+
url: "/v1/projects/{project_id}/repositories/{repository_id}/contents",
|
|
6166
|
+
...options
|
|
6167
|
+
});
|
|
6168
|
+
}
|
|
6169
|
+
/**
|
|
6170
|
+
* List every file and directory
|
|
6171
|
+
*
|
|
6172
|
+
* Every entry of the repository at `ref`, recursively. `truncated` is true when the code host cut the list short; read directories one at a time with the contents route then.
|
|
6173
|
+
*
|
|
6174
|
+
*/
|
|
6175
|
+
static getRepositoryTree(options) {
|
|
6176
|
+
return (options.client ?? client).get({
|
|
6177
|
+
url: "/v1/projects/{project_id}/repositories/{repository_id}/tree",
|
|
6178
|
+
...options
|
|
6179
|
+
});
|
|
6180
|
+
}
|
|
6181
|
+
};
|
|
6106
6182
|
var Secrets = class {
|
|
6107
6183
|
/**
|
|
6108
6184
|
* List secrets
|
|
@@ -7540,6 +7616,7 @@ var NaturaliClient = class {
|
|
|
7540
7616
|
playbooks;
|
|
7541
7617
|
policies;
|
|
7542
7618
|
projects;
|
|
7619
|
+
repositories;
|
|
7543
7620
|
secrets;
|
|
7544
7621
|
sessions;
|
|
7545
7622
|
tasks;
|
|
@@ -7603,6 +7680,7 @@ var NaturaliClient = class {
|
|
|
7603
7680
|
this.playbooks = bindResource(Playbooks, this.http);
|
|
7604
7681
|
this.policies = bindResource(Policies, this.http);
|
|
7605
7682
|
this.projects = bindResource(Projects, this.http);
|
|
7683
|
+
this.repositories = bindResource(Repositories, this.http);
|
|
7606
7684
|
this.secrets = bindResource(Secrets, this.http);
|
|
7607
7685
|
this.sessions = bindResource(Sessions, this.http);
|
|
7608
7686
|
this.tasks = bindResource(Tasks, this.http);
|
|
@@ -7615,4 +7693,4 @@ var NaturaliClient = class {
|
|
|
7615
7693
|
}
|
|
7616
7694
|
};
|
|
7617
7695
|
//#endregion
|
|
7618
|
-
export { Activity, ActorAuth, ActorIssuer as ActorIssuer2, ActorTokens, Actors, Admin, AgentVersions, Agents, AiProviders, ApiKeys, Approvals, Assistant, AuditLog, Auth, Chains, Channels, Collections, Conversations, Deciders, Documents, Embeddings, Evaluations, Exceptions, Experts, Files, Formations, Generations, Guardrails, IngestionRules, Knowledge, McpServers, Memories, MemoryRules, MemoryStores, MetadataSchemas, ModelRoutes, Models, NaturaliClient, OauthClients, OauthConnections, Orchestrations, Playbooks, Policies, Projects, Quotas, Secrets, Sessions, Tasks, Tools, Traces, Triggers, Users, Webhooks, Workflows, createClient, createConfig };
|
|
7696
|
+
export { Activity, ActorAuth, ActorIssuer as ActorIssuer2, ActorTokens, Actors, Admin, AgentVersions, Agents, AiProviders, ApiKeys, Approvals, Assistant, AuditLog, Auth, Chains, Channels, Collections, Conversations, Deciders, Documents, Embeddings, Evaluations, Exceptions, Experts, Files, Formations, Generations, Guardrails, IngestionRules, Knowledge, McpServers, Memories, MemoryRules, MemoryStores, MetadataSchemas, ModelRoutes, Models, NaturaliClient, OauthClients, OauthConnections, Orchestrations, Playbooks, Policies, Projects, Quotas, Repositories, Secrets, Sessions, Tasks, Tools, Traces, Triggers, Users, Webhooks, Workflows, createClient, createConfig };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.331.0",
|
|
4
4
|
"description": "TypeScript SDK for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"naturali",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@hey-api/openapi-ts": "^0.99.0",
|
|
41
|
-
"@naturali/api": "0.
|
|
41
|
+
"@naturali/api": "0.331.0",
|
|
42
42
|
"@ttoss/openapi-codegen": "^0.10.1",
|
|
43
43
|
"@types/node": "^26.5.1",
|
|
44
44
|
"tsdown": "^0.23.0",
|