@ascendkit/cli 0.1.10
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/LICENSE +21 -0
- package/dist/api/client.d.ts +34 -0
- package/dist/api/client.js +155 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +1153 -0
- package/dist/commands/auth.d.ts +17 -0
- package/dist/commands/auth.js +29 -0
- package/dist/commands/content.d.ts +25 -0
- package/dist/commands/content.js +28 -0
- package/dist/commands/email.d.ts +37 -0
- package/dist/commands/email.js +39 -0
- package/dist/commands/journeys.d.ts +86 -0
- package/dist/commands/journeys.js +69 -0
- package/dist/commands/platform.d.ts +35 -0
- package/dist/commands/platform.js +517 -0
- package/dist/commands/surveys.d.ts +51 -0
- package/dist/commands/surveys.js +41 -0
- package/dist/commands/webhooks.d.ts +16 -0
- package/dist/commands/webhooks.js +28 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +29 -0
- package/dist/mcp.d.ts +2 -0
- package/dist/mcp.js +40 -0
- package/dist/tools/auth.d.ts +3 -0
- package/dist/tools/auth.js +75 -0
- package/dist/tools/content.d.ts +3 -0
- package/dist/tools/content.js +64 -0
- package/dist/tools/email.d.ts +3 -0
- package/dist/tools/email.js +57 -0
- package/dist/tools/journeys.d.ts +3 -0
- package/dist/tools/journeys.js +302 -0
- package/dist/tools/platform.d.ts +3 -0
- package/dist/tools/platform.js +63 -0
- package/dist/tools/surveys.d.ts +3 -0
- package/dist/tools/surveys.js +212 -0
- package/dist/tools/webhooks.d.ts +3 -0
- package/dist/tools/webhooks.js +56 -0
- package/dist/types.d.ts +96 -0
- package/dist/types.js +4 -0
- package/dist/utils/credentials.d.ts +27 -0
- package/dist/utils/credentials.js +90 -0
- package/dist/utils/duration.d.ts +16 -0
- package/dist/utils/duration.js +47 -0
- package/dist/utils/journey-format.d.ts +112 -0
- package/dist/utils/journey-format.js +200 -0
- package/dist/utils/survey-format.d.ts +60 -0
- package/dist/utils/survey-format.js +164 -0
- package/package.json +37 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AscendKitClient } from "../api/client.js";
|
|
2
|
+
export interface UpdateSettingsParams {
|
|
3
|
+
providers?: string[];
|
|
4
|
+
features?: {
|
|
5
|
+
emailVerification?: boolean;
|
|
6
|
+
waitlist?: boolean;
|
|
7
|
+
passwordReset?: boolean;
|
|
8
|
+
requireUsername?: boolean;
|
|
9
|
+
};
|
|
10
|
+
sessionDuration?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function getSettings(client: AscendKitClient): Promise<unknown>;
|
|
13
|
+
export declare function updateSettings(client: AscendKitClient, params: UpdateSettingsParams): Promise<unknown>;
|
|
14
|
+
export declare function updateProviders(client: AscendKitClient, providers: string[]): Promise<unknown>;
|
|
15
|
+
export declare function updateOAuthCredentials(client: AscendKitClient, provider: string, clientId: string, clientSecret: string, callbackUrl?: string): Promise<unknown>;
|
|
16
|
+
export declare function getOAuthSetupUrl(portalUrl: string, provider: string, publicKey?: string): string;
|
|
17
|
+
export declare function listUsers(client: AscendKitClient): Promise<unknown>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export async function getSettings(client) {
|
|
2
|
+
return client.get("/api/auth/settings");
|
|
3
|
+
}
|
|
4
|
+
export async function updateSettings(client, params) {
|
|
5
|
+
const body = {};
|
|
6
|
+
if (params.providers !== undefined)
|
|
7
|
+
body.providers = params.providers;
|
|
8
|
+
if (params.features !== undefined)
|
|
9
|
+
body.features = params.features;
|
|
10
|
+
if (params.sessionDuration !== undefined)
|
|
11
|
+
body.sessionDuration = params.sessionDuration;
|
|
12
|
+
return client.managedPut("/api/auth/settings", body);
|
|
13
|
+
}
|
|
14
|
+
export async function updateProviders(client, providers) {
|
|
15
|
+
return client.managedPut("/api/auth/settings/providers", { providers });
|
|
16
|
+
}
|
|
17
|
+
export async function updateOAuthCredentials(client, provider, clientId, clientSecret, callbackUrl) {
|
|
18
|
+
const body = { clientId, clientSecret };
|
|
19
|
+
if (callbackUrl)
|
|
20
|
+
body.callbackUrl = callbackUrl;
|
|
21
|
+
return client.managedPut(`/api/auth/settings/oauth/${provider}`, body);
|
|
22
|
+
}
|
|
23
|
+
export function getOAuthSetupUrl(portalUrl, provider, publicKey) {
|
|
24
|
+
const base = `${portalUrl}/settings/oauth/${provider}`;
|
|
25
|
+
return publicKey ? `${base}?pk=${encodeURIComponent(publicKey)}` : base;
|
|
26
|
+
}
|
|
27
|
+
export async function listUsers(client) {
|
|
28
|
+
return client.managedRequest("GET", "/api/users");
|
|
29
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AscendKitClient } from "../api/client.js";
|
|
2
|
+
export interface CreateTemplateParams {
|
|
3
|
+
name: string;
|
|
4
|
+
subject: string;
|
|
5
|
+
bodyHtml: string;
|
|
6
|
+
bodyText: string;
|
|
7
|
+
slug?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface UpdateTemplateParams {
|
|
11
|
+
subject?: string;
|
|
12
|
+
bodyHtml?: string;
|
|
13
|
+
bodyText?: string;
|
|
14
|
+
changeNote?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function createTemplate(client: AscendKitClient, params: CreateTemplateParams): Promise<unknown>;
|
|
17
|
+
export declare function listTemplates(client: AscendKitClient, params?: {
|
|
18
|
+
query?: string;
|
|
19
|
+
isSystem?: boolean;
|
|
20
|
+
}): Promise<unknown>;
|
|
21
|
+
export declare function getTemplate(client: AscendKitClient, templateId: string): Promise<unknown>;
|
|
22
|
+
export declare function updateTemplate(client: AscendKitClient, templateId: string, params: UpdateTemplateParams): Promise<unknown>;
|
|
23
|
+
export declare function deleteTemplate(client: AscendKitClient, templateId: string): Promise<unknown>;
|
|
24
|
+
export declare function listVersions(client: AscendKitClient, templateId: string): Promise<unknown>;
|
|
25
|
+
export declare function getVersion(client: AscendKitClient, templateId: string, versionNumber: number): Promise<unknown>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export async function createTemplate(client, params) {
|
|
2
|
+
return client.managedPost("/api/content/templates", params);
|
|
3
|
+
}
|
|
4
|
+
export async function listTemplates(client, params) {
|
|
5
|
+
const searchParams = new URLSearchParams();
|
|
6
|
+
if (params?.query)
|
|
7
|
+
searchParams.set("q", params.query);
|
|
8
|
+
if (params?.isSystem !== undefined)
|
|
9
|
+
searchParams.set("isSystem", String(params.isSystem));
|
|
10
|
+
const qs = searchParams.toString();
|
|
11
|
+
const path = qs ? `/api/content/templates?${qs}` : "/api/content/templates";
|
|
12
|
+
return client.get(path);
|
|
13
|
+
}
|
|
14
|
+
export async function getTemplate(client, templateId) {
|
|
15
|
+
return client.get(`/api/content/templates/${templateId}`);
|
|
16
|
+
}
|
|
17
|
+
export async function updateTemplate(client, templateId, params) {
|
|
18
|
+
return client.managedPut(`/api/content/templates/${templateId}`, params);
|
|
19
|
+
}
|
|
20
|
+
export async function deleteTemplate(client, templateId) {
|
|
21
|
+
return client.managedDelete(`/api/content/templates/${templateId}`);
|
|
22
|
+
}
|
|
23
|
+
export async function listVersions(client, templateId) {
|
|
24
|
+
return client.get(`/api/content/templates/${templateId}/versions`);
|
|
25
|
+
}
|
|
26
|
+
export async function getVersion(client, templateId, versionNumber) {
|
|
27
|
+
return client.get(`/api/content/templates/${templateId}/versions/${versionNumber}`);
|
|
28
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { AscendKitClient } from "../api/client.js";
|
|
2
|
+
export interface UpdateEmailSettingsParams {
|
|
3
|
+
fromEmail?: string;
|
|
4
|
+
fromName?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface DnsProviderInfo {
|
|
7
|
+
id?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
confidence?: string;
|
|
10
|
+
portalUrl?: string;
|
|
11
|
+
assistantSetupUrl?: string;
|
|
12
|
+
supportsOneClick?: boolean;
|
|
13
|
+
nameservers?: string[];
|
|
14
|
+
}
|
|
15
|
+
export interface EmailSettings {
|
|
16
|
+
fromEmail?: string;
|
|
17
|
+
fromName?: string;
|
|
18
|
+
domain?: string;
|
|
19
|
+
verificationStatus?: string;
|
|
20
|
+
dnsRecords?: Array<{
|
|
21
|
+
type: string;
|
|
22
|
+
name: string;
|
|
23
|
+
value: string;
|
|
24
|
+
}>;
|
|
25
|
+
dnsProvider?: DnsProviderInfo;
|
|
26
|
+
}
|
|
27
|
+
export declare function getSettings(client: AscendKitClient): Promise<EmailSettings>;
|
|
28
|
+
export declare function updateSettings(client: AscendKitClient, params: UpdateEmailSettingsParams): Promise<EmailSettings>;
|
|
29
|
+
export declare function setupDomain(client: AscendKitClient, domain: string): Promise<EmailSettings>;
|
|
30
|
+
export declare function checkDomainStatus(client: AscendKitClient): Promise<unknown>;
|
|
31
|
+
export declare function getDnsProvider(client: AscendKitClient, domain?: string): Promise<DnsProviderInfo>;
|
|
32
|
+
export declare function removeDomain(client: AscendKitClient): Promise<EmailSettings>;
|
|
33
|
+
export declare function useDefaultIdentity(client: AscendKitClient): Promise<EmailSettings>;
|
|
34
|
+
export declare function useCustomIdentity(client: AscendKitClient, domain: string, options?: {
|
|
35
|
+
fromEmail?: string;
|
|
36
|
+
fromName?: string;
|
|
37
|
+
}): Promise<EmailSettings>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export async function getSettings(client) {
|
|
2
|
+
return client.get("/api/email/settings");
|
|
3
|
+
}
|
|
4
|
+
export async function updateSettings(client, params) {
|
|
5
|
+
const body = {};
|
|
6
|
+
if (params.fromEmail !== undefined)
|
|
7
|
+
body.fromEmail = params.fromEmail;
|
|
8
|
+
if (params.fromName !== undefined)
|
|
9
|
+
body.fromName = params.fromName;
|
|
10
|
+
return client.managedPut("/api/email/settings", body);
|
|
11
|
+
}
|
|
12
|
+
export async function setupDomain(client, domain) {
|
|
13
|
+
return client.managedPost("/api/email/settings/setup-domain", { domain });
|
|
14
|
+
}
|
|
15
|
+
export async function checkDomainStatus(client) {
|
|
16
|
+
return client.get("/api/email/settings/domain-status");
|
|
17
|
+
}
|
|
18
|
+
export async function getDnsProvider(client, domain) {
|
|
19
|
+
const suffix = domain ? `?domain=${encodeURIComponent(domain)}` : "";
|
|
20
|
+
return client.get(`/api/email/settings/dns-provider${suffix}`);
|
|
21
|
+
}
|
|
22
|
+
export async function removeDomain(client) {
|
|
23
|
+
return client.managedDelete("/api/email/settings/domain");
|
|
24
|
+
}
|
|
25
|
+
export async function useDefaultIdentity(client) {
|
|
26
|
+
await removeDomain(client);
|
|
27
|
+
return updateSettings(client, { fromEmail: "", fromName: "" });
|
|
28
|
+
}
|
|
29
|
+
export async function useCustomIdentity(client, domain, options) {
|
|
30
|
+
const configured = await setupDomain(client, domain);
|
|
31
|
+
if (options?.fromEmail !== undefined || options?.fromName !== undefined) {
|
|
32
|
+
await updateSettings(client, {
|
|
33
|
+
fromEmail: options.fromEmail,
|
|
34
|
+
fromName: options.fromName,
|
|
35
|
+
});
|
|
36
|
+
return getSettings(client);
|
|
37
|
+
}
|
|
38
|
+
return configured;
|
|
39
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { AscendKitClient } from "../api/client.js";
|
|
2
|
+
export interface JourneyCreateParams {
|
|
3
|
+
name: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
entryEvent: string;
|
|
6
|
+
entryNode: string;
|
|
7
|
+
entryConditions?: Record<string, unknown>;
|
|
8
|
+
reEntryPolicy?: "skip" | "restart";
|
|
9
|
+
nodes?: Record<string, unknown>;
|
|
10
|
+
transitions?: Array<Record<string, unknown>>;
|
|
11
|
+
}
|
|
12
|
+
export interface JourneyUpdateParams {
|
|
13
|
+
name?: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
entryEvent?: string;
|
|
16
|
+
entryNode?: string;
|
|
17
|
+
entryConditions?: Record<string, unknown>;
|
|
18
|
+
reEntryPolicy?: "skip" | "restart";
|
|
19
|
+
nodes?: Record<string, unknown>;
|
|
20
|
+
transitions?: Array<Record<string, unknown>>;
|
|
21
|
+
}
|
|
22
|
+
export declare function createJourney(client: AscendKitClient, params: JourneyCreateParams): Promise<unknown>;
|
|
23
|
+
export declare function listJourneys(client: AscendKitClient, opts?: {
|
|
24
|
+
status?: string;
|
|
25
|
+
limit?: number;
|
|
26
|
+
offset?: number;
|
|
27
|
+
}): Promise<unknown>;
|
|
28
|
+
export declare function getJourney(client: AscendKitClient, journeyId: string): Promise<unknown>;
|
|
29
|
+
export declare function updateJourney(client: AscendKitClient, journeyId: string, params: JourneyUpdateParams): Promise<unknown>;
|
|
30
|
+
export declare function deleteJourney(client: AscendKitClient, journeyId: string): Promise<unknown>;
|
|
31
|
+
export declare function activateJourney(client: AscendKitClient, journeyId: string): Promise<unknown>;
|
|
32
|
+
export declare function pauseJourney(client: AscendKitClient, journeyId: string): Promise<unknown>;
|
|
33
|
+
export declare function archiveJourney(client: AscendKitClient, journeyId: string): Promise<unknown>;
|
|
34
|
+
export declare function getJourneyAnalytics(client: AscendKitClient, journeyId: string): Promise<unknown>;
|
|
35
|
+
export declare function getJourneyVisualization(client: AscendKitClient, journeyId: string): Promise<unknown>;
|
|
36
|
+
export interface AddNodeParams {
|
|
37
|
+
name: string;
|
|
38
|
+
action?: {
|
|
39
|
+
type: string;
|
|
40
|
+
templateSlug?: string;
|
|
41
|
+
surveySlug?: string;
|
|
42
|
+
tagName?: string;
|
|
43
|
+
stageName?: string;
|
|
44
|
+
};
|
|
45
|
+
terminal?: boolean;
|
|
46
|
+
}
|
|
47
|
+
export interface EditNodeParams {
|
|
48
|
+
action?: {
|
|
49
|
+
type: string;
|
|
50
|
+
templateSlug?: string;
|
|
51
|
+
surveySlug?: string;
|
|
52
|
+
tagName?: string;
|
|
53
|
+
stageName?: string;
|
|
54
|
+
};
|
|
55
|
+
terminal?: boolean;
|
|
56
|
+
}
|
|
57
|
+
export declare function listNodes(client: AscendKitClient, journeyId: string): Promise<unknown>;
|
|
58
|
+
export declare function addNode(client: AscendKitClient, journeyId: string, params: AddNodeParams): Promise<unknown>;
|
|
59
|
+
export declare function editNode(client: AscendKitClient, journeyId: string, nodeName: string, params: EditNodeParams): Promise<unknown>;
|
|
60
|
+
export declare function removeNode(client: AscendKitClient, journeyId: string, nodeName: string): Promise<unknown>;
|
|
61
|
+
export interface AddTransitionParams {
|
|
62
|
+
from: string;
|
|
63
|
+
to: string;
|
|
64
|
+
trigger: {
|
|
65
|
+
type: string;
|
|
66
|
+
event?: string;
|
|
67
|
+
delay?: string;
|
|
68
|
+
};
|
|
69
|
+
priority?: number;
|
|
70
|
+
name?: string;
|
|
71
|
+
}
|
|
72
|
+
export interface EditTransitionParams {
|
|
73
|
+
trigger?: {
|
|
74
|
+
type: string;
|
|
75
|
+
event?: string;
|
|
76
|
+
delay?: string;
|
|
77
|
+
};
|
|
78
|
+
priority?: number;
|
|
79
|
+
}
|
|
80
|
+
export declare function listTransitions(client: AscendKitClient, journeyId: string, opts?: {
|
|
81
|
+
from_node?: string;
|
|
82
|
+
to_node?: string;
|
|
83
|
+
}): Promise<unknown>;
|
|
84
|
+
export declare function addTransition(client: AscendKitClient, journeyId: string, params: AddTransitionParams): Promise<unknown>;
|
|
85
|
+
export declare function editTransition(client: AscendKitClient, journeyId: string, transitionName: string, params: EditTransitionParams): Promise<unknown>;
|
|
86
|
+
export declare function removeTransition(client: AscendKitClient, journeyId: string, transitionName: string): Promise<unknown>;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
const BASE = "/api/v1/journeys";
|
|
2
|
+
export async function createJourney(client, params) {
|
|
3
|
+
return client.managedPost(BASE, params);
|
|
4
|
+
}
|
|
5
|
+
export async function listJourneys(client, opts) {
|
|
6
|
+
const qs = new URLSearchParams();
|
|
7
|
+
if (opts?.status)
|
|
8
|
+
qs.set("status", opts.status);
|
|
9
|
+
if (opts?.limit != null)
|
|
10
|
+
qs.set("limit", String(opts.limit));
|
|
11
|
+
if (opts?.offset != null)
|
|
12
|
+
qs.set("offset", String(opts.offset));
|
|
13
|
+
const query = qs.toString();
|
|
14
|
+
return client.get(`${BASE}${query ? `?${query}` : ""}`);
|
|
15
|
+
}
|
|
16
|
+
export async function getJourney(client, journeyId) {
|
|
17
|
+
return client.get(`${BASE}/${journeyId}`);
|
|
18
|
+
}
|
|
19
|
+
export async function updateJourney(client, journeyId, params) {
|
|
20
|
+
return client.managedRequest("PATCH", `${BASE}/${journeyId}`, params);
|
|
21
|
+
}
|
|
22
|
+
export async function deleteJourney(client, journeyId) {
|
|
23
|
+
return client.managedDelete(`${BASE}/${journeyId}`);
|
|
24
|
+
}
|
|
25
|
+
export async function activateJourney(client, journeyId) {
|
|
26
|
+
return client.managedPost(`${BASE}/${journeyId}/activate`);
|
|
27
|
+
}
|
|
28
|
+
export async function pauseJourney(client, journeyId) {
|
|
29
|
+
return client.managedPost(`${BASE}/${journeyId}/pause`);
|
|
30
|
+
}
|
|
31
|
+
export async function archiveJourney(client, journeyId) {
|
|
32
|
+
return client.managedPost(`${BASE}/${journeyId}/archive`);
|
|
33
|
+
}
|
|
34
|
+
export async function getJourneyAnalytics(client, journeyId) {
|
|
35
|
+
return client.get(`${BASE}/${journeyId}/analytics`);
|
|
36
|
+
}
|
|
37
|
+
export async function getJourneyVisualization(client, journeyId) {
|
|
38
|
+
return client.get(`${BASE}/${journeyId}/visualization`);
|
|
39
|
+
}
|
|
40
|
+
export async function listNodes(client, journeyId) {
|
|
41
|
+
return client.get(`${BASE}/${journeyId}/nodes`);
|
|
42
|
+
}
|
|
43
|
+
export async function addNode(client, journeyId, params) {
|
|
44
|
+
return client.managedPost(`${BASE}/${journeyId}/nodes`, params);
|
|
45
|
+
}
|
|
46
|
+
export async function editNode(client, journeyId, nodeName, params) {
|
|
47
|
+
return client.managedRequest("PATCH", `${BASE}/${journeyId}/nodes/${encodeURIComponent(nodeName)}`, params);
|
|
48
|
+
}
|
|
49
|
+
export async function removeNode(client, journeyId, nodeName) {
|
|
50
|
+
return client.managedDelete(`${BASE}/${journeyId}/nodes/${encodeURIComponent(nodeName)}`);
|
|
51
|
+
}
|
|
52
|
+
export async function listTransitions(client, journeyId, opts) {
|
|
53
|
+
const qs = new URLSearchParams();
|
|
54
|
+
if (opts?.from_node)
|
|
55
|
+
qs.set("from_node", opts.from_node);
|
|
56
|
+
if (opts?.to_node)
|
|
57
|
+
qs.set("to_node", opts.to_node);
|
|
58
|
+
const query = qs.toString();
|
|
59
|
+
return client.get(`${BASE}/${journeyId}/transitions${query ? `?${query}` : ""}`);
|
|
60
|
+
}
|
|
61
|
+
export async function addTransition(client, journeyId, params) {
|
|
62
|
+
return client.managedPost(`${BASE}/${journeyId}/transitions`, params);
|
|
63
|
+
}
|
|
64
|
+
export async function editTransition(client, journeyId, transitionName, params) {
|
|
65
|
+
return client.managedRequest("PATCH", `${BASE}/${journeyId}/transitions/${encodeURIComponent(transitionName)}`, params);
|
|
66
|
+
}
|
|
67
|
+
export async function removeTransition(client, journeyId, transitionName) {
|
|
68
|
+
return client.managedDelete(`${BASE}/${journeyId}/transitions/${encodeURIComponent(transitionName)}`);
|
|
69
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare function init(apiUrl?: string, portalUrl?: string): Promise<void>;
|
|
2
|
+
export declare function logout(): void;
|
|
3
|
+
export declare function listProjects(): Promise<unknown>;
|
|
4
|
+
export declare function listEnvironments(projectId: string): Promise<unknown>;
|
|
5
|
+
export declare function useEnvironment(tier: string, projectId: string): Promise<void>;
|
|
6
|
+
export declare function setEnv(publicKey: string): Promise<void>;
|
|
7
|
+
import { AscendKitClient } from "../api/client.js";
|
|
8
|
+
export interface McpLoginParams {
|
|
9
|
+
email: string;
|
|
10
|
+
password: string;
|
|
11
|
+
}
|
|
12
|
+
export interface McpCreateProjectParams {
|
|
13
|
+
name: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
enabledServices?: string[];
|
|
16
|
+
}
|
|
17
|
+
export interface McpCreateEnvironmentParams {
|
|
18
|
+
projectId: string;
|
|
19
|
+
name: string;
|
|
20
|
+
description?: string;
|
|
21
|
+
tier: string;
|
|
22
|
+
}
|
|
23
|
+
export declare function mcpLogin(client: AscendKitClient, params: McpLoginParams): Promise<{
|
|
24
|
+
token: string;
|
|
25
|
+
user: {
|
|
26
|
+
id: string;
|
|
27
|
+
email: string;
|
|
28
|
+
name: string;
|
|
29
|
+
};
|
|
30
|
+
accountId: string;
|
|
31
|
+
}>;
|
|
32
|
+
export declare function mcpListProjects(client: AscendKitClient): Promise<unknown>;
|
|
33
|
+
export declare function mcpCreateProject(client: AscendKitClient, params: McpCreateProjectParams): Promise<unknown>;
|
|
34
|
+
export declare function mcpListEnvironments(client: AscendKitClient, projectId: string): Promise<unknown>;
|
|
35
|
+
export declare function mcpCreateEnvironment(client: AscendKitClient, params: McpCreateEnvironmentParams): Promise<unknown>;
|