@taktoria/sdk 0.2.5 → 0.3.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/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/mcpConnections/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/mcpConnections/client/Client.js +2 -2
- package/dist/cjs/api/resources/mcpConnections/types/McpConnectionSettings.d.ts +3 -0
- package/dist/cjs/api/resources/mcpConnections/types/McpServer.d.ts +19 -0
- package/dist/cjs/api/resources/mcpConnections/types/McpServer.js +3 -0
- package/dist/cjs/api/resources/mcpConnections/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/mcpConnections/types/index.js +1 -0
- package/dist/cjs/serialization/resources/mcpConnections/types/McpConnectionSettings.d.ts +2 -0
- package/dist/cjs/serialization/resources/mcpConnections/types/McpConnectionSettings.js +2 -0
- package/dist/cjs/serialization/resources/mcpConnections/types/McpServer.d.ts +12 -0
- package/dist/cjs/serialization/resources/mcpConnections/types/McpServer.js +44 -0
- package/dist/cjs/serialization/resources/mcpConnections/types/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/mcpConnections/types/index.js +1 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/mcpConnections/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/mcpConnections/client/Client.mjs +2 -2
- package/dist/esm/api/resources/mcpConnections/types/McpConnectionSettings.d.mts +3 -0
- package/dist/esm/api/resources/mcpConnections/types/McpServer.d.mts +19 -0
- package/dist/esm/api/resources/mcpConnections/types/McpServer.mjs +2 -0
- package/dist/esm/api/resources/mcpConnections/types/index.d.mts +1 -0
- package/dist/esm/api/resources/mcpConnections/types/index.mjs +1 -0
- package/dist/esm/serialization/resources/mcpConnections/types/McpConnectionSettings.d.mts +2 -0
- package/dist/esm/serialization/resources/mcpConnections/types/McpConnectionSettings.mjs +2 -0
- package/dist/esm/serialization/resources/mcpConnections/types/McpServer.d.mts +12 -0
- package/dist/esm/serialization/resources/mcpConnections/types/McpServer.mjs +8 -0
- package/dist/esm/serialization/resources/mcpConnections/types/index.d.mts +1 -0
- package/dist/esm/serialization/resources/mcpConnections/types/index.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +2 -2
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "@taktoria/sdk",
|
|
46
|
-
"X-Fern-SDK-Version": "0.
|
|
47
|
-
"User-Agent": "@taktoria/sdk/0.
|
|
46
|
+
"X-Fern-SDK-Version": "0.3.0",
|
|
47
|
+
"User-Agent": "@taktoria/sdk/0.3.0",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -55,8 +55,8 @@ export declare class McpConnectionsClient {
|
|
|
55
55
|
revoke(connectionId: string, requestOptions?: McpConnectionsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
56
56
|
private __revoke;
|
|
57
57
|
/**
|
|
58
|
-
* Whether the workspace allows AI assistants to connect through MCP
|
|
59
|
-
* Requires `mcpConnections:read`; a session must be a
|
|
58
|
+
* Whether the workspace allows AI assistants to connect through MCP,
|
|
59
|
+
* and where each app's server is. Requires `mcpConnections:read`; a session must be a
|
|
60
60
|
* workspace admin's (`403 admin_required`), as the settings page is.
|
|
61
61
|
*
|
|
62
62
|
* @param {McpConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -242,8 +242,8 @@ class McpConnectionsClient {
|
|
|
242
242
|
});
|
|
243
243
|
}
|
|
244
244
|
/**
|
|
245
|
-
* Whether the workspace allows AI assistants to connect through MCP
|
|
246
|
-
* Requires `mcpConnections:read`; a session must be a
|
|
245
|
+
* Whether the workspace allows AI assistants to connect through MCP,
|
|
246
|
+
* and where each app's server is. Requires `mcpConnections:read`; a session must be a
|
|
247
247
|
* workspace admin's (`403 admin_required`), as the settings page is.
|
|
248
248
|
*
|
|
249
249
|
* @param {McpConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type * as Taktoria from "../../../index.js";
|
|
1
2
|
export interface McpConnectionSettings {
|
|
2
3
|
/**
|
|
3
4
|
* **Allow MCP connections**, in Settings → MCP connections. Off, every
|
|
@@ -6,4 +7,6 @@ export interface McpConnectionSettings {
|
|
|
6
7
|
* when it is turned back on. On by default.
|
|
7
8
|
*/
|
|
8
9
|
allowMcpConnections: boolean;
|
|
10
|
+
/** Every app's MCP server, at the workspace's address and the general one. */
|
|
11
|
+
servers: Taktoria.McpServer[];
|
|
9
12
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One app's MCP server, at two addresses: the workspace's own, and the
|
|
3
|
+
* app's general one, which names no workspace, so the person picks one
|
|
4
|
+
* when connecting. See [Server URLs](/ai-assistants/mcp-servers#server-urls).
|
|
5
|
+
*/
|
|
6
|
+
export interface McpServer {
|
|
7
|
+
/** The app's slug, `launchcal`, `okrhub`, `dory`, `golinks` or `memegen`. */
|
|
8
|
+
app: string;
|
|
9
|
+
/** The app's name, `LaunchCal`. */
|
|
10
|
+
name: string;
|
|
11
|
+
/** This workspace's server, `https://www.taktoria.com/mcp/acme/launchcal`. */
|
|
12
|
+
url: string;
|
|
13
|
+
/**
|
|
14
|
+
* The app's general server, `https://www.taktoria.com/mcp/launchcal`,
|
|
15
|
+
* for any workspace: a connection made there belongs to the workspace
|
|
16
|
+
* picked on the consent page.
|
|
17
|
+
*/
|
|
18
|
+
generalUrl: string;
|
|
19
|
+
}
|
|
@@ -19,4 +19,5 @@ __exportStar(require("./McpConnectionClient.js"), exports);
|
|
|
19
19
|
__exportStar(require("./McpConnectionPage.js"), exports);
|
|
20
20
|
__exportStar(require("./McpConnectionPerson.js"), exports);
|
|
21
21
|
__exportStar(require("./McpConnectionSettings.js"), exports);
|
|
22
|
+
__exportStar(require("./McpServer.js"), exports);
|
|
22
23
|
__exportStar(require("./UpdateMcpConnectionSettingsRequest.js"), exports);
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type * as Taktoria from "../../../../api/index.js";
|
|
2
2
|
import * as core from "../../../../core/index.js";
|
|
3
3
|
import type * as serializers from "../../../index.js";
|
|
4
|
+
import { McpServer } from "./McpServer.js";
|
|
4
5
|
export declare const McpConnectionSettings: core.serialization.ObjectSchema<serializers.McpConnectionSettings.Raw, Taktoria.McpConnectionSettings>;
|
|
5
6
|
export declare namespace McpConnectionSettings {
|
|
6
7
|
interface Raw {
|
|
7
8
|
allowMcpConnections: boolean;
|
|
9
|
+
servers: McpServer.Raw[];
|
|
8
10
|
}
|
|
9
11
|
}
|
|
@@ -36,6 +36,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.McpConnectionSettings = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
const McpServer_js_1 = require("./McpServer.js");
|
|
39
40
|
exports.McpConnectionSettings = core.serialization.object({
|
|
40
41
|
allowMcpConnections: core.serialization.boolean(),
|
|
42
|
+
servers: core.serialization.list(McpServer_js_1.McpServer),
|
|
41
43
|
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as Taktoria from "../../../../api/index.js";
|
|
2
|
+
import * as core from "../../../../core/index.js";
|
|
3
|
+
import type * as serializers from "../../../index.js";
|
|
4
|
+
export declare const McpServer: core.serialization.ObjectSchema<serializers.McpServer.Raw, Taktoria.McpServer>;
|
|
5
|
+
export declare namespace McpServer {
|
|
6
|
+
interface Raw {
|
|
7
|
+
app: string;
|
|
8
|
+
name: string;
|
|
9
|
+
url: string;
|
|
10
|
+
generalUrl: string;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.McpServer = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
exports.McpServer = core.serialization.object({
|
|
40
|
+
app: core.serialization.string(),
|
|
41
|
+
name: core.serialization.string(),
|
|
42
|
+
url: core.serialization.string(),
|
|
43
|
+
generalUrl: core.serialization.string(),
|
|
44
|
+
});
|
|
@@ -19,4 +19,5 @@ __exportStar(require("./McpConnectionClient.js"), exports);
|
|
|
19
19
|
__exportStar(require("./McpConnectionPage.js"), exports);
|
|
20
20
|
__exportStar(require("./McpConnectionPerson.js"), exports);
|
|
21
21
|
__exportStar(require("./McpConnectionSettings.js"), exports);
|
|
22
|
+
__exportStar(require("./McpServer.js"), exports);
|
|
22
23
|
__exportStar(require("./UpdateMcpConnectionSettingsRequest.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.
|
|
1
|
+
export declare const SDK_VERSION = "0.3.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "@taktoria/sdk",
|
|
9
|
-
"X-Fern-SDK-Version": "0.
|
|
10
|
-
"User-Agent": "@taktoria/sdk/0.
|
|
9
|
+
"X-Fern-SDK-Version": "0.3.0",
|
|
10
|
+
"User-Agent": "@taktoria/sdk/0.3.0",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -55,8 +55,8 @@ export declare class McpConnectionsClient {
|
|
|
55
55
|
revoke(connectionId: string, requestOptions?: McpConnectionsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
56
56
|
private __revoke;
|
|
57
57
|
/**
|
|
58
|
-
* Whether the workspace allows AI assistants to connect through MCP
|
|
59
|
-
* Requires `mcpConnections:read`; a session must be a
|
|
58
|
+
* Whether the workspace allows AI assistants to connect through MCP,
|
|
59
|
+
* and where each app's server is. Requires `mcpConnections:read`; a session must be a
|
|
60
60
|
* workspace admin's (`403 admin_required`), as the settings page is.
|
|
61
61
|
*
|
|
62
62
|
* @param {McpConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -206,8 +206,8 @@ export class McpConnectionsClient {
|
|
|
206
206
|
});
|
|
207
207
|
}
|
|
208
208
|
/**
|
|
209
|
-
* Whether the workspace allows AI assistants to connect through MCP
|
|
210
|
-
* Requires `mcpConnections:read`; a session must be a
|
|
209
|
+
* Whether the workspace allows AI assistants to connect through MCP,
|
|
210
|
+
* and where each app's server is. Requires `mcpConnections:read`; a session must be a
|
|
211
211
|
* workspace admin's (`403 admin_required`), as the settings page is.
|
|
212
212
|
*
|
|
213
213
|
* @param {McpConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type * as Taktoria from "../../../index.mjs";
|
|
1
2
|
export interface McpConnectionSettings {
|
|
2
3
|
/**
|
|
3
4
|
* **Allow MCP connections**, in Settings → MCP connections. Off, every
|
|
@@ -6,4 +7,6 @@ export interface McpConnectionSettings {
|
|
|
6
7
|
* when it is turned back on. On by default.
|
|
7
8
|
*/
|
|
8
9
|
allowMcpConnections: boolean;
|
|
10
|
+
/** Every app's MCP server, at the workspace's address and the general one. */
|
|
11
|
+
servers: Taktoria.McpServer[];
|
|
9
12
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One app's MCP server, at two addresses: the workspace's own, and the
|
|
3
|
+
* app's general one, which names no workspace, so the person picks one
|
|
4
|
+
* when connecting. See [Server URLs](/ai-assistants/mcp-servers#server-urls).
|
|
5
|
+
*/
|
|
6
|
+
export interface McpServer {
|
|
7
|
+
/** The app's slug, `launchcal`, `okrhub`, `dory`, `golinks` or `memegen`. */
|
|
8
|
+
app: string;
|
|
9
|
+
/** The app's name, `LaunchCal`. */
|
|
10
|
+
name: string;
|
|
11
|
+
/** This workspace's server, `https://www.taktoria.com/mcp/acme/launchcal`. */
|
|
12
|
+
url: string;
|
|
13
|
+
/**
|
|
14
|
+
* The app's general server, `https://www.taktoria.com/mcp/launchcal`,
|
|
15
|
+
* for any workspace: a connection made there belongs to the workspace
|
|
16
|
+
* picked on the consent page.
|
|
17
|
+
*/
|
|
18
|
+
generalUrl: string;
|
|
19
|
+
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type * as Taktoria from "../../../../api/index.mjs";
|
|
2
2
|
import * as core from "../../../../core/index.mjs";
|
|
3
3
|
import type * as serializers from "../../../index.mjs";
|
|
4
|
+
import { McpServer } from "./McpServer.mjs";
|
|
4
5
|
export declare const McpConnectionSettings: core.serialization.ObjectSchema<serializers.McpConnectionSettings.Raw, Taktoria.McpConnectionSettings>;
|
|
5
6
|
export declare namespace McpConnectionSettings {
|
|
6
7
|
interface Raw {
|
|
7
8
|
allowMcpConnections: boolean;
|
|
9
|
+
servers: McpServer.Raw[];
|
|
8
10
|
}
|
|
9
11
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
import { McpServer } from "./McpServer.mjs";
|
|
3
4
|
export const McpConnectionSettings = core.serialization.object({
|
|
4
5
|
allowMcpConnections: core.serialization.boolean(),
|
|
6
|
+
servers: core.serialization.list(McpServer),
|
|
5
7
|
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as Taktoria from "../../../../api/index.mjs";
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../../../index.mjs";
|
|
4
|
+
export declare const McpServer: core.serialization.ObjectSchema<serializers.McpServer.Raw, Taktoria.McpServer>;
|
|
5
|
+
export declare namespace McpServer {
|
|
6
|
+
interface Raw {
|
|
7
|
+
app: string;
|
|
8
|
+
name: string;
|
|
9
|
+
url: string;
|
|
10
|
+
generalUrl: string;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
export const McpServer = core.serialization.object({
|
|
4
|
+
app: core.serialization.string(),
|
|
5
|
+
name: core.serialization.string(),
|
|
6
|
+
url: core.serialization.string(),
|
|
7
|
+
generalUrl: core.serialization.string(),
|
|
8
|
+
});
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.
|
|
1
|
+
export declare const SDK_VERSION = "0.3.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.
|
|
1
|
+
export const SDK_VERSION = "0.3.0";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -6229,8 +6229,8 @@ await client.mcpConnections.revoke("mcp_7f3a");
|
|
|
6229
6229
|
<dl>
|
|
6230
6230
|
<dd>
|
|
6231
6231
|
|
|
6232
|
-
Whether the workspace allows AI assistants to connect through MCP
|
|
6233
|
-
Requires `mcpConnections:read`; a session must be a
|
|
6232
|
+
Whether the workspace allows AI assistants to connect through MCP,
|
|
6233
|
+
and where each app's server is. Requires `mcpConnections:read`; a session must be a
|
|
6234
6234
|
workspace admin's (`403 admin_required`), as the settings page is.
|
|
6235
6235
|
</dd>
|
|
6236
6236
|
</dl>
|