@taktoria/sdk 0.2.4 → 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/insights/types/CreateInsightRequest.d.ts +1 -0
- package/dist/cjs/api/resources/insights/types/Insight.d.ts +1 -0
- package/dist/cjs/api/resources/launches/types/CreateLaunchRequest.d.ts +2 -1
- package/dist/cjs/api/resources/launches/types/Launch.d.ts +2 -1
- package/dist/cjs/api/resources/launches/types/UpdateLaunchRequest.d.ts +2 -1
- package/dist/cjs/api/resources/links/types/CreateLaunchLinkRequest.d.ts +1 -1
- package/dist/cjs/api/resources/links/types/LaunchLink.d.ts +1 -1
- 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/api/resources/steps/client/Client.d.ts +24 -0
- package/dist/cjs/api/resources/steps/client/Client.js +82 -0
- package/dist/cjs/api/resources/steps/types/CreateStepRequest.d.ts +2 -1
- package/dist/cjs/api/resources/steps/types/LaunchStep.d.ts +2 -1
- package/dist/cjs/api/resources/steps/types/MissingSteps.d.ts +10 -0
- package/dist/cjs/api/resources/steps/types/MissingSteps.js +3 -0
- package/dist/cjs/api/resources/steps/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/steps/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/serialization/resources/steps/types/MissingSteps.d.ts +11 -0
- package/dist/cjs/serialization/resources/steps/types/MissingSteps.js +43 -0
- package/dist/cjs/serialization/resources/steps/types/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/steps/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/insights/types/CreateInsightRequest.d.mts +1 -0
- package/dist/esm/api/resources/insights/types/Insight.d.mts +1 -0
- package/dist/esm/api/resources/launches/types/CreateLaunchRequest.d.mts +2 -1
- package/dist/esm/api/resources/launches/types/Launch.d.mts +2 -1
- package/dist/esm/api/resources/launches/types/UpdateLaunchRequest.d.mts +2 -1
- package/dist/esm/api/resources/links/types/CreateLaunchLinkRequest.d.mts +1 -1
- package/dist/esm/api/resources/links/types/LaunchLink.d.mts +1 -1
- 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/api/resources/steps/client/Client.d.mts +24 -0
- package/dist/esm/api/resources/steps/client/Client.mjs +82 -0
- package/dist/esm/api/resources/steps/types/CreateStepRequest.d.mts +2 -1
- package/dist/esm/api/resources/steps/types/LaunchStep.d.mts +2 -1
- package/dist/esm/api/resources/steps/types/MissingSteps.d.mts +10 -0
- package/dist/esm/api/resources/steps/types/MissingSteps.mjs +2 -0
- package/dist/esm/api/resources/steps/types/index.d.mts +1 -0
- package/dist/esm/api/resources/steps/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/serialization/resources/steps/types/MissingSteps.d.mts +11 -0
- package/dist/esm/serialization/resources/steps/types/MissingSteps.mjs +7 -0
- package/dist/esm/serialization/resources/steps/types/index.d.mts +1 -0
- package/dist/esm/serialization/resources/steps/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 +85 -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);
|
|
@@ -7,6 +7,7 @@ export interface Insight {
|
|
|
7
7
|
launchId: string;
|
|
8
8
|
/** The launch it was learned from, by id and name. */
|
|
9
9
|
launch?: Taktoria.InsightLaunch;
|
|
10
|
+
/** What was learned, in Markdown, a few sentences or a list. */
|
|
10
11
|
learning: string;
|
|
11
12
|
sentiment: Taktoria.Sentiment;
|
|
12
13
|
recordedAt: Date;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type * as Taktoria from "../../../index.js";
|
|
2
2
|
export interface CreateLaunchRequest {
|
|
3
3
|
name: string;
|
|
4
|
+
/** What the launch is, in Markdown, as its page shows it. */
|
|
4
5
|
description?: string;
|
|
5
|
-
/** The customers this launch is for, or who asked for it
|
|
6
|
+
/** The customers this launch is for, or who asked for it, in Markdown; null clears it. */
|
|
6
7
|
keyCustomers?: string;
|
|
7
8
|
status?: Taktoria.LaunchStatus;
|
|
8
9
|
/**
|
|
@@ -6,8 +6,9 @@ export interface Launch {
|
|
|
6
6
|
id: string;
|
|
7
7
|
organizationId: string;
|
|
8
8
|
name: string;
|
|
9
|
+
/** What the launch is, in Markdown, as its page shows it. */
|
|
9
10
|
description?: string;
|
|
10
|
-
/** The customers this launch is for, or who asked for it
|
|
11
|
+
/** The customers this launch is for, or who asked for it, in Markdown. */
|
|
11
12
|
keyCustomers?: string;
|
|
12
13
|
status: Taktoria.LaunchStatus;
|
|
13
14
|
/** Everybody who owns the launch. They hear about its decisions. */
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type * as Taktoria from "../../../index.js";
|
|
2
2
|
export interface UpdateLaunchRequest {
|
|
3
3
|
name?: string;
|
|
4
|
+
/** What the launch is, in Markdown, as its page shows it. */
|
|
4
5
|
description?: string;
|
|
5
|
-
/** The customers this launch is for, or who asked for it
|
|
6
|
+
/** The customers this launch is for, or who asked for it, in Markdown; null clears it. */
|
|
6
7
|
keyCustomers?: string;
|
|
7
8
|
status?: Taktoria.LaunchStatus;
|
|
8
9
|
/**
|
|
@@ -3,6 +3,6 @@ export interface CreateLaunchLinkRequest {
|
|
|
3
3
|
title: string;
|
|
4
4
|
/** http or https; a bare domain, such as `docs.acme.com/spec`, gets `https://` in front. */
|
|
5
5
|
url: string;
|
|
6
|
-
/** Up to 1,000 characters. */
|
|
6
|
+
/** Up to 1,000 characters, in Markdown. */
|
|
7
7
|
description?: string;
|
|
8
8
|
}
|
|
@@ -9,7 +9,7 @@ export interface LaunchLink {
|
|
|
9
9
|
title: string;
|
|
10
10
|
/** Always http or https. */
|
|
11
11
|
url: string;
|
|
12
|
-
/** A line on what it is. */
|
|
12
|
+
/** A line on what it is, in Markdown. */
|
|
13
13
|
description?: string;
|
|
14
14
|
/** Whoever added it; null when the key that added it belongs to nobody. */
|
|
15
15
|
createdBy?: Taktoria.User;
|
|
@@ -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);
|
|
@@ -27,6 +27,11 @@ export declare class StepsClient {
|
|
|
27
27
|
listForLaunch(launchId: string, requestOptions?: StepsClient.RequestOptions): core.HttpResponsePromise<Taktoria.StepList>;
|
|
28
28
|
private __listForLaunch;
|
|
29
29
|
/**
|
|
30
|
+
* Add a step of the launch's own, beside those from its template, as
|
|
31
|
+
* **Add a step** on its Steps tab does. It goes after the launch's
|
|
32
|
+
* other steps. A reviewer named on it is told, once the launch is
|
|
33
|
+
* published if it is a draft.
|
|
34
|
+
*
|
|
30
35
|
* @param {string} launchId
|
|
31
36
|
* @param {Taktoria.CreateStepRequest} request
|
|
32
37
|
* @param {StepsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -46,6 +51,25 @@ export declare class StepsClient {
|
|
|
46
51
|
*/
|
|
47
52
|
createForLaunch(launchId: string, request: Taktoria.CreateStepRequest, requestOptions?: StepsClient.RequestOptions): core.HttpResponsePromise<Taktoria.LaunchStep>;
|
|
48
53
|
private __createForLaunch;
|
|
54
|
+
/**
|
|
55
|
+
* What "Add launch steps" (`POST /launches/{launchId}/steps/generate`)
|
|
56
|
+
* would add now: the steps of the launch's template that it does not
|
|
57
|
+
* have yet, by the same rule. Empty when there is nothing to add, which
|
|
58
|
+
* is when the app hides its Add launch steps button.
|
|
59
|
+
*
|
|
60
|
+
* @param {string} launchId
|
|
61
|
+
* @param {StepsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link Taktoria.NotFoundError}
|
|
64
|
+
* @throws {@link Taktoria.TooManyRequestsError}
|
|
65
|
+
* @throws {@link errors.TaktoriaError}
|
|
66
|
+
* @throws {@link errors.TaktoriaTimeoutError}
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* await client.steps.listMissingForLaunch("launchId")
|
|
70
|
+
*/
|
|
71
|
+
listMissingForLaunch(launchId: string, requestOptions?: StepsClient.RequestOptions): core.HttpResponsePromise<Taktoria.MissingSteps>;
|
|
72
|
+
private __listMissingForLaunch;
|
|
49
73
|
/**
|
|
50
74
|
* "Add launch steps" copies the steps of the launch's own launch template
|
|
51
75
|
* (`launchTemplateId`, the workspace's default when it has none) onto
|
|
@@ -132,6 +132,11 @@ class StepsClient {
|
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
134
|
/**
|
|
135
|
+
* Add a step of the launch's own, beside those from its template, as
|
|
136
|
+
* **Add a step** on its Steps tab does. It goes after the launch's
|
|
137
|
+
* other steps. A reviewer named on it is told, once the launch is
|
|
138
|
+
* published if it is a draft.
|
|
139
|
+
*
|
|
135
140
|
* @param {string} launchId
|
|
136
141
|
* @param {Taktoria.CreateStepRequest} request
|
|
137
142
|
* @param {StepsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -231,6 +236,83 @@ class StepsClient {
|
|
|
231
236
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/launches/{launchId}/steps");
|
|
232
237
|
});
|
|
233
238
|
}
|
|
239
|
+
/**
|
|
240
|
+
* What "Add launch steps" (`POST /launches/{launchId}/steps/generate`)
|
|
241
|
+
* would add now: the steps of the launch's template that it does not
|
|
242
|
+
* have yet, by the same rule. Empty when there is nothing to add, which
|
|
243
|
+
* is when the app hides its Add launch steps button.
|
|
244
|
+
*
|
|
245
|
+
* @param {string} launchId
|
|
246
|
+
* @param {StepsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
247
|
+
*
|
|
248
|
+
* @throws {@link Taktoria.NotFoundError}
|
|
249
|
+
* @throws {@link Taktoria.TooManyRequestsError}
|
|
250
|
+
* @throws {@link errors.TaktoriaError}
|
|
251
|
+
* @throws {@link errors.TaktoriaTimeoutError}
|
|
252
|
+
*
|
|
253
|
+
* @example
|
|
254
|
+
* await client.steps.listMissingForLaunch("launchId")
|
|
255
|
+
*/
|
|
256
|
+
listMissingForLaunch(launchId, requestOptions) {
|
|
257
|
+
return core.HttpResponsePromise.fromPromise(this.__listMissingForLaunch(launchId, requestOptions));
|
|
258
|
+
}
|
|
259
|
+
__listMissingForLaunch(launchId, requestOptions) {
|
|
260
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
261
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
262
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
263
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
264
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
265
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `launches/${core.url.encodePathParam(launchId, errors.TaktoriaError)}/steps/missing`),
|
|
266
|
+
method: "GET",
|
|
267
|
+
headers: _headers,
|
|
268
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
269
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
270
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
271
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
272
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
273
|
+
logging: this._options.logging,
|
|
274
|
+
});
|
|
275
|
+
if (_response.ok) {
|
|
276
|
+
return {
|
|
277
|
+
data: serializers.MissingSteps.parseOrThrow(_response.body, {
|
|
278
|
+
unrecognizedObjectKeys: "passthrough",
|
|
279
|
+
allowUnrecognizedUnionMembers: true,
|
|
280
|
+
allowUnrecognizedEnumValues: true,
|
|
281
|
+
skipValidation: true,
|
|
282
|
+
breadcrumbsPrefix: ["response"],
|
|
283
|
+
}),
|
|
284
|
+
rawResponse: _response.rawResponse,
|
|
285
|
+
};
|
|
286
|
+
}
|
|
287
|
+
if (_response.error.reason === "status-code") {
|
|
288
|
+
switch (_response.error.statusCode) {
|
|
289
|
+
case 404:
|
|
290
|
+
throw new Taktoria.NotFoundError(serializers.ErrorBody.parseOrThrow(_response.error.body, {
|
|
291
|
+
unrecognizedObjectKeys: "passthrough",
|
|
292
|
+
allowUnrecognizedUnionMembers: true,
|
|
293
|
+
allowUnrecognizedEnumValues: true,
|
|
294
|
+
skipValidation: true,
|
|
295
|
+
breadcrumbsPrefix: ["response"],
|
|
296
|
+
}), _response.rawResponse);
|
|
297
|
+
case 429:
|
|
298
|
+
throw new Taktoria.TooManyRequestsError(serializers.ErrorBody.parseOrThrow(_response.error.body, {
|
|
299
|
+
unrecognizedObjectKeys: "passthrough",
|
|
300
|
+
allowUnrecognizedUnionMembers: true,
|
|
301
|
+
allowUnrecognizedEnumValues: true,
|
|
302
|
+
skipValidation: true,
|
|
303
|
+
breadcrumbsPrefix: ["response"],
|
|
304
|
+
}), _response.rawResponse);
|
|
305
|
+
default:
|
|
306
|
+
throw new errors.TaktoriaError({
|
|
307
|
+
statusCode: _response.error.statusCode,
|
|
308
|
+
body: _response.error.body,
|
|
309
|
+
rawResponse: _response.rawResponse,
|
|
310
|
+
});
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/launches/{launchId}/steps/missing");
|
|
314
|
+
});
|
|
315
|
+
}
|
|
234
316
|
/**
|
|
235
317
|
* "Add launch steps" copies the steps of the launch's own launch template
|
|
236
318
|
* (`launchTemplateId`, the workspace's default when it has none) onto
|
|
@@ -9,7 +9,8 @@ export interface CreateStepRequest {
|
|
|
9
9
|
startDate?: string;
|
|
10
10
|
dueDate?: string;
|
|
11
11
|
link?: string;
|
|
12
|
+
/** In Markdown. */
|
|
12
13
|
notes?: string;
|
|
13
|
-
/** Up to 1,000 characters, and only with a decided `status`. */
|
|
14
|
+
/** Up to 1,000 characters, in Markdown, and only with a decided `status`. */
|
|
14
15
|
decisionReason?: string;
|
|
15
16
|
}
|
|
@@ -19,10 +19,11 @@ export interface LaunchStep {
|
|
|
19
19
|
dueDate?: Date;
|
|
20
20
|
/** Link to the supporting doc for this review. */
|
|
21
21
|
link?: string;
|
|
22
|
+
/** Notes on the step, in Markdown, shown under its name on the launch. */
|
|
22
23
|
notes?: string;
|
|
23
24
|
decidedAt?: Date;
|
|
24
25
|
/**
|
|
25
|
-
* Why the reviewer decided as they did, as they wrote it. Only a
|
|
26
|
+
* Why the reviewer decided as they did, as they wrote it, in Markdown. Only a
|
|
26
27
|
* decided step (`APPROVED`, `DENIED`, `EXCEPTION` or `NOT_APPLICABLE`)
|
|
27
28
|
* has one; a new decision replaces it.
|
|
28
29
|
*/
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Taktoria from "../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* What "Add launch steps" would add now.
|
|
4
|
+
*/
|
|
5
|
+
export interface MissingSteps {
|
|
6
|
+
/** The launch template they come from, the workspace's default when the launch has none; null when there is no template. */
|
|
7
|
+
launchTemplateId?: string;
|
|
8
|
+
/** The template's steps the launch does not have yet, in the template's order. Empty when there is nothing to add. */
|
|
9
|
+
data: Taktoria.StepTemplate[];
|
|
10
|
+
}
|
|
@@ -2,6 +2,7 @@ export * from "./CreateStepRequest.js";
|
|
|
2
2
|
export * from "./DecideStepRequest.js";
|
|
3
3
|
export * from "./GeneratedSteps.js";
|
|
4
4
|
export * from "./LaunchStep.js";
|
|
5
|
+
export * from "./MissingSteps.js";
|
|
5
6
|
export * from "./NudgeReason.js";
|
|
6
7
|
export * from "./NudgeResponse.js";
|
|
7
8
|
export * from "./SetDecisionReasonRequest.js";
|
|
@@ -18,6 +18,7 @@ __exportStar(require("./CreateStepRequest.js"), exports);
|
|
|
18
18
|
__exportStar(require("./DecideStepRequest.js"), exports);
|
|
19
19
|
__exportStar(require("./GeneratedSteps.js"), exports);
|
|
20
20
|
__exportStar(require("./LaunchStep.js"), exports);
|
|
21
|
+
__exportStar(require("./MissingSteps.js"), exports);
|
|
21
22
|
__exportStar(require("./NudgeReason.js"), exports);
|
|
22
23
|
__exportStar(require("./NudgeResponse.js"), exports);
|
|
23
24
|
__exportStar(require("./SetDecisionReasonRequest.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);
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
import { StepTemplate } from "../../process/types/StepTemplate.js";
|
|
5
|
+
export declare const MissingSteps: core.serialization.ObjectSchema<serializers.MissingSteps.Raw, Taktoria.MissingSteps>;
|
|
6
|
+
export declare namespace MissingSteps {
|
|
7
|
+
interface Raw {
|
|
8
|
+
launchTemplateId?: string | null;
|
|
9
|
+
data: StepTemplate.Raw[];
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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.MissingSteps = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
const StepTemplate_js_1 = require("../../process/types/StepTemplate.js");
|
|
40
|
+
exports.MissingSteps = core.serialization.object({
|
|
41
|
+
launchTemplateId: core.serialization.string().optional(),
|
|
42
|
+
data: core.serialization.list(StepTemplate_js_1.StepTemplate),
|
|
43
|
+
});
|
|
@@ -2,6 +2,7 @@ export * from "./CreateStepRequest.js";
|
|
|
2
2
|
export * from "./DecideStepRequest.js";
|
|
3
3
|
export * from "./GeneratedSteps.js";
|
|
4
4
|
export * from "./LaunchStep.js";
|
|
5
|
+
export * from "./MissingSteps.js";
|
|
5
6
|
export * from "./NudgeReason.js";
|
|
6
7
|
export * from "./NudgeResponse.js";
|
|
7
8
|
export * from "./SetDecisionReasonRequest.js";
|
|
@@ -18,6 +18,7 @@ __exportStar(require("./CreateStepRequest.js"), exports);
|
|
|
18
18
|
__exportStar(require("./DecideStepRequest.js"), exports);
|
|
19
19
|
__exportStar(require("./GeneratedSteps.js"), exports);
|
|
20
20
|
__exportStar(require("./LaunchStep.js"), exports);
|
|
21
|
+
__exportStar(require("./MissingSteps.js"), exports);
|
|
21
22
|
__exportStar(require("./NudgeReason.js"), exports);
|
|
22
23
|
__exportStar(require("./NudgeResponse.js"), exports);
|
|
23
24
|
__exportStar(require("./SetDecisionReasonRequest.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);
|
|
@@ -7,6 +7,7 @@ export interface Insight {
|
|
|
7
7
|
launchId: string;
|
|
8
8
|
/** The launch it was learned from, by id and name. */
|
|
9
9
|
launch?: Taktoria.InsightLaunch;
|
|
10
|
+
/** What was learned, in Markdown, a few sentences or a list. */
|
|
10
11
|
learning: string;
|
|
11
12
|
sentiment: Taktoria.Sentiment;
|
|
12
13
|
recordedAt: Date;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type * as Taktoria from "../../../index.mjs";
|
|
2
2
|
export interface CreateLaunchRequest {
|
|
3
3
|
name: string;
|
|
4
|
+
/** What the launch is, in Markdown, as its page shows it. */
|
|
4
5
|
description?: string;
|
|
5
|
-
/** The customers this launch is for, or who asked for it
|
|
6
|
+
/** The customers this launch is for, or who asked for it, in Markdown; null clears it. */
|
|
6
7
|
keyCustomers?: string;
|
|
7
8
|
status?: Taktoria.LaunchStatus;
|
|
8
9
|
/**
|
|
@@ -6,8 +6,9 @@ export interface Launch {
|
|
|
6
6
|
id: string;
|
|
7
7
|
organizationId: string;
|
|
8
8
|
name: string;
|
|
9
|
+
/** What the launch is, in Markdown, as its page shows it. */
|
|
9
10
|
description?: string;
|
|
10
|
-
/** The customers this launch is for, or who asked for it
|
|
11
|
+
/** The customers this launch is for, or who asked for it, in Markdown. */
|
|
11
12
|
keyCustomers?: string;
|
|
12
13
|
status: Taktoria.LaunchStatus;
|
|
13
14
|
/** Everybody who owns the launch. They hear about its decisions. */
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type * as Taktoria from "../../../index.mjs";
|
|
2
2
|
export interface UpdateLaunchRequest {
|
|
3
3
|
name?: string;
|
|
4
|
+
/** What the launch is, in Markdown, as its page shows it. */
|
|
4
5
|
description?: string;
|
|
5
|
-
/** The customers this launch is for, or who asked for it
|
|
6
|
+
/** The customers this launch is for, or who asked for it, in Markdown; null clears it. */
|
|
6
7
|
keyCustomers?: string;
|
|
7
8
|
status?: Taktoria.LaunchStatus;
|
|
8
9
|
/**
|
|
@@ -3,6 +3,6 @@ export interface CreateLaunchLinkRequest {
|
|
|
3
3
|
title: string;
|
|
4
4
|
/** http or https; a bare domain, such as `docs.acme.com/spec`, gets `https://` in front. */
|
|
5
5
|
url: string;
|
|
6
|
-
/** Up to 1,000 characters. */
|
|
6
|
+
/** Up to 1,000 characters, in Markdown. */
|
|
7
7
|
description?: string;
|
|
8
8
|
}
|
|
@@ -9,7 +9,7 @@ export interface LaunchLink {
|
|
|
9
9
|
title: string;
|
|
10
10
|
/** Always http or https. */
|
|
11
11
|
url: string;
|
|
12
|
-
/** A line on what it is. */
|
|
12
|
+
/** A line on what it is, in Markdown. */
|
|
13
13
|
description?: string;
|
|
14
14
|
/** Whoever added it; null when the key that added it belongs to nobody. */
|
|
15
15
|
createdBy?: Taktoria.User;
|
|
@@ -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
|
+
}
|
|
@@ -27,6 +27,11 @@ export declare class StepsClient {
|
|
|
27
27
|
listForLaunch(launchId: string, requestOptions?: StepsClient.RequestOptions): core.HttpResponsePromise<Taktoria.StepList>;
|
|
28
28
|
private __listForLaunch;
|
|
29
29
|
/**
|
|
30
|
+
* Add a step of the launch's own, beside those from its template, as
|
|
31
|
+
* **Add a step** on its Steps tab does. It goes after the launch's
|
|
32
|
+
* other steps. A reviewer named on it is told, once the launch is
|
|
33
|
+
* published if it is a draft.
|
|
34
|
+
*
|
|
30
35
|
* @param {string} launchId
|
|
31
36
|
* @param {Taktoria.CreateStepRequest} request
|
|
32
37
|
* @param {StepsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -46,6 +51,25 @@ export declare class StepsClient {
|
|
|
46
51
|
*/
|
|
47
52
|
createForLaunch(launchId: string, request: Taktoria.CreateStepRequest, requestOptions?: StepsClient.RequestOptions): core.HttpResponsePromise<Taktoria.LaunchStep>;
|
|
48
53
|
private __createForLaunch;
|
|
54
|
+
/**
|
|
55
|
+
* What "Add launch steps" (`POST /launches/{launchId}/steps/generate`)
|
|
56
|
+
* would add now: the steps of the launch's template that it does not
|
|
57
|
+
* have yet, by the same rule. Empty when there is nothing to add, which
|
|
58
|
+
* is when the app hides its Add launch steps button.
|
|
59
|
+
*
|
|
60
|
+
* @param {string} launchId
|
|
61
|
+
* @param {StepsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link Taktoria.NotFoundError}
|
|
64
|
+
* @throws {@link Taktoria.TooManyRequestsError}
|
|
65
|
+
* @throws {@link errors.TaktoriaError}
|
|
66
|
+
* @throws {@link errors.TaktoriaTimeoutError}
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* await client.steps.listMissingForLaunch("launchId")
|
|
70
|
+
*/
|
|
71
|
+
listMissingForLaunch(launchId: string, requestOptions?: StepsClient.RequestOptions): core.HttpResponsePromise<Taktoria.MissingSteps>;
|
|
72
|
+
private __listMissingForLaunch;
|
|
49
73
|
/**
|
|
50
74
|
* "Add launch steps" copies the steps of the launch's own launch template
|
|
51
75
|
* (`launchTemplateId`, the workspace's default when it has none) onto
|
|
@@ -96,6 +96,11 @@ export class StepsClient {
|
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
98
|
/**
|
|
99
|
+
* Add a step of the launch's own, beside those from its template, as
|
|
100
|
+
* **Add a step** on its Steps tab does. It goes after the launch's
|
|
101
|
+
* other steps. A reviewer named on it is told, once the launch is
|
|
102
|
+
* published if it is a draft.
|
|
103
|
+
*
|
|
99
104
|
* @param {string} launchId
|
|
100
105
|
* @param {Taktoria.CreateStepRequest} request
|
|
101
106
|
* @param {StepsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -195,6 +200,83 @@ export class StepsClient {
|
|
|
195
200
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/launches/{launchId}/steps");
|
|
196
201
|
});
|
|
197
202
|
}
|
|
203
|
+
/**
|
|
204
|
+
* What "Add launch steps" (`POST /launches/{launchId}/steps/generate`)
|
|
205
|
+
* would add now: the steps of the launch's template that it does not
|
|
206
|
+
* have yet, by the same rule. Empty when there is nothing to add, which
|
|
207
|
+
* is when the app hides its Add launch steps button.
|
|
208
|
+
*
|
|
209
|
+
* @param {string} launchId
|
|
210
|
+
* @param {StepsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
211
|
+
*
|
|
212
|
+
* @throws {@link Taktoria.NotFoundError}
|
|
213
|
+
* @throws {@link Taktoria.TooManyRequestsError}
|
|
214
|
+
* @throws {@link errors.TaktoriaError}
|
|
215
|
+
* @throws {@link errors.TaktoriaTimeoutError}
|
|
216
|
+
*
|
|
217
|
+
* @example
|
|
218
|
+
* await client.steps.listMissingForLaunch("launchId")
|
|
219
|
+
*/
|
|
220
|
+
listMissingForLaunch(launchId, requestOptions) {
|
|
221
|
+
return core.HttpResponsePromise.fromPromise(this.__listMissingForLaunch(launchId, requestOptions));
|
|
222
|
+
}
|
|
223
|
+
__listMissingForLaunch(launchId, requestOptions) {
|
|
224
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
225
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
226
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
227
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
228
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
229
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `launches/${core.url.encodePathParam(launchId, errors.TaktoriaError)}/steps/missing`),
|
|
230
|
+
method: "GET",
|
|
231
|
+
headers: _headers,
|
|
232
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
233
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
234
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
235
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
236
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
237
|
+
logging: this._options.logging,
|
|
238
|
+
});
|
|
239
|
+
if (_response.ok) {
|
|
240
|
+
return {
|
|
241
|
+
data: serializers.MissingSteps.parseOrThrow(_response.body, {
|
|
242
|
+
unrecognizedObjectKeys: "passthrough",
|
|
243
|
+
allowUnrecognizedUnionMembers: true,
|
|
244
|
+
allowUnrecognizedEnumValues: true,
|
|
245
|
+
skipValidation: true,
|
|
246
|
+
breadcrumbsPrefix: ["response"],
|
|
247
|
+
}),
|
|
248
|
+
rawResponse: _response.rawResponse,
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
if (_response.error.reason === "status-code") {
|
|
252
|
+
switch (_response.error.statusCode) {
|
|
253
|
+
case 404:
|
|
254
|
+
throw new Taktoria.NotFoundError(serializers.ErrorBody.parseOrThrow(_response.error.body, {
|
|
255
|
+
unrecognizedObjectKeys: "passthrough",
|
|
256
|
+
allowUnrecognizedUnionMembers: true,
|
|
257
|
+
allowUnrecognizedEnumValues: true,
|
|
258
|
+
skipValidation: true,
|
|
259
|
+
breadcrumbsPrefix: ["response"],
|
|
260
|
+
}), _response.rawResponse);
|
|
261
|
+
case 429:
|
|
262
|
+
throw new Taktoria.TooManyRequestsError(serializers.ErrorBody.parseOrThrow(_response.error.body, {
|
|
263
|
+
unrecognizedObjectKeys: "passthrough",
|
|
264
|
+
allowUnrecognizedUnionMembers: true,
|
|
265
|
+
allowUnrecognizedEnumValues: true,
|
|
266
|
+
skipValidation: true,
|
|
267
|
+
breadcrumbsPrefix: ["response"],
|
|
268
|
+
}), _response.rawResponse);
|
|
269
|
+
default:
|
|
270
|
+
throw new errors.TaktoriaError({
|
|
271
|
+
statusCode: _response.error.statusCode,
|
|
272
|
+
body: _response.error.body,
|
|
273
|
+
rawResponse: _response.rawResponse,
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/launches/{launchId}/steps/missing");
|
|
278
|
+
});
|
|
279
|
+
}
|
|
198
280
|
/**
|
|
199
281
|
* "Add launch steps" copies the steps of the launch's own launch template
|
|
200
282
|
* (`launchTemplateId`, the workspace's default when it has none) onto
|
|
@@ -9,7 +9,8 @@ export interface CreateStepRequest {
|
|
|
9
9
|
startDate?: string;
|
|
10
10
|
dueDate?: string;
|
|
11
11
|
link?: string;
|
|
12
|
+
/** In Markdown. */
|
|
12
13
|
notes?: string;
|
|
13
|
-
/** Up to 1,000 characters, and only with a decided `status`. */
|
|
14
|
+
/** Up to 1,000 characters, in Markdown, and only with a decided `status`. */
|
|
14
15
|
decisionReason?: string;
|
|
15
16
|
}
|
|
@@ -19,10 +19,11 @@ export interface LaunchStep {
|
|
|
19
19
|
dueDate?: Date;
|
|
20
20
|
/** Link to the supporting doc for this review. */
|
|
21
21
|
link?: string;
|
|
22
|
+
/** Notes on the step, in Markdown, shown under its name on the launch. */
|
|
22
23
|
notes?: string;
|
|
23
24
|
decidedAt?: Date;
|
|
24
25
|
/**
|
|
25
|
-
* Why the reviewer decided as they did, as they wrote it. Only a
|
|
26
|
+
* Why the reviewer decided as they did, as they wrote it, in Markdown. Only a
|
|
26
27
|
* decided step (`APPROVED`, `DENIED`, `EXCEPTION` or `NOT_APPLICABLE`)
|
|
27
28
|
* has one; a new decision replaces it.
|
|
28
29
|
*/
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Taktoria from "../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* What "Add launch steps" would add now.
|
|
4
|
+
*/
|
|
5
|
+
export interface MissingSteps {
|
|
6
|
+
/** The launch template they come from, the workspace's default when the launch has none; null when there is no template. */
|
|
7
|
+
launchTemplateId?: string;
|
|
8
|
+
/** The template's steps the launch does not have yet, in the template's order. Empty when there is nothing to add. */
|
|
9
|
+
data: Taktoria.StepTemplate[];
|
|
10
|
+
}
|
|
@@ -2,6 +2,7 @@ export * from "./CreateStepRequest.mjs";
|
|
|
2
2
|
export * from "./DecideStepRequest.mjs";
|
|
3
3
|
export * from "./GeneratedSteps.mjs";
|
|
4
4
|
export * from "./LaunchStep.mjs";
|
|
5
|
+
export * from "./MissingSteps.mjs";
|
|
5
6
|
export * from "./NudgeReason.mjs";
|
|
6
7
|
export * from "./NudgeResponse.mjs";
|
|
7
8
|
export * from "./SetDecisionReasonRequest.mjs";
|
|
@@ -2,6 +2,7 @@ export * from "./CreateStepRequest.mjs";
|
|
|
2
2
|
export * from "./DecideStepRequest.mjs";
|
|
3
3
|
export * from "./GeneratedSteps.mjs";
|
|
4
4
|
export * from "./LaunchStep.mjs";
|
|
5
|
+
export * from "./MissingSteps.mjs";
|
|
5
6
|
export * from "./NudgeReason.mjs";
|
|
6
7
|
export * from "./NudgeResponse.mjs";
|
|
7
8
|
export * from "./SetDecisionReasonRequest.mjs";
|
|
@@ -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
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
import { StepTemplate } from "../../process/types/StepTemplate.mjs";
|
|
5
|
+
export declare const MissingSteps: core.serialization.ObjectSchema<serializers.MissingSteps.Raw, Taktoria.MissingSteps>;
|
|
6
|
+
export declare namespace MissingSteps {
|
|
7
|
+
interface Raw {
|
|
8
|
+
launchTemplateId?: string | null;
|
|
9
|
+
data: StepTemplate.Raw[];
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
import { StepTemplate } from "../../process/types/StepTemplate.mjs";
|
|
4
|
+
export const MissingSteps = core.serialization.object({
|
|
5
|
+
launchTemplateId: core.serialization.string().optional(),
|
|
6
|
+
data: core.serialization.list(StepTemplate),
|
|
7
|
+
});
|
|
@@ -2,6 +2,7 @@ export * from "./CreateStepRequest.mjs";
|
|
|
2
2
|
export * from "./DecideStepRequest.mjs";
|
|
3
3
|
export * from "./GeneratedSteps.mjs";
|
|
4
4
|
export * from "./LaunchStep.mjs";
|
|
5
|
+
export * from "./MissingSteps.mjs";
|
|
5
6
|
export * from "./NudgeReason.mjs";
|
|
6
7
|
export * from "./NudgeResponse.mjs";
|
|
7
8
|
export * from "./SetDecisionReasonRequest.mjs";
|
|
@@ -2,6 +2,7 @@ export * from "./CreateStepRequest.mjs";
|
|
|
2
2
|
export * from "./DecideStepRequest.mjs";
|
|
3
3
|
export * from "./GeneratedSteps.mjs";
|
|
4
4
|
export * from "./LaunchStep.mjs";
|
|
5
|
+
export * from "./MissingSteps.mjs";
|
|
5
6
|
export * from "./NudgeReason.mjs";
|
|
6
7
|
export * from "./NudgeResponse.mjs";
|
|
7
8
|
export * from "./SetDecisionReasonRequest.mjs";
|
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>
|
|
@@ -12202,6 +12202,23 @@ await client.steps.listForLaunch("launchId");
|
|
|
12202
12202
|
<dl>
|
|
12203
12203
|
<dd>
|
|
12204
12204
|
|
|
12205
|
+
#### 📝 Description
|
|
12206
|
+
|
|
12207
|
+
<dl>
|
|
12208
|
+
<dd>
|
|
12209
|
+
|
|
12210
|
+
<dl>
|
|
12211
|
+
<dd>
|
|
12212
|
+
|
|
12213
|
+
Add a step of the launch's own, beside those from its template, as
|
|
12214
|
+
**Add a step** on its Steps tab does. It goes after the launch's
|
|
12215
|
+
other steps. A reviewer named on it is told, once the launch is
|
|
12216
|
+
published if it is a draft.
|
|
12217
|
+
</dd>
|
|
12218
|
+
</dl>
|
|
12219
|
+
</dd>
|
|
12220
|
+
</dl>
|
|
12221
|
+
|
|
12205
12222
|
#### 🔌 Usage
|
|
12206
12223
|
|
|
12207
12224
|
<dl>
|
|
@@ -12254,6 +12271,72 @@ await client.steps.createForLaunch("launchId", {
|
|
|
12254
12271
|
</dl>
|
|
12255
12272
|
|
|
12256
12273
|
|
|
12274
|
+
</dd>
|
|
12275
|
+
</dl>
|
|
12276
|
+
</details>
|
|
12277
|
+
|
|
12278
|
+
<details><summary><code>client.steps.<a href="/src/api/resources/steps/client/Client.ts">listMissingForLaunch</a>(launchId) -> Taktoria.MissingSteps</code></summary>
|
|
12279
|
+
<dl>
|
|
12280
|
+
<dd>
|
|
12281
|
+
|
|
12282
|
+
#### 📝 Description
|
|
12283
|
+
|
|
12284
|
+
<dl>
|
|
12285
|
+
<dd>
|
|
12286
|
+
|
|
12287
|
+
<dl>
|
|
12288
|
+
<dd>
|
|
12289
|
+
|
|
12290
|
+
What "Add launch steps" (`POST /launches/{launchId}/steps/generate`)
|
|
12291
|
+
would add now: the steps of the launch's template that it does not
|
|
12292
|
+
have yet, by the same rule. Empty when there is nothing to add, which
|
|
12293
|
+
is when the app hides its Add launch steps button.
|
|
12294
|
+
</dd>
|
|
12295
|
+
</dl>
|
|
12296
|
+
</dd>
|
|
12297
|
+
</dl>
|
|
12298
|
+
|
|
12299
|
+
#### 🔌 Usage
|
|
12300
|
+
|
|
12301
|
+
<dl>
|
|
12302
|
+
<dd>
|
|
12303
|
+
|
|
12304
|
+
<dl>
|
|
12305
|
+
<dd>
|
|
12306
|
+
|
|
12307
|
+
```typescript
|
|
12308
|
+
await client.steps.listMissingForLaunch("launchId");
|
|
12309
|
+
|
|
12310
|
+
```
|
|
12311
|
+
</dd>
|
|
12312
|
+
</dl>
|
|
12313
|
+
</dd>
|
|
12314
|
+
</dl>
|
|
12315
|
+
|
|
12316
|
+
#### ⚙️ Parameters
|
|
12317
|
+
|
|
12318
|
+
<dl>
|
|
12319
|
+
<dd>
|
|
12320
|
+
|
|
12321
|
+
<dl>
|
|
12322
|
+
<dd>
|
|
12323
|
+
|
|
12324
|
+
**launchId:** `string`
|
|
12325
|
+
|
|
12326
|
+
</dd>
|
|
12327
|
+
</dl>
|
|
12328
|
+
|
|
12329
|
+
<dl>
|
|
12330
|
+
<dd>
|
|
12331
|
+
|
|
12332
|
+
**requestOptions:** `StepsClient.RequestOptions`
|
|
12333
|
+
|
|
12334
|
+
</dd>
|
|
12335
|
+
</dl>
|
|
12336
|
+
</dd>
|
|
12337
|
+
</dl>
|
|
12338
|
+
|
|
12339
|
+
|
|
12257
12340
|
</dd>
|
|
12258
12341
|
</dl>
|
|
12259
12342
|
</details>
|