@meetkai/mka1 0.54.71 → 0.54.72
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/bin/mcp-server.js +16 -16
- package/bin/mcp-server.js.map +13 -13
- package/dist/commonjs/funcs/reposCreate.d.ts +5 -5
- package/dist/commonjs/funcs/reposCreate.js +5 -5
- package/dist/commonjs/funcs/reposDelete.d.ts +2 -2
- package/dist/commonjs/funcs/reposDelete.js +2 -2
- package/dist/commonjs/funcs/reposList.d.ts +1 -1
- package/dist/commonjs/funcs/reposList.js +1 -1
- package/dist/commonjs/funcs/reposUpdate.d.ts +3 -3
- package/dist/commonjs/funcs/reposUpdate.js +3 -3
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/mcp-server/tools/reposCreate.js +5 -5
- package/dist/commonjs/mcp-server/tools/reposDelete.js +2 -2
- package/dist/commonjs/mcp-server/tools/reposList.js +1 -1
- package/dist/commonjs/mcp-server/tools/reposUpdate.js +3 -3
- package/dist/commonjs/models/components/repo.d.ts +1 -1
- package/dist/commonjs/react-query/reposCreate.d.ts +5 -5
- package/dist/commonjs/react-query/reposCreate.js +5 -5
- package/dist/commonjs/react-query/reposDelete.d.ts +2 -2
- package/dist/commonjs/react-query/reposDelete.js +2 -2
- package/dist/commonjs/react-query/reposList.d.ts +2 -2
- package/dist/commonjs/react-query/reposList.js +2 -2
- package/dist/commonjs/react-query/reposUpdate.d.ts +3 -3
- package/dist/commonjs/react-query/reposUpdate.js +3 -3
- package/dist/commonjs/sdk/repos.d.ts +11 -11
- package/dist/commonjs/sdk/repos.js +11 -11
- package/dist/esm/funcs/reposCreate.d.ts +5 -5
- package/dist/esm/funcs/reposCreate.js +5 -5
- package/dist/esm/funcs/reposDelete.d.ts +2 -2
- package/dist/esm/funcs/reposDelete.js +2 -2
- package/dist/esm/funcs/reposList.d.ts +1 -1
- package/dist/esm/funcs/reposList.js +1 -1
- package/dist/esm/funcs/reposUpdate.d.ts +3 -3
- package/dist/esm/funcs/reposUpdate.js +3 -3
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/mcp-server/tools/reposCreate.js +5 -5
- package/dist/esm/mcp-server/tools/reposDelete.js +2 -2
- package/dist/esm/mcp-server/tools/reposList.js +1 -1
- package/dist/esm/mcp-server/tools/reposUpdate.js +3 -3
- package/dist/esm/models/components/repo.d.ts +1 -1
- package/dist/esm/react-query/reposCreate.d.ts +5 -5
- package/dist/esm/react-query/reposCreate.js +5 -5
- package/dist/esm/react-query/reposDelete.d.ts +2 -2
- package/dist/esm/react-query/reposDelete.js +2 -2
- package/dist/esm/react-query/reposList.d.ts +2 -2
- package/dist/esm/react-query/reposList.js +2 -2
- package/dist/esm/react-query/reposUpdate.d.ts +3 -3
- package/dist/esm/react-query/reposUpdate.js +3 -3
- package/dist/esm/sdk/repos.d.ts +11 -11
- package/dist/esm/sdk/repos.js +11 -11
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/reposCreate.ts +5 -5
- package/src/funcs/reposDelete.ts +2 -2
- package/src/funcs/reposList.ts +1 -1
- package/src/funcs/reposUpdate.ts +3 -3
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/reposCreate.ts +5 -5
- package/src/mcp-server/tools/reposDelete.ts +2 -2
- package/src/mcp-server/tools/reposList.ts +1 -1
- package/src/mcp-server/tools/reposUpdate.ts +3 -3
- package/src/models/components/repo.ts +1 -1
- package/src/react-query/reposCreate.ts +5 -5
- package/src/react-query/reposDelete.ts +2 -2
- package/src/react-query/reposList.ts +2 -2
- package/src/react-query/reposUpdate.ts +3 -3
- package/src/sdk/repos.ts +11 -11
package/dist/esm/lib/config.js
CHANGED
|
@@ -31,8 +31,8 @@ export function serverURLFromOptions(options) {
|
|
|
31
31
|
export const SDK_METADATA = {
|
|
32
32
|
language: "typescript",
|
|
33
33
|
openapiDocVersion: "1.1.0",
|
|
34
|
-
sdkVersion: "0.54.
|
|
34
|
+
sdkVersion: "0.54.72",
|
|
35
35
|
genVersion: "2.943.0",
|
|
36
|
-
userAgent: "speakeasy-sdk/typescript 0.54.
|
|
36
|
+
userAgent: "speakeasy-sdk/typescript 0.54.72 2.943.0 1.1.0 @meetkai/mka1",
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.js.map
|
|
@@ -458,7 +458,7 @@ import { tool$usageSandbox } from "./tools/usageSandbox.js";
|
|
|
458
458
|
export function createMCPServer(deps) {
|
|
459
459
|
const server = new McpServer({
|
|
460
460
|
name: "SDK",
|
|
461
|
-
version: "0.54.
|
|
461
|
+
version: "0.54.72",
|
|
462
462
|
});
|
|
463
463
|
const client = new SDKCore({
|
|
464
464
|
bearerAuth: deps.bearerAuth,
|
|
@@ -11,11 +11,11 @@ export const tool$reposCreate = {
|
|
|
11
11
|
name: "repos-create",
|
|
12
12
|
description: `Create a repository
|
|
13
13
|
|
|
14
|
-
Provisions a repository (org owner/admin only)
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
Provisions a repository (org owner/admin only); a failed provision is
|
|
15
|
+
rolled back best-effort (see the \`502\`). The repository belongs to the
|
|
16
|
+
caller's org. \`kind\` says what it will hold and defaults to \`repo\` (a
|
|
17
|
+
plain git repository); it decides which protocol planes answer for the
|
|
18
|
+
name (see the \`Repo\` schema).
|
|
19
19
|
`,
|
|
20
20
|
args,
|
|
21
21
|
tool: async (client, args, ctx) => {
|
|
@@ -11,8 +11,8 @@ export const tool$reposDelete = {
|
|
|
11
11
|
name: "repos-delete",
|
|
12
12
|
description: `Delete a repository
|
|
13
13
|
|
|
14
|
-
Removes a repository; org owner/admin only. The
|
|
15
|
-
authoritative; the
|
|
14
|
+
Removes a repository; org owner/admin only. The deletion is
|
|
15
|
+
authoritative; the contents are cleaned up best-effort.
|
|
16
16
|
`,
|
|
17
17
|
args,
|
|
18
18
|
tool: async (client, args, ctx) => {
|
|
@@ -12,7 +12,7 @@ export const tool$reposList = {
|
|
|
12
12
|
description: `List the caller's org's repositories
|
|
13
13
|
|
|
14
14
|
Returns every repository in the caller's org (org owner/admin only).
|
|
15
|
-
|
|
15
|
+
Read-only. With \`kind\`, only repositories of that kind; an untyped
|
|
16
16
|
(legacy, \`kind: null\`) repository appears in the unfiltered listing
|
|
17
17
|
only.
|
|
18
18
|
`,
|
|
@@ -12,15 +12,15 @@ export const tool$reposUpdate = {
|
|
|
12
12
|
description: `Update a repository's labels
|
|
13
13
|
|
|
14
14
|
Applies a label-only update (name/description/kind); org owner/admin
|
|
15
|
-
only. The repository id is stable, so a rename
|
|
16
|
-
|
|
15
|
+
only. The repository id is stable, so a rename touches no contents.
|
|
16
|
+
Omitted fields are left unchanged.
|
|
17
17
|
|
|
18
18
|
\`kind\` is the ONE way a repository's kind changes after creation (the
|
|
19
19
|
protocol planes never change it): it types a legacy \`kind: null\`
|
|
20
20
|
repository and corrects a wrong kind. \`repo\`, \`model\` and \`dataset\`
|
|
21
21
|
convert freely and any repository may become \`image\`; a repository
|
|
22
22
|
whose container images are still named by a tag can be given no
|
|
23
|
-
other kind — leaving \`image\`, or typing a legacy \`null\`
|
|
23
|
+
other kind — leaving \`image\`, or typing a legacy \`null\` repository as
|
|
24
24
|
anything else, is refused with \`409 kind_has_content\` (list and
|
|
25
25
|
delete the tags through this API first). A switch away from \`image\`
|
|
26
26
|
collects every image no tag reaches before it is judged, so an image
|
|
@@ -11,7 +11,7 @@ export type Repo = {
|
|
|
11
11
|
* (the API, `git push`, the HF client, the OCI registry). It is the
|
|
12
12
|
* same id the platform session and mk-authentication's members
|
|
13
13
|
* directory use, so a name is one directory lookup away. `null`
|
|
14
|
-
* for a
|
|
14
|
+
* for a repository that records no user id; never an empty string.
|
|
15
15
|
*/
|
|
16
16
|
creator: string | null;
|
|
17
17
|
description: string;
|
|
@@ -19,11 +19,11 @@ export type ReposCreateMutationError = errors.RepoError | SDKError | ResponseVal
|
|
|
19
19
|
* Create a repository
|
|
20
20
|
*
|
|
21
21
|
* @remarks
|
|
22
|
-
* Provisions a repository (org owner/admin only)
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
22
|
+
* Provisions a repository (org owner/admin only); a failed provision is
|
|
23
|
+
* rolled back best-effort (see the `502`). The repository belongs to the
|
|
24
|
+
* caller's org. `kind` says what it will hold and defaults to `repo` (a
|
|
25
|
+
* plain git repository); it decides which protocol planes answer for the
|
|
26
|
+
* name (see the `Repo` schema).
|
|
27
27
|
*/
|
|
28
28
|
export declare function useReposCreateMutation(options?: MutationHookOptions<ReposCreateMutationData, ReposCreateMutationError, ReposCreateMutationVariables>): UseMutationResult<ReposCreateMutationData, ReposCreateMutationError, ReposCreateMutationVariables>;
|
|
29
29
|
export declare function mutationKeyReposCreate(): MutationKey;
|
|
@@ -10,11 +10,11 @@ import { useSDKContext } from "./_context.js";
|
|
|
10
10
|
* Create a repository
|
|
11
11
|
*
|
|
12
12
|
* @remarks
|
|
13
|
-
* Provisions a repository (org owner/admin only)
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
13
|
+
* Provisions a repository (org owner/admin only); a failed provision is
|
|
14
|
+
* rolled back best-effort (see the `502`). The repository belongs to the
|
|
15
|
+
* caller's org. `kind` says what it will hold and defaults to `repo` (a
|
|
16
|
+
* plain git repository); it decides which protocol planes answer for the
|
|
17
|
+
* name (see the `Repo` schema).
|
|
18
18
|
*/
|
|
19
19
|
export function useReposCreateMutation(options) {
|
|
20
20
|
const client = useSDKContext();
|
|
@@ -18,8 +18,8 @@ export type ReposDeleteMutationError = errors.RepoError | SDKError | ResponseVal
|
|
|
18
18
|
* Delete a repository
|
|
19
19
|
*
|
|
20
20
|
* @remarks
|
|
21
|
-
* Removes a repository; org owner/admin only. The
|
|
22
|
-
* authoritative; the
|
|
21
|
+
* Removes a repository; org owner/admin only. The deletion is
|
|
22
|
+
* authoritative; the contents are cleaned up best-effort.
|
|
23
23
|
*/
|
|
24
24
|
export declare function useReposDeleteMutation(options?: MutationHookOptions<ReposDeleteMutationData, ReposDeleteMutationError, ReposDeleteMutationVariables>): UseMutationResult<ReposDeleteMutationData, ReposDeleteMutationError, ReposDeleteMutationVariables>;
|
|
25
25
|
export declare function mutationKeyReposDelete(): MutationKey;
|
|
@@ -10,8 +10,8 @@ import { useSDKContext } from "./_context.js";
|
|
|
10
10
|
* Delete a repository
|
|
11
11
|
*
|
|
12
12
|
* @remarks
|
|
13
|
-
* Removes a repository; org owner/admin only. The
|
|
14
|
-
* authoritative; the
|
|
13
|
+
* Removes a repository; org owner/admin only. The deletion is
|
|
14
|
+
* authoritative; the contents are cleaned up best-effort.
|
|
15
15
|
*/
|
|
16
16
|
export function useReposDeleteMutation(options) {
|
|
17
17
|
const client = useSDKContext();
|
|
@@ -15,7 +15,7 @@ export type ReposListQueryError = errors.RepoError | SDKError | ResponseValidati
|
|
|
15
15
|
*
|
|
16
16
|
* @remarks
|
|
17
17
|
* Returns every repository in the caller's org (org owner/admin only).
|
|
18
|
-
*
|
|
18
|
+
* Read-only. With `kind`, only repositories of that kind; an untyped
|
|
19
19
|
* (legacy, `kind: null`) repository appears in the unfiltered listing
|
|
20
20
|
* only.
|
|
21
21
|
*/
|
|
@@ -25,7 +25,7 @@ export declare function useReposList(request: operations.ListReposRequest, optio
|
|
|
25
25
|
*
|
|
26
26
|
* @remarks
|
|
27
27
|
* Returns every repository in the caller's org (org owner/admin only).
|
|
28
|
-
*
|
|
28
|
+
* Read-only. With `kind`, only repositories of that kind; an untyped
|
|
29
29
|
* (legacy, `kind: null`) repository appears in the unfiltered listing
|
|
30
30
|
* only.
|
|
31
31
|
*/
|
|
@@ -10,7 +10,7 @@ export { buildReposListQuery, prefetchReposList, queryKeyReposList, };
|
|
|
10
10
|
*
|
|
11
11
|
* @remarks
|
|
12
12
|
* Returns every repository in the caller's org (org owner/admin only).
|
|
13
|
-
*
|
|
13
|
+
* Read-only. With `kind`, only repositories of that kind; an untyped
|
|
14
14
|
* (legacy, `kind: null`) repository appears in the unfiltered listing
|
|
15
15
|
* only.
|
|
16
16
|
*/
|
|
@@ -26,7 +26,7 @@ export function useReposList(request, options) {
|
|
|
26
26
|
*
|
|
27
27
|
* @remarks
|
|
28
28
|
* Returns every repository in the caller's org (org owner/admin only).
|
|
29
|
-
*
|
|
29
|
+
* Read-only. With `kind`, only repositories of that kind; an untyped
|
|
30
30
|
* (legacy, `kind: null`) repository appears in the unfiltered listing
|
|
31
31
|
* only.
|
|
32
32
|
*/
|
|
@@ -20,15 +20,15 @@ export type ReposUpdateMutationError = errors.RepoError | SDKError | ResponseVal
|
|
|
20
20
|
*
|
|
21
21
|
* @remarks
|
|
22
22
|
* Applies a label-only update (name/description/kind); org owner/admin
|
|
23
|
-
* only. The repository id is stable, so a rename
|
|
24
|
-
*
|
|
23
|
+
* only. The repository id is stable, so a rename touches no contents.
|
|
24
|
+
* Omitted fields are left unchanged.
|
|
25
25
|
*
|
|
26
26
|
* `kind` is the ONE way a repository's kind changes after creation (the
|
|
27
27
|
* protocol planes never change it): it types a legacy `kind: null`
|
|
28
28
|
* repository and corrects a wrong kind. `repo`, `model` and `dataset`
|
|
29
29
|
* convert freely and any repository may become `image`; a repository
|
|
30
30
|
* whose container images are still named by a tag can be given no
|
|
31
|
-
* other kind — leaving `image`, or typing a legacy `null`
|
|
31
|
+
* other kind — leaving `image`, or typing a legacy `null` repository as
|
|
32
32
|
* anything else, is refused with `409 kind_has_content` (list and
|
|
33
33
|
* delete the tags through this API first). A switch away from `image`
|
|
34
34
|
* collects every image no tag reaches before it is judged, so an image
|
|
@@ -11,15 +11,15 @@ import { useSDKContext } from "./_context.js";
|
|
|
11
11
|
*
|
|
12
12
|
* @remarks
|
|
13
13
|
* Applies a label-only update (name/description/kind); org owner/admin
|
|
14
|
-
* only. The repository id is stable, so a rename
|
|
15
|
-
*
|
|
14
|
+
* only. The repository id is stable, so a rename touches no contents.
|
|
15
|
+
* Omitted fields are left unchanged.
|
|
16
16
|
*
|
|
17
17
|
* `kind` is the ONE way a repository's kind changes after creation (the
|
|
18
18
|
* protocol planes never change it): it types a legacy `kind: null`
|
|
19
19
|
* repository and corrects a wrong kind. `repo`, `model` and `dataset`
|
|
20
20
|
* convert freely and any repository may become `image`; a repository
|
|
21
21
|
* whose container images are still named by a tag can be given no
|
|
22
|
-
* other kind — leaving `image`, or typing a legacy `null`
|
|
22
|
+
* other kind — leaving `image`, or typing a legacy `null` repository as
|
|
23
23
|
* anything else, is refused with `409 kind_has_content` (list and
|
|
24
24
|
* delete the tags through this API first). A switch away from `image`
|
|
25
25
|
* collects every image no tag reaches before it is judged, so an image
|
package/dist/esm/sdk/repos.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export declare class Repos extends ClientSDK {
|
|
|
10
10
|
*
|
|
11
11
|
* @remarks
|
|
12
12
|
* Returns every repository in the caller's org (org owner/admin only).
|
|
13
|
-
*
|
|
13
|
+
* Read-only. With `kind`, only repositories of that kind; an untyped
|
|
14
14
|
* (legacy, `kind: null`) repository appears in the unfiltered listing
|
|
15
15
|
* only.
|
|
16
16
|
*/
|
|
@@ -19,19 +19,19 @@ export declare class Repos extends ClientSDK {
|
|
|
19
19
|
* Create a repository
|
|
20
20
|
*
|
|
21
21
|
* @remarks
|
|
22
|
-
* Provisions a repository (org owner/admin only)
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
22
|
+
* Provisions a repository (org owner/admin only); a failed provision is
|
|
23
|
+
* rolled back best-effort (see the `502`). The repository belongs to the
|
|
24
|
+
* caller's org. `kind` says what it will hold and defaults to `repo` (a
|
|
25
|
+
* plain git repository); it decides which protocol planes answer for the
|
|
26
|
+
* name (see the `Repo` schema).
|
|
27
27
|
*/
|
|
28
28
|
create(request: operations.CreateRepoRequest, options?: RequestOptions): Promise<components.Repo>;
|
|
29
29
|
/**
|
|
30
30
|
* Delete a repository
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* Removes a repository; org owner/admin only. The
|
|
34
|
-
* authoritative; the
|
|
33
|
+
* Removes a repository; org owner/admin only. The deletion is
|
|
34
|
+
* authoritative; the contents are cleaned up best-effort.
|
|
35
35
|
*/
|
|
36
36
|
delete(request: operations.DeleteRepoRequest, options?: RequestOptions): Promise<void>;
|
|
37
37
|
/**
|
|
@@ -47,15 +47,15 @@ export declare class Repos extends ClientSDK {
|
|
|
47
47
|
*
|
|
48
48
|
* @remarks
|
|
49
49
|
* Applies a label-only update (name/description/kind); org owner/admin
|
|
50
|
-
* only. The repository id is stable, so a rename
|
|
51
|
-
*
|
|
50
|
+
* only. The repository id is stable, so a rename touches no contents.
|
|
51
|
+
* Omitted fields are left unchanged.
|
|
52
52
|
*
|
|
53
53
|
* `kind` is the ONE way a repository's kind changes after creation (the
|
|
54
54
|
* protocol planes never change it): it types a legacy `kind: null`
|
|
55
55
|
* repository and corrects a wrong kind. `repo`, `model` and `dataset`
|
|
56
56
|
* convert freely and any repository may become `image`; a repository
|
|
57
57
|
* whose container images are still named by a tag can be given no
|
|
58
|
-
* other kind — leaving `image`, or typing a legacy `null`
|
|
58
|
+
* other kind — leaving `image`, or typing a legacy `null` repository as
|
|
59
59
|
* anything else, is refused with `409 kind_has_content` (list and
|
|
60
60
|
* delete the tags through this API first). A switch away from `image`
|
|
61
61
|
* collects every image no tag reaches before it is judged, so an image
|
package/dist/esm/sdk/repos.js
CHANGED
|
@@ -18,7 +18,7 @@ export class Repos extends ClientSDK {
|
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
20
|
* Returns every repository in the caller's org (org owner/admin only).
|
|
21
|
-
*
|
|
21
|
+
* Read-only. With `kind`, only repositories of that kind; an untyped
|
|
22
22
|
* (legacy, `kind: null`) repository appears in the unfiltered listing
|
|
23
23
|
* only.
|
|
24
24
|
*/
|
|
@@ -29,11 +29,11 @@ export class Repos extends ClientSDK {
|
|
|
29
29
|
* Create a repository
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Provisions a repository (org owner/admin only)
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
32
|
+
* Provisions a repository (org owner/admin only); a failed provision is
|
|
33
|
+
* rolled back best-effort (see the `502`). The repository belongs to the
|
|
34
|
+
* caller's org. `kind` says what it will hold and defaults to `repo` (a
|
|
35
|
+
* plain git repository); it decides which protocol planes answer for the
|
|
36
|
+
* name (see the `Repo` schema).
|
|
37
37
|
*/
|
|
38
38
|
async create(request, options) {
|
|
39
39
|
return unwrapAsync(reposCreate(this, request, options));
|
|
@@ -42,8 +42,8 @@ export class Repos extends ClientSDK {
|
|
|
42
42
|
* Delete a repository
|
|
43
43
|
*
|
|
44
44
|
* @remarks
|
|
45
|
-
* Removes a repository; org owner/admin only. The
|
|
46
|
-
* authoritative; the
|
|
45
|
+
* Removes a repository; org owner/admin only. The deletion is
|
|
46
|
+
* authoritative; the contents are cleaned up best-effort.
|
|
47
47
|
*/
|
|
48
48
|
async delete(request, options) {
|
|
49
49
|
return unwrapAsync(reposDelete(this, request, options));
|
|
@@ -63,15 +63,15 @@ export class Repos extends ClientSDK {
|
|
|
63
63
|
*
|
|
64
64
|
* @remarks
|
|
65
65
|
* Applies a label-only update (name/description/kind); org owner/admin
|
|
66
|
-
* only. The repository id is stable, so a rename
|
|
67
|
-
*
|
|
66
|
+
* only. The repository id is stable, so a rename touches no contents.
|
|
67
|
+
* Omitted fields are left unchanged.
|
|
68
68
|
*
|
|
69
69
|
* `kind` is the ONE way a repository's kind changes after creation (the
|
|
70
70
|
* protocol planes never change it): it types a legacy `kind: null`
|
|
71
71
|
* repository and corrects a wrong kind. `repo`, `model` and `dataset`
|
|
72
72
|
* convert freely and any repository may become `image`; a repository
|
|
73
73
|
* whose container images are still named by a tag can be given no
|
|
74
|
-
* other kind — leaving `image`, or typing a legacy `null`
|
|
74
|
+
* other kind — leaving `image`, or typing a legacy `null` repository as
|
|
75
75
|
* anything else, is refused with `409 kind_has_content` (list and
|
|
76
76
|
* delete the tags through this API first). A switch away from `image`
|
|
77
77
|
* collects every image no tag reaches before it is judged, so an image
|
package/jsr.json
CHANGED
package/package.json
CHANGED
package/src/funcs/reposCreate.ts
CHANGED
|
@@ -31,11 +31,11 @@ import { Result } from "../types/fp.js";
|
|
|
31
31
|
* Create a repository
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
|
-
* Provisions a repository (org owner/admin only)
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
34
|
+
* Provisions a repository (org owner/admin only); a failed provision is
|
|
35
|
+
* rolled back best-effort (see the `502`). The repository belongs to the
|
|
36
|
+
* caller's org. `kind` says what it will hold and defaults to `repo` (a
|
|
37
|
+
* plain git repository); it decides which protocol planes answer for the
|
|
38
|
+
* name (see the `Repo` schema).
|
|
39
39
|
*
|
|
40
40
|
* If set, this operation will use {@link Security.bearerAuth} from the global security.
|
|
41
41
|
*/
|
package/src/funcs/reposDelete.ts
CHANGED
|
@@ -31,8 +31,8 @@ import { Result } from "../types/fp.js";
|
|
|
31
31
|
* Delete a repository
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
|
-
* Removes a repository; org owner/admin only. The
|
|
35
|
-
* authoritative; the
|
|
34
|
+
* Removes a repository; org owner/admin only. The deletion is
|
|
35
|
+
* authoritative; the contents are cleaned up best-effort.
|
|
36
36
|
*
|
|
37
37
|
* If set, this operation will use {@link Security.bearerAuth} from the global security.
|
|
38
38
|
*/
|
package/src/funcs/reposList.ts
CHANGED
|
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
|
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
33
|
* Returns every repository in the caller's org (org owner/admin only).
|
|
34
|
-
*
|
|
34
|
+
* Read-only. With `kind`, only repositories of that kind; an untyped
|
|
35
35
|
* (legacy, `kind: null`) repository appears in the unfiltered listing
|
|
36
36
|
* only.
|
|
37
37
|
*
|
package/src/funcs/reposUpdate.ts
CHANGED
|
@@ -32,15 +32,15 @@ import { Result } from "../types/fp.js";
|
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
34
|
* Applies a label-only update (name/description/kind); org owner/admin
|
|
35
|
-
* only. The repository id is stable, so a rename
|
|
36
|
-
*
|
|
35
|
+
* only. The repository id is stable, so a rename touches no contents.
|
|
36
|
+
* Omitted fields are left unchanged.
|
|
37
37
|
*
|
|
38
38
|
* `kind` is the ONE way a repository's kind changes after creation (the
|
|
39
39
|
* protocol planes never change it): it types a legacy `kind: null`
|
|
40
40
|
* repository and corrects a wrong kind. `repo`, `model` and `dataset`
|
|
41
41
|
* convert freely and any repository may become `image`; a repository
|
|
42
42
|
* whose container images are still named by a tag can be given no
|
|
43
|
-
* other kind — leaving `image`, or typing a legacy `null`
|
|
43
|
+
* other kind — leaving `image`, or typing a legacy `null` repository as
|
|
44
44
|
* anything else, is refused with `409 kind_has_content` (list and
|
|
45
45
|
* delete the tags through this API first). A switch away from `image`
|
|
46
46
|
* collects every image no tag reaches before it is judged, so an image
|
package/src/lib/config.ts
CHANGED
|
@@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
65
65
|
export const SDK_METADATA = {
|
|
66
66
|
language: "typescript",
|
|
67
67
|
openapiDocVersion: "1.1.0",
|
|
68
|
-
sdkVersion: "0.54.
|
|
68
|
+
sdkVersion: "0.54.72",
|
|
69
69
|
genVersion: "2.943.0",
|
|
70
|
-
userAgent: "speakeasy-sdk/typescript 0.54.
|
|
70
|
+
userAgent: "speakeasy-sdk/typescript 0.54.72 2.943.0 1.1.0 @meetkai/mka1",
|
|
71
71
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -14,11 +14,11 @@ export const tool$reposCreate: ToolDefinition<typeof args> = {
|
|
|
14
14
|
name: "repos-create",
|
|
15
15
|
description: `Create a repository
|
|
16
16
|
|
|
17
|
-
Provisions a repository (org owner/admin only)
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
Provisions a repository (org owner/admin only); a failed provision is
|
|
18
|
+
rolled back best-effort (see the \`502\`). The repository belongs to the
|
|
19
|
+
caller's org. \`kind\` says what it will hold and defaults to \`repo\` (a
|
|
20
|
+
plain git repository); it decides which protocol planes answer for the
|
|
21
|
+
name (see the \`Repo\` schema).
|
|
22
22
|
`,
|
|
23
23
|
args,
|
|
24
24
|
tool: async (client, args, ctx) => {
|
|
@@ -14,8 +14,8 @@ export const tool$reposDelete: ToolDefinition<typeof args> = {
|
|
|
14
14
|
name: "repos-delete",
|
|
15
15
|
description: `Delete a repository
|
|
16
16
|
|
|
17
|
-
Removes a repository; org owner/admin only. The
|
|
18
|
-
authoritative; the
|
|
17
|
+
Removes a repository; org owner/admin only. The deletion is
|
|
18
|
+
authoritative; the contents are cleaned up best-effort.
|
|
19
19
|
`,
|
|
20
20
|
args,
|
|
21
21
|
tool: async (client, args, ctx) => {
|
|
@@ -15,7 +15,7 @@ export const tool$reposList: ToolDefinition<typeof args> = {
|
|
|
15
15
|
description: `List the caller's org's repositories
|
|
16
16
|
|
|
17
17
|
Returns every repository in the caller's org (org owner/admin only).
|
|
18
|
-
|
|
18
|
+
Read-only. With \`kind\`, only repositories of that kind; an untyped
|
|
19
19
|
(legacy, \`kind: null\`) repository appears in the unfiltered listing
|
|
20
20
|
only.
|
|
21
21
|
`,
|
|
@@ -15,15 +15,15 @@ export const tool$reposUpdate: ToolDefinition<typeof args> = {
|
|
|
15
15
|
description: `Update a repository's labels
|
|
16
16
|
|
|
17
17
|
Applies a label-only update (name/description/kind); org owner/admin
|
|
18
|
-
only. The repository id is stable, so a rename
|
|
19
|
-
|
|
18
|
+
only. The repository id is stable, so a rename touches no contents.
|
|
19
|
+
Omitted fields are left unchanged.
|
|
20
20
|
|
|
21
21
|
\`kind\` is the ONE way a repository's kind changes after creation (the
|
|
22
22
|
protocol planes never change it): it types a legacy \`kind: null\`
|
|
23
23
|
repository and corrects a wrong kind. \`repo\`, \`model\` and \`dataset\`
|
|
24
24
|
convert freely and any repository may become \`image\`; a repository
|
|
25
25
|
whose container images are still named by a tag can be given no
|
|
26
|
-
other kind — leaving \`image\`, or typing a legacy \`null\`
|
|
26
|
+
other kind — leaving \`image\`, or typing a legacy \`null\` repository as
|
|
27
27
|
anything else, is refused with \`409 kind_has_content\` (list and
|
|
28
28
|
delete the tags through this API first). A switch away from \`image\`
|
|
29
29
|
collects every image no tag reaches before it is judged, so an image
|
|
@@ -22,7 +22,7 @@ export type Repo = {
|
|
|
22
22
|
* (the API, `git push`, the HF client, the OCI registry). It is the
|
|
23
23
|
* same id the platform session and mk-authentication's members
|
|
24
24
|
* directory use, so a name is one directory lookup away. `null`
|
|
25
|
-
* for a
|
|
25
|
+
* for a repository that records no user id; never an empty string.
|
|
26
26
|
*/
|
|
27
27
|
creator: string | null;
|
|
28
28
|
description: string;
|
|
@@ -50,11 +50,11 @@ export type ReposCreateMutationError =
|
|
|
50
50
|
* Create a repository
|
|
51
51
|
*
|
|
52
52
|
* @remarks
|
|
53
|
-
* Provisions a repository (org owner/admin only)
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
53
|
+
* Provisions a repository (org owner/admin only); a failed provision is
|
|
54
|
+
* rolled back best-effort (see the `502`). The repository belongs to the
|
|
55
|
+
* caller's org. `kind` says what it will hold and defaults to `repo` (a
|
|
56
|
+
* plain git repository); it decides which protocol planes answer for the
|
|
57
|
+
* name (see the `Repo` schema).
|
|
58
58
|
*/
|
|
59
59
|
export function useReposCreateMutation(
|
|
60
60
|
options?: MutationHookOptions<
|
|
@@ -49,8 +49,8 @@ export type ReposDeleteMutationError =
|
|
|
49
49
|
* Delete a repository
|
|
50
50
|
*
|
|
51
51
|
* @remarks
|
|
52
|
-
* Removes a repository; org owner/admin only. The
|
|
53
|
-
* authoritative; the
|
|
52
|
+
* Removes a repository; org owner/admin only. The deletion is
|
|
53
|
+
* authoritative; the contents are cleaned up best-effort.
|
|
54
54
|
*/
|
|
55
55
|
export function useReposDeleteMutation(
|
|
56
56
|
options?: MutationHookOptions<
|
|
@@ -58,7 +58,7 @@ export type ReposListQueryError =
|
|
|
58
58
|
*
|
|
59
59
|
* @remarks
|
|
60
60
|
* Returns every repository in the caller's org (org owner/admin only).
|
|
61
|
-
*
|
|
61
|
+
* Read-only. With `kind`, only repositories of that kind; an untyped
|
|
62
62
|
* (legacy, `kind: null`) repository appears in the unfiltered listing
|
|
63
63
|
* only.
|
|
64
64
|
*/
|
|
@@ -82,7 +82,7 @@ export function useReposList(
|
|
|
82
82
|
*
|
|
83
83
|
* @remarks
|
|
84
84
|
* Returns every repository in the caller's org (org owner/admin only).
|
|
85
|
-
*
|
|
85
|
+
* Read-only. With `kind`, only repositories of that kind; an untyped
|
|
86
86
|
* (legacy, `kind: null`) repository appears in the unfiltered listing
|
|
87
87
|
* only.
|
|
88
88
|
*/
|
|
@@ -51,15 +51,15 @@ export type ReposUpdateMutationError =
|
|
|
51
51
|
*
|
|
52
52
|
* @remarks
|
|
53
53
|
* Applies a label-only update (name/description/kind); org owner/admin
|
|
54
|
-
* only. The repository id is stable, so a rename
|
|
55
|
-
*
|
|
54
|
+
* only. The repository id is stable, so a rename touches no contents.
|
|
55
|
+
* Omitted fields are left unchanged.
|
|
56
56
|
*
|
|
57
57
|
* `kind` is the ONE way a repository's kind changes after creation (the
|
|
58
58
|
* protocol planes never change it): it types a legacy `kind: null`
|
|
59
59
|
* repository and corrects a wrong kind. `repo`, `model` and `dataset`
|
|
60
60
|
* convert freely and any repository may become `image`; a repository
|
|
61
61
|
* whose container images are still named by a tag can be given no
|
|
62
|
-
* other kind — leaving `image`, or typing a legacy `null`
|
|
62
|
+
* other kind — leaving `image`, or typing a legacy `null` repository as
|
|
63
63
|
* anything else, is refused with `409 kind_has_content` (list and
|
|
64
64
|
* delete the tags through this API first). A switch away from `image`
|
|
65
65
|
* collects every image no tag reaches before it is judged, so an image
|