dexto 1.14.5 → 2.0.0-beta.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/cli/auth/billing.d.ts +0 -6
- package/dist/cli/auth/billing.d.ts.map +1 -1
- package/dist/cli/auth/billing.js +0 -23
- package/dist/cli/auth/constants.d.ts +3 -31
- package/dist/cli/auth/constants.d.ts.map +1 -1
- package/dist/cli/auth/constants.js +9 -33
- package/dist/cli/auth/index.d.ts +2 -9
- package/dist/cli/auth/index.d.ts.map +1 -1
- package/dist/cli/auth/index.js +2 -7
- package/dist/cli/auth/sign-in-runtime.d.ts +12 -0
- package/dist/cli/auth/sign-in-runtime.d.ts.map +1 -0
- package/dist/cli/auth/sign-in-runtime.js +59 -0
- package/dist/cli/cloud/app-scopes.d.ts +4 -0
- package/dist/cli/cloud/app-scopes.d.ts.map +1 -0
- package/dist/cli/cloud/app-scopes.js +19 -0
- package/dist/cli/cloud/command.d.ts +143 -0
- package/dist/cli/cloud/command.d.ts.map +1 -0
- package/dist/cli/cloud/command.js +202 -0
- package/dist/cli/cloud/commands/account.d.ts +11 -0
- package/dist/cli/cloud/commands/account.d.ts.map +1 -0
- package/dist/cli/cloud/commands/account.js +128 -0
- package/dist/cli/cloud/commands/agents.d.ts +3 -0
- package/dist/cli/cloud/commands/agents.d.ts.map +1 -0
- package/dist/cli/cloud/commands/agents.js +524 -0
- package/dist/cli/cloud/commands/api.d.ts +3 -0
- package/dist/cli/cloud/commands/api.d.ts.map +1 -0
- package/dist/cli/cloud/commands/api.js +26 -0
- package/dist/cli/cloud/commands/app-files.d.ts +29 -0
- package/dist/cli/cloud/commands/app-files.d.ts.map +1 -0
- package/dist/cli/cloud/commands/app-files.js +72 -0
- package/dist/cli/cloud/commands/automations.d.ts +3 -0
- package/dist/cli/cloud/commands/automations.d.ts.map +1 -0
- package/dist/cli/cloud/commands/automations.js +232 -0
- package/dist/cli/cloud/commands/chats.d.ts +3 -0
- package/dist/cli/cloud/commands/chats.d.ts.map +1 -0
- package/dist/cli/cloud/commands/chats.js +189 -0
- package/dist/cli/cloud/commands/data-deletions.d.ts +3 -0
- package/dist/cli/cloud/commands/data-deletions.d.ts.map +1 -0
- package/dist/cli/cloud/commands/data-deletions.js +54 -0
- package/dist/cli/cloud/commands/deploys.d.ts +10 -0
- package/dist/cli/cloud/commands/deploys.d.ts.map +1 -0
- package/dist/cli/cloud/commands/deploys.js +223 -0
- package/dist/cli/cloud/commands/drive.d.ts +12 -0
- package/dist/cli/cloud/commands/drive.d.ts.map +1 -0
- package/dist/cli/cloud/commands/drive.js +320 -0
- package/dist/cli/cloud/commands/files.d.ts +24 -0
- package/dist/cli/cloud/commands/files.d.ts.map +1 -0
- package/dist/cli/cloud/commands/files.js +282 -0
- package/dist/cli/cloud/commands/find.d.ts +3 -0
- package/dist/cli/cloud/commands/find.d.ts.map +1 -0
- package/dist/cli/cloud/commands/find.js +63 -0
- package/dist/cli/cloud/commands/models.d.ts +3 -0
- package/dist/cli/cloud/commands/models.d.ts.map +1 -0
- package/dist/cli/cloud/commands/models.js +248 -0
- package/dist/cli/cloud/commands/profile.d.ts +3 -0
- package/dist/cli/cloud/commands/profile.d.ts.map +1 -0
- package/dist/cli/cloud/commands/profile.js +119 -0
- package/dist/cli/cloud/commands/projects.d.ts +5 -0
- package/dist/cli/cloud/commands/projects.d.ts.map +1 -0
- package/dist/cli/cloud/commands/projects.js +66 -0
- package/dist/cli/cloud/commands/publish.d.ts +3 -0
- package/dist/cli/cloud/commands/publish.d.ts.map +1 -0
- package/dist/cli/cloud/commands/publish.js +138 -0
- package/dist/cli/cloud/commands/sandboxes.d.ts +3 -0
- package/dist/cli/cloud/commands/sandboxes.d.ts.map +1 -0
- package/dist/cli/cloud/commands/sandboxes.js +265 -0
- package/dist/cli/cloud/commands/secrets.d.ts +3 -0
- package/dist/cli/cloud/commands/secrets.d.ts.map +1 -0
- package/dist/cli/cloud/commands/secrets.js +110 -0
- package/dist/cli/cloud/commands/skills.d.ts +3 -0
- package/dist/cli/cloud/commands/skills.d.ts.map +1 -0
- package/dist/cli/cloud/commands/skills.js +202 -0
- package/dist/cli/cloud/commands/web.d.ts +3 -0
- package/dist/cli/cloud/commands/web.d.ts.map +1 -0
- package/dist/cli/cloud/commands/web.js +53 -0
- package/dist/cli/cloud/commands/workspace-apps.d.ts +58 -0
- package/dist/cli/cloud/commands/workspace-apps.d.ts.map +1 -0
- package/dist/cli/cloud/commands/workspace-apps.js +656 -0
- package/dist/cli/cloud/commands/workspace.d.ts +36 -0
- package/dist/cli/cloud/commands/workspace.d.ts.map +1 -0
- package/dist/cli/cloud/commands/workspace.js +279 -0
- package/dist/cli/cloud/connection.d.ts +33 -0
- package/dist/cli/cloud/connection.d.ts.map +1 -0
- package/dist/cli/cloud/connection.js +38 -0
- package/dist/cli/cloud/events.d.ts +63 -0
- package/dist/cli/cloud/events.d.ts.map +1 -0
- package/dist/cli/cloud/events.js +72 -0
- package/dist/cli/cloud/host.d.ts +9 -0
- package/dist/cli/cloud/host.d.ts.map +1 -0
- package/dist/cli/cloud/host.js +105 -0
- package/dist/cli/cloud/local-chats.d.ts +73 -0
- package/dist/cli/cloud/local-chats.d.ts.map +1 -0
- package/dist/cli/cloud/local-chats.js +441 -0
- package/dist/cli/cloud/output.d.ts +34 -0
- package/dist/cli/cloud/output.d.ts.map +1 -0
- package/dist/cli/cloud/output.js +76 -0
- package/dist/cli/cloud/run.d.ts +26 -0
- package/dist/cli/cloud/run.d.ts.map +1 -0
- package/dist/cli/cloud/run.js +444 -0
- package/dist/cli/cloud/runtime.d.ts +33 -0
- package/dist/cli/cloud/runtime.d.ts.map +1 -0
- package/dist/cli/cloud/runtime.js +86 -0
- package/dist/cli/cloud/tar.d.ts +9 -0
- package/dist/cli/cloud/tar.d.ts.map +1 -0
- package/dist/cli/cloud/tar.js +69 -0
- package/dist/cli/cloud/transfer.d.ts +13 -0
- package/dist/cli/cloud/transfer.d.ts.map +1 -0
- package/dist/cli/cloud/transfer.js +35 -0
- package/dist/cli/cloud/v1.d.ts +19 -0
- package/dist/cli/cloud/v1.d.ts.map +1 -0
- package/dist/cli/cloud/v1.js +65 -0
- package/dist/cli/cloud/zip.d.ts +8 -0
- package/dist/cli/cloud/zip.d.ts.map +1 -0
- package/dist/cli/cloud/zip.js +66 -0
- package/dist/cli/commands/auth/sign-in-commands.d.ts +62 -0
- package/dist/cli/commands/auth/sign-in-commands.d.ts.map +1 -0
- package/dist/cli/commands/auth/sign-in-commands.js +247 -0
- package/dist/cli/commands/auth/sign-in-context.d.ts +16 -0
- package/dist/cli/commands/auth/sign-in-context.d.ts.map +1 -0
- package/dist/cli/commands/auth/sign-in-context.js +68 -0
- package/dist/cli/commands/cloud/register.d.ts +5 -0
- package/dist/cli/commands/cloud/register.d.ts.map +1 -1
- package/dist/cli/commands/cloud/register.js +42 -24
- package/dist/cli/commands/create-app.js +5 -6
- package/dist/cli/commands/create-image.d.ts.map +1 -1
- package/dist/cli/commands/create-image.js +9 -10
- package/dist/cli/commands/index.d.ts +0 -2
- package/dist/cli/commands/index.d.ts.map +1 -1
- package/dist/cli/commands/index.js +0 -2
- package/dist/cli/commands/init.d.ts +0 -2
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +5 -26
- package/dist/cli/commands/run/headless.js +2 -2
- package/dist/cli/commands/run/output.d.ts +29 -10
- package/dist/cli/commands/run/output.d.ts.map +1 -1
- package/dist/cli/commands/run/output.js +44 -22
- package/dist/cli/commands/run/register.d.ts.map +1 -1
- package/dist/cli/commands/run/register.js +21 -9
- package/dist/cli/commands/session/register.d.ts.map +1 -1
- package/dist/cli/commands/session/register.js +51 -21
- package/dist/cli/commands/session-commands.js +1 -1
- package/dist/cli/commands/setup.js +17 -14
- package/dist/cli/help-json.d.ts +22 -0
- package/dist/cli/help-json.d.ts.map +1 -0
- package/dist/cli/help-json.js +20 -0
- package/dist/cli/modes/cli.d.ts.map +1 -1
- package/dist/cli/modes/cli.js +42 -9
- package/dist/cli/modes/server.js +8 -8
- package/dist/cli/modes/web.js +3 -3
- package/dist/cli/utils/dexto-auth-check.d.ts +1 -1
- package/dist/cli/utils/dexto-auth-check.d.ts.map +1 -1
- package/dist/cli/utils/dexto-auth-check.js +4 -5
- package/dist/cli/utils/dexto-setup.d.ts +4 -5
- package/dist/cli/utils/dexto-setup.d.ts.map +1 -1
- package/dist/cli/utils/dexto-setup.js +17 -14
- package/dist/cli/utils/provider-setup.js +1 -1
- package/dist/cli/utils/scaffolding-utils.d.ts +9 -3
- package/dist/cli/utils/scaffolding-utils.d.ts.map +1 -1
- package/dist/cli/utils/scaffolding-utils.js +48 -40
- package/dist/cli/utils/version-check.d.ts.map +1 -1
- package/dist/cli/utils/version-check.js +2 -1
- package/dist/index-main.js +33 -65
- package/dist/webui/assets/index-D9xiOs62.js +1649 -0
- package/dist/webui/index.html +1 -1
- package/package.json +15 -14
- package/dist/cli/auth/api-client.d.ts +0 -125
- package/dist/cli/auth/api-client.d.ts.map +0 -1
- package/dist/cli/auth/api-client.js +0 -585
- package/dist/cli/auth/device.d.ts +0 -14
- package/dist/cli/auth/device.d.ts.map +0 -1
- package/dist/cli/auth/device.js +0 -84
- package/dist/cli/auth/dexto-api-key.d.ts +0 -34
- package/dist/cli/auth/dexto-api-key.d.ts.map +0 -1
- package/dist/cli/auth/dexto-api-key.js +0 -160
- package/dist/cli/auth/login-persistence.d.ts +0 -15
- package/dist/cli/auth/login-persistence.d.ts.map +0 -1
- package/dist/cli/auth/login-persistence.js +0 -72
- package/dist/cli/auth/oauth.d.ts +0 -39
- package/dist/cli/auth/oauth.d.ts.map +0 -1
- package/dist/cli/auth/oauth.js +0 -434
- package/dist/cli/auth/service.d.ts +0 -24
- package/dist/cli/auth/service.d.ts.map +0 -1
- package/dist/cli/auth/service.js +0 -161
- package/dist/cli/auth/types.d.ts +0 -11
- package/dist/cli/auth/types.d.ts.map +0 -1
- package/dist/cli/auth/types.js +0 -1
- package/dist/cli/cloud-chat.d.ts +0 -18
- package/dist/cli/cloud-chat.d.ts.map +0 -1
- package/dist/cli/cloud-chat.js +0 -734
- package/dist/cli/commands/auth/index.d.ts +0 -4
- package/dist/cli/commands/auth/index.d.ts.map +0 -1
- package/dist/cli/commands/auth/index.js +0 -4
- package/dist/cli/commands/auth/login.d.ts +0 -12
- package/dist/cli/commands/auth/login.d.ts.map +0 -1
- package/dist/cli/commands/auth/login.js +0 -153
- package/dist/cli/commands/auth/logout.d.ts +0 -5
- package/dist/cli/commands/auth/logout.d.ts.map +0 -1
- package/dist/cli/commands/auth/logout.js +0 -81
- package/dist/cli/commands/auth/register.d.ts +0 -3
- package/dist/cli/commands/auth/register.d.ts.map +0 -1
- package/dist/cli/commands/auth/register.js +0 -96
- package/dist/cli/commands/auth/status.d.ts +0 -2
- package/dist/cli/commands/auth/status.d.ts.map +0 -1
- package/dist/cli/commands/auth/status.js +0 -22
- package/dist/cli/commands/billing/index.d.ts +0 -2
- package/dist/cli/commands/billing/index.d.ts.map +0 -1
- package/dist/cli/commands/billing/index.js +0 -2
- package/dist/cli/commands/billing/register.d.ts +0 -3
- package/dist/cli/commands/billing/register.d.ts.map +0 -1
- package/dist/cli/commands/billing/register.js +0 -20
- package/dist/cli/commands/billing/status.d.ts +0 -8
- package/dist/cli/commands/billing/status.d.ts.map +0 -1
- package/dist/cli/commands/billing/status.js +0 -71
- package/dist/cli/commands/cloud/discovery.d.ts +0 -17
- package/dist/cli/commands/cloud/discovery.d.ts.map +0 -1
- package/dist/cli/commands/cloud/discovery.js +0 -88
- package/dist/cli/commands/deploy/client.d.ts +0 -113
- package/dist/cli/commands/deploy/client.d.ts.map +0 -1
- package/dist/cli/commands/deploy/client.js +0 -519
- package/dist/cli/commands/deploy/config.d.ts +0 -37
- package/dist/cli/commands/deploy/config.d.ts.map +0 -1
- package/dist/cli/commands/deploy/config.js +0 -144
- package/dist/cli/commands/deploy/entry-agent.d.ts +0 -3
- package/dist/cli/commands/deploy/entry-agent.d.ts.map +0 -1
- package/dist/cli/commands/deploy/entry-agent.js +0 -70
- package/dist/cli/commands/deploy/index.d.ts +0 -12
- package/dist/cli/commands/deploy/index.d.ts.map +0 -1
- package/dist/cli/commands/deploy/index.js +0 -370
- package/dist/cli/commands/deploy/links.d.ts +0 -3
- package/dist/cli/commands/deploy/links.d.ts.map +0 -1
- package/dist/cli/commands/deploy/links.js +0 -53
- package/dist/cli/commands/deploy/register.d.ts +0 -6
- package/dist/cli/commands/deploy/register.d.ts.map +0 -1
- package/dist/cli/commands/deploy/register.js +0 -128
- package/dist/cli/commands/deploy/snapshot.d.ts +0 -12
- package/dist/cli/commands/deploy/snapshot.d.ts.map +0 -1
- package/dist/cli/commands/deploy/snapshot.js +0 -76
- package/dist/cli/commands/deploy/state.d.ts +0 -13
- package/dist/cli/commands/deploy/state.d.ts.map +0 -1
- package/dist/cli/commands/deploy/state.js +0 -122
- package/dist/cli/commands/span/register.d.ts +0 -6
- package/dist/cli/commands/span/register.d.ts.map +0 -1
- package/dist/cli/commands/span/register.js +0 -25
- package/dist/cli/commands/trace/client.d.ts +0 -98
- package/dist/cli/commands/trace/client.d.ts.map +0 -1
- package/dist/cli/commands/trace/client.js +0 -150
- package/dist/cli/commands/trace/format.d.ts +0 -5
- package/dist/cli/commands/trace/format.d.ts.map +0 -1
- package/dist/cli/commands/trace/format.js +0 -58
- package/dist/cli/commands/trace/index.d.ts +0 -21
- package/dist/cli/commands/trace/index.d.ts.map +0 -1
- package/dist/cli/commands/trace/index.js +0 -49
- package/dist/cli/commands/trace/register.d.ts +0 -6
- package/dist/cli/commands/trace/register.d.ts.map +0 -1
- package/dist/cli/commands/trace/register.js +0 -71
- package/dist/webui/assets/index-DEfRFmFT.js +0 -1667
package/dist/webui/index.html
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
if (theme === 'dark') document.documentElement.classList.add('dark');
|
|
19
19
|
})();
|
|
20
20
|
</script>
|
|
21
|
-
<script type="module" crossorigin src="/assets/index-
|
|
21
|
+
<script type="module" crossorigin src="/assets/index-D9xiOs62.js"></script>
|
|
22
22
|
<link rel="modulepreload" crossorigin href="/assets/tanstack-CdDcRpJz.js">
|
|
23
23
|
<link rel="stylesheet" crossorigin href="/assets/index-cNwNJ0w6.css">
|
|
24
24
|
</head>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dexto",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-beta.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"dexto": "./dist/index.js"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"fs-extra": "^11.3.0",
|
|
26
26
|
"hono": "^4.13.13",
|
|
27
27
|
"ioredis": "^5.7.0",
|
|
28
|
-
"minimatch": "^
|
|
28
|
+
"minimatch": "^10.2.3",
|
|
29
29
|
"open": "^10.2.0",
|
|
30
30
|
"pg": "^8.15.4",
|
|
31
31
|
"posthog-node": "^4.2.1",
|
|
@@ -34,18 +34,19 @@
|
|
|
34
34
|
"ws": "^8.22.0",
|
|
35
35
|
"yaml": "^2.8.3",
|
|
36
36
|
"zod": "^4.3.6",
|
|
37
|
-
"@dexto/agent-config": "1.14.
|
|
38
|
-
"@dexto/
|
|
39
|
-
"@dexto/
|
|
40
|
-
"@dexto/
|
|
41
|
-
"@dexto/
|
|
42
|
-
"@dexto/
|
|
43
|
-
"@dexto/image-
|
|
44
|
-
"@dexto/
|
|
45
|
-
"@dexto/
|
|
46
|
-
"@dexto/
|
|
47
|
-
"@dexto/
|
|
48
|
-
"@dexto/
|
|
37
|
+
"@dexto/agent-config": "1.14.4",
|
|
38
|
+
"@dexto/analytics": "1.15.0-beta.0",
|
|
39
|
+
"@dexto/client-sdk": "1.14.4",
|
|
40
|
+
"@dexto/core": "1.14.4",
|
|
41
|
+
"@dexto/cloud-client": "1.15.0-beta.0",
|
|
42
|
+
"@dexto/agent-management": "1.15.0-beta.0",
|
|
43
|
+
"@dexto/image-local": "1.15.0-beta.0",
|
|
44
|
+
"@dexto/image-logger-agent": "1.15.0-beta.0",
|
|
45
|
+
"@dexto/llm": "1.14.4",
|
|
46
|
+
"@dexto/registry": "1.14.4",
|
|
47
|
+
"@dexto/server": "1.15.0-beta.0",
|
|
48
|
+
"@dexto/storage": "1.14.4",
|
|
49
|
+
"@dexto/tui": "1.15.0-beta.0"
|
|
49
50
|
},
|
|
50
51
|
"devDependencies": {
|
|
51
52
|
"@types/ws": "^8.5.11",
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import type { AuthenticatedUser } from './types.js';
|
|
2
|
-
export interface DeviceCodeStartResponse {
|
|
3
|
-
deviceCode: string;
|
|
4
|
-
userCode: string;
|
|
5
|
-
verificationUrl: string;
|
|
6
|
-
verificationUrlComplete: string | null;
|
|
7
|
-
expiresIn: number;
|
|
8
|
-
interval: number;
|
|
9
|
-
}
|
|
10
|
-
export interface DeviceCodeApiKeyResponse {
|
|
11
|
-
id: string;
|
|
12
|
-
keyDisplay: string;
|
|
13
|
-
name: string;
|
|
14
|
-
scopes: string[];
|
|
15
|
-
status: string;
|
|
16
|
-
fullKey: string;
|
|
17
|
-
}
|
|
18
|
-
export type DeviceCodePollResponse = {
|
|
19
|
-
status: 'pending';
|
|
20
|
-
} | {
|
|
21
|
-
status: 'slowDown';
|
|
22
|
-
} | {
|
|
23
|
-
status: 'expired';
|
|
24
|
-
} | {
|
|
25
|
-
status: 'denied';
|
|
26
|
-
} | {
|
|
27
|
-
status: 'transientError';
|
|
28
|
-
} | {
|
|
29
|
-
status: 'approved';
|
|
30
|
-
apiKey: DeviceCodeApiKeyResponse;
|
|
31
|
-
};
|
|
32
|
-
export interface UsageSummaryResponse {
|
|
33
|
-
balance_usd: number;
|
|
34
|
-
last_30_days: {
|
|
35
|
-
since: string;
|
|
36
|
-
total_cost_usd: number;
|
|
37
|
-
total_usage_events: number;
|
|
38
|
-
};
|
|
39
|
-
recent_model_usage: Array<{
|
|
40
|
-
timestamp: string;
|
|
41
|
-
model: string;
|
|
42
|
-
cost_usd: number;
|
|
43
|
-
input_tokens: number;
|
|
44
|
-
output_tokens: number;
|
|
45
|
-
}>;
|
|
46
|
-
}
|
|
47
|
-
export interface BillingBalanceResponse {
|
|
48
|
-
creditsUsd: number;
|
|
49
|
-
}
|
|
50
|
-
export interface BillingCheckoutSessionResponse {
|
|
51
|
-
checkoutUrl: string;
|
|
52
|
-
checkoutSessionId: string;
|
|
53
|
-
}
|
|
54
|
-
interface RequestOptions {
|
|
55
|
-
signal?: AbortSignal | undefined;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Dexto API client for key management
|
|
59
|
-
*/
|
|
60
|
-
export declare class DextoApiClient {
|
|
61
|
-
private readonly platformBaseUrl;
|
|
62
|
-
private readonly publicApiBaseUrl;
|
|
63
|
-
private readonly timeoutMs;
|
|
64
|
-
constructor(baseUrl?: string | {
|
|
65
|
-
gatewayBaseUrl?: string | undefined;
|
|
66
|
-
platformBaseUrl?: string | undefined;
|
|
67
|
-
publicApiBaseUrl?: string | undefined;
|
|
68
|
-
});
|
|
69
|
-
private createRequestSignal;
|
|
70
|
-
private getPlatformUrl;
|
|
71
|
-
private getPublicApiUrl;
|
|
72
|
-
private listPlatformApiKeys;
|
|
73
|
-
private createPlatformApiKey;
|
|
74
|
-
private deletePlatformApiKey;
|
|
75
|
-
/**
|
|
76
|
-
* Validate if a Dexto API key is valid
|
|
77
|
-
*/
|
|
78
|
-
validateDextoApiKey(apiKey: string): Promise<boolean>;
|
|
79
|
-
/**
|
|
80
|
-
* Provision Dexto API key and always return a usable secret key value.
|
|
81
|
-
* @param regenerate - If true, delete existing key(s) and create a new one
|
|
82
|
-
*/
|
|
83
|
-
provisionDextoApiKey(authToken: string, name?: string, regenerate?: boolean): Promise<{
|
|
84
|
-
dextoApiKey: string;
|
|
85
|
-
keyId: string;
|
|
86
|
-
}>;
|
|
87
|
-
/**
|
|
88
|
-
* Get usage summary (balance + last 30 days + recent model activity)
|
|
89
|
-
*/
|
|
90
|
-
getUsageSummary(apiKey: string): Promise<UsageSummaryResponse>;
|
|
91
|
-
/**
|
|
92
|
-
* Get the current Dexto billing balance for the authenticated user.
|
|
93
|
-
*/
|
|
94
|
-
getBillingBalance(authToken: string, options: RequestOptions): Promise<BillingBalanceResponse>;
|
|
95
|
-
/**
|
|
96
|
-
* Create a hosted top-up checkout session for the authenticated user.
|
|
97
|
-
*/
|
|
98
|
-
createBillingCheckoutSession(authToken: string, options: {
|
|
99
|
-
creditsUsd: number;
|
|
100
|
-
returnUrl?: string | undefined;
|
|
101
|
-
signal?: AbortSignal | undefined;
|
|
102
|
-
}): Promise<BillingCheckoutSessionResponse>;
|
|
103
|
-
/**
|
|
104
|
-
* Start device code login at the platform.
|
|
105
|
-
*/
|
|
106
|
-
startDeviceCodeLogin(client?: string, options?: RequestOptions): Promise<DeviceCodeStartResponse>;
|
|
107
|
-
/**
|
|
108
|
-
* Poll the platform for device-code login completion.
|
|
109
|
-
*/
|
|
110
|
-
pollDeviceCodeLogin(deviceCode: string, options?: RequestOptions): Promise<DeviceCodePollResponse>;
|
|
111
|
-
/**
|
|
112
|
-
* Fetch Supabase user profile for a bearer token.
|
|
113
|
-
*/
|
|
114
|
-
fetchSupabaseUser(accessToken: string, options?: RequestOptions): Promise<AuthenticatedUser | undefined>;
|
|
115
|
-
/**
|
|
116
|
-
* Validate Supabase access token by checking if /auth/v1/user resolves.
|
|
117
|
-
*/
|
|
118
|
-
validateSupabaseAccessToken(accessToken: string, options?: RequestOptions): Promise<boolean>;
|
|
119
|
-
}
|
|
120
|
-
/**
|
|
121
|
-
* Get default Dexto API client
|
|
122
|
-
*/
|
|
123
|
-
export declare function getDextoApiClient(): DextoApiClient;
|
|
124
|
-
export {};
|
|
125
|
-
//# sourceMappingURL=api-client.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api-client.d.ts","sourceRoot":"","sources":["../../../src/cli/auth/api-client.ts"],"names":[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