@dotcraft/sdk 0.9.0 → 0.9.2
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/generated/appserver/client-requests.generated.d.ts +40 -16
- package/dist/generated/appserver/client-requests.generated.d.ts.map +1 -1
- package/dist/generated/appserver/method-groups.generated.d.ts +3 -3
- package/dist/generated/appserver/method-groups.generated.d.ts.map +1 -1
- package/dist/generated/appserver/method-groups.generated.js +14 -7
- package/dist/generated/appserver/method-groups.generated.js.map +1 -1
- package/dist/generated/appserver/models.generated.d.ts +176 -65
- package/dist/generated/appserver/models.generated.d.ts.map +1 -1
- package/dist/generated/appserver/protocol-info.generated.d.ts +2 -2
- package/dist/generated/appserver/protocol-info.generated.js +2 -2
- package/dist/generated/appserver/server-notifications.generated.d.ts +12 -8
- package/dist/generated/appserver/server-notifications.generated.d.ts.map +1 -1
- package/dist/test-contract-fixtures.d.ts.map +1 -1
- package/dist/test-contract-fixtures.js +1 -0
- package/dist/test-contract-fixtures.js.map +1 -1
- package/package.json +1 -1
|
@@ -395,9 +395,11 @@ export interface AppBindingRequestedNotification {
|
|
|
395
395
|
}
|
|
396
396
|
export interface AppBindingToolCapability {
|
|
397
397
|
annotations?: JsonValue;
|
|
398
|
+
description?: string;
|
|
398
399
|
inputSchema?: JsonValue;
|
|
399
|
-
|
|
400
|
-
|
|
400
|
+
namespaceDescription?: string | null;
|
|
401
|
+
outputSchema?: JsonValue;
|
|
402
|
+
sourceToolName?: string;
|
|
401
403
|
ui?: AppBindingUiCapability | null;
|
|
402
404
|
visibility?: string[];
|
|
403
405
|
[key: string]: unknown;
|
|
@@ -672,58 +674,6 @@ export interface ApprovalShellDetails {
|
|
|
672
674
|
remembersExactCommand: boolean;
|
|
673
675
|
[key: string]: unknown;
|
|
674
676
|
}
|
|
675
|
-
export interface AuthOpenAiAuthorizeUrlNotification {
|
|
676
|
-
callbackPort?: number;
|
|
677
|
-
url?: string;
|
|
678
|
-
[key: string]: unknown;
|
|
679
|
-
}
|
|
680
|
-
export interface AuthOpenAiLoginParams {
|
|
681
|
-
openBrowser?: boolean | null;
|
|
682
|
-
providerId?: string | null;
|
|
683
|
-
[key: string]: unknown;
|
|
684
|
-
}
|
|
685
|
-
export interface AuthOpenAiLogoutParams {
|
|
686
|
-
providerId?: string | null;
|
|
687
|
-
[key: string]: unknown;
|
|
688
|
-
}
|
|
689
|
-
export interface AuthOpenAiStatusParams {
|
|
690
|
-
includeToken?: boolean;
|
|
691
|
-
refreshToken?: boolean;
|
|
692
|
-
[key: string]: unknown;
|
|
693
|
-
}
|
|
694
|
-
export interface AuthOpenAiStatusResult {
|
|
695
|
-
accessTokenExpiresAt?: string | null;
|
|
696
|
-
accountId?: string | null;
|
|
697
|
-
authToken?: string;
|
|
698
|
-
email?: string | null;
|
|
699
|
-
lastRefresh?: string | null;
|
|
700
|
-
loggedIn?: boolean;
|
|
701
|
-
planType?: string | null;
|
|
702
|
-
providerId?: string | null;
|
|
703
|
-
[key: string]: unknown;
|
|
704
|
-
}
|
|
705
|
-
export interface AuthOpenAiUsageCredits {
|
|
706
|
-
balance?: string | null;
|
|
707
|
-
hasCredits?: boolean;
|
|
708
|
-
unlimited?: boolean;
|
|
709
|
-
[key: string]: unknown;
|
|
710
|
-
}
|
|
711
|
-
export interface AuthOpenAiUsageResult {
|
|
712
|
-
available?: boolean;
|
|
713
|
-
credits?: AuthOpenAiUsageCredits | null;
|
|
714
|
-
fetchedAt?: string | null;
|
|
715
|
-
limitReachedKind?: string | null;
|
|
716
|
-
planType?: string | null;
|
|
717
|
-
primary?: AuthOpenAiUsageWindow | null;
|
|
718
|
-
secondary?: AuthOpenAiUsageWindow | null;
|
|
719
|
-
[key: string]: unknown;
|
|
720
|
-
}
|
|
721
|
-
export interface AuthOpenAiUsageWindow {
|
|
722
|
-
resetAt?: string;
|
|
723
|
-
usedPercent?: number;
|
|
724
|
-
windowSeconds?: number;
|
|
725
|
-
[key: string]: unknown;
|
|
726
|
-
}
|
|
727
677
|
export interface AutomationCreateParams {
|
|
728
678
|
automation: AutomationInput;
|
|
729
679
|
[key: string]: unknown;
|
|
@@ -1047,6 +997,7 @@ export interface ClientCapabilities {
|
|
|
1047
997
|
mcpElicitation?: boolean | null;
|
|
1048
998
|
nodeRepl?: NodeReplCapability | null;
|
|
1049
999
|
optOutNotificationMethods?: string[] | null;
|
|
1000
|
+
remoteHost?: boolean | null;
|
|
1050
1001
|
requestUserInputSupport?: boolean | null;
|
|
1051
1002
|
streamingSupport?: boolean | null;
|
|
1052
1003
|
toolExecutionLifecycle?: boolean | null;
|
|
@@ -1860,6 +1811,7 @@ export interface MarketplaceFailure {
|
|
|
1860
1811
|
export interface MarketplaceInfo {
|
|
1861
1812
|
displayName?: string | null;
|
|
1862
1813
|
lastUpdated?: string | null;
|
|
1814
|
+
marketplacePath?: string | null;
|
|
1863
1815
|
name?: string;
|
|
1864
1816
|
pluginIds?: string[];
|
|
1865
1817
|
ref?: string | null;
|
|
@@ -1937,10 +1889,6 @@ export interface McpAppViewCloseResult {
|
|
|
1937
1889
|
closed?: boolean;
|
|
1938
1890
|
[key: string]: unknown;
|
|
1939
1891
|
}
|
|
1940
|
-
export interface McpAppViewHint {
|
|
1941
|
-
available: boolean;
|
|
1942
|
-
[key: string]: unknown;
|
|
1943
|
-
}
|
|
1944
1892
|
export interface McpAppViewMessageParams {
|
|
1945
1893
|
content?: McpAppMessageContent;
|
|
1946
1894
|
role?: string;
|
|
@@ -2654,6 +2602,133 @@ export interface ProfileInsightsResult {
|
|
|
2654
2602
|
totalThreads?: number;
|
|
2655
2603
|
[key: string]: unknown;
|
|
2656
2604
|
}
|
|
2605
|
+
export interface ProviderAuthChoice {
|
|
2606
|
+
id: string;
|
|
2607
|
+
label: string;
|
|
2608
|
+
[key: string]: unknown;
|
|
2609
|
+
}
|
|
2610
|
+
export interface ProviderAuthEvent {
|
|
2611
|
+
kind: string;
|
|
2612
|
+
message?: string | null;
|
|
2613
|
+
url?: string | null;
|
|
2614
|
+
userCode?: string | null;
|
|
2615
|
+
[key: string]: unknown;
|
|
2616
|
+
}
|
|
2617
|
+
export interface ProviderAuthInputParams {
|
|
2618
|
+
loginId: string;
|
|
2619
|
+
promptId: string;
|
|
2620
|
+
value: string;
|
|
2621
|
+
[key: string]: unknown;
|
|
2622
|
+
}
|
|
2623
|
+
export interface ProviderAuthInstanceParams {
|
|
2624
|
+
providerId: string;
|
|
2625
|
+
[key: string]: unknown;
|
|
2626
|
+
}
|
|
2627
|
+
export interface ProviderAuthLoginParams {
|
|
2628
|
+
method?: string | null;
|
|
2629
|
+
providerId: string;
|
|
2630
|
+
[key: string]: unknown;
|
|
2631
|
+
}
|
|
2632
|
+
export interface ProviderAuthLoginState {
|
|
2633
|
+
authentication?: ProviderAuthStatusResult | null;
|
|
2634
|
+
errorCode?: string | null;
|
|
2635
|
+
errorMessage?: string | null;
|
|
2636
|
+
event?: ProviderAuthEvent | null;
|
|
2637
|
+
loginId: string;
|
|
2638
|
+
prompt?: ProviderAuthPrompt | null;
|
|
2639
|
+
promptId?: string | null;
|
|
2640
|
+
providerId: string;
|
|
2641
|
+
revision: number;
|
|
2642
|
+
status: string;
|
|
2643
|
+
[key: string]: unknown;
|
|
2644
|
+
}
|
|
2645
|
+
export interface ProviderAuthOperationParams {
|
|
2646
|
+
loginId: string;
|
|
2647
|
+
[key: string]: unknown;
|
|
2648
|
+
}
|
|
2649
|
+
export interface ProviderAuthPrompt {
|
|
2650
|
+
choices?: ProviderAuthChoice[] | null;
|
|
2651
|
+
kind: string;
|
|
2652
|
+
message: string;
|
|
2653
|
+
[key: string]: unknown;
|
|
2654
|
+
}
|
|
2655
|
+
export interface ProviderAuthStatusParams {
|
|
2656
|
+
includeToken?: boolean;
|
|
2657
|
+
providerId: string;
|
|
2658
|
+
refreshToken?: boolean;
|
|
2659
|
+
[key: string]: unknown;
|
|
2660
|
+
}
|
|
2661
|
+
export interface ProviderAuthStatusResult {
|
|
2662
|
+
accountId?: string | null;
|
|
2663
|
+
authToken?: string | null;
|
|
2664
|
+
displayName?: string | null;
|
|
2665
|
+
email?: string | null;
|
|
2666
|
+
failureCode?: string | null;
|
|
2667
|
+
failureMessage?: string | null;
|
|
2668
|
+
isAuthenticated: boolean;
|
|
2669
|
+
planType?: string | null;
|
|
2670
|
+
[key: string]: unknown;
|
|
2671
|
+
}
|
|
2672
|
+
export interface ProviderAuthUsageBalance {
|
|
2673
|
+
currency: string;
|
|
2674
|
+
granted: string;
|
|
2675
|
+
toppedUp: string;
|
|
2676
|
+
total: string;
|
|
2677
|
+
[key: string]: unknown;
|
|
2678
|
+
}
|
|
2679
|
+
export interface ProviderAuthUsageCredits {
|
|
2680
|
+
balance?: string | null;
|
|
2681
|
+
hasCredits: boolean;
|
|
2682
|
+
unlimited: boolean;
|
|
2683
|
+
[key: string]: unknown;
|
|
2684
|
+
}
|
|
2685
|
+
export interface ProviderAuthUsageResult {
|
|
2686
|
+
available: boolean;
|
|
2687
|
+
balances?: ProviderAuthUsageBalance[] | null;
|
|
2688
|
+
credits?: ProviderAuthUsageCredits | null;
|
|
2689
|
+
fetchedAt?: string | null;
|
|
2690
|
+
limitReachedKind?: string | null;
|
|
2691
|
+
planType?: string | null;
|
|
2692
|
+
primary?: ProviderAuthUsageWindow | null;
|
|
2693
|
+
secondary?: ProviderAuthUsageWindow | null;
|
|
2694
|
+
[key: string]: unknown;
|
|
2695
|
+
}
|
|
2696
|
+
export interface ProviderAuthUsageUpdatedNotification {
|
|
2697
|
+
available: boolean;
|
|
2698
|
+
balances?: ProviderAuthUsageBalance[] | null;
|
|
2699
|
+
credits?: ProviderAuthUsageCredits | null;
|
|
2700
|
+
fetchedAt?: string | null;
|
|
2701
|
+
limitReachedKind?: string | null;
|
|
2702
|
+
planType?: string | null;
|
|
2703
|
+
primary?: ProviderAuthUsageWindow | null;
|
|
2704
|
+
providerId: string;
|
|
2705
|
+
secondary?: ProviderAuthUsageWindow | null;
|
|
2706
|
+
[key: string]: unknown;
|
|
2707
|
+
}
|
|
2708
|
+
export interface ProviderAuthUsageWindow {
|
|
2709
|
+
resetAt: string;
|
|
2710
|
+
usedPercent: number;
|
|
2711
|
+
windowSeconds: number;
|
|
2712
|
+
[key: string]: unknown;
|
|
2713
|
+
}
|
|
2714
|
+
export interface ProviderAuthenticationMethodInfo {
|
|
2715
|
+
displayName: string;
|
|
2716
|
+
id: string;
|
|
2717
|
+
kind: string;
|
|
2718
|
+
[key: string]: unknown;
|
|
2719
|
+
}
|
|
2720
|
+
export interface ProviderBackendInfo {
|
|
2721
|
+
authenticationMethods: ProviderAuthenticationMethodInfo[];
|
|
2722
|
+
defaultProtocol: string;
|
|
2723
|
+
displayName: string;
|
|
2724
|
+
id: string;
|
|
2725
|
+
protocols: string[];
|
|
2726
|
+
[key: string]: unknown;
|
|
2727
|
+
}
|
|
2728
|
+
export interface ProviderBackendListResult {
|
|
2729
|
+
backends: ProviderBackendInfo[];
|
|
2730
|
+
[key: string]: unknown;
|
|
2731
|
+
}
|
|
2657
2732
|
export interface ProviderCapabilities {
|
|
2658
2733
|
cachedInputUsageReporting?: boolean;
|
|
2659
2734
|
extendedThinking?: boolean;
|
|
@@ -2671,9 +2746,8 @@ export interface ProviderCapabilities {
|
|
|
2671
2746
|
export interface ProviderInfo {
|
|
2672
2747
|
apiKey?: string | null;
|
|
2673
2748
|
authMethod?: string;
|
|
2749
|
+
backendId?: string;
|
|
2674
2750
|
capabilities?: ProviderCapabilities;
|
|
2675
|
-
chatGptAccountId?: string | null;
|
|
2676
|
-
chatGptPlanType?: string | null;
|
|
2677
2751
|
displayName?: string;
|
|
2678
2752
|
endPoint?: string;
|
|
2679
2753
|
hasApiKey?: boolean;
|
|
@@ -2686,6 +2760,7 @@ export interface ProviderInfo {
|
|
|
2686
2760
|
streamIdleTimeoutMs?: number | null;
|
|
2687
2761
|
streamMaxRetries?: number | null;
|
|
2688
2762
|
supportsImageGeneration?: boolean;
|
|
2763
|
+
webSearchBackend?: string;
|
|
2689
2764
|
[key: string]: unknown;
|
|
2690
2765
|
}
|
|
2691
2766
|
export interface ProviderListParams {
|
|
@@ -2868,8 +2943,6 @@ export interface ServerCapabilities {
|
|
|
2868
2943
|
appBindingVersion?: number;
|
|
2869
2944
|
appThreadInputEnqueue?: boolean;
|
|
2870
2945
|
approvalFlow?: boolean;
|
|
2871
|
-
authOpenAiOAuth?: boolean;
|
|
2872
|
-
authOpenAiUsage?: boolean;
|
|
2873
2946
|
automations?: boolean;
|
|
2874
2947
|
backgroundTerminals?: boolean;
|
|
2875
2948
|
channelStatus?: boolean;
|
|
@@ -2942,7 +3015,6 @@ export interface SessionItem {
|
|
|
2942
3015
|
completedAt?: string | null;
|
|
2943
3016
|
createdAt: string;
|
|
2944
3017
|
id: string;
|
|
2945
|
-
mcpApp?: McpAppViewHint | null;
|
|
2946
3018
|
payload?: JsonValue;
|
|
2947
3019
|
payloadKind?: string | null;
|
|
2948
3020
|
status: string;
|
|
@@ -2975,6 +3047,7 @@ export interface SessionThread {
|
|
|
2975
3047
|
effectiveWorkspacePath: string;
|
|
2976
3048
|
ephemeral: boolean;
|
|
2977
3049
|
forkedFromId?: string | null;
|
|
3050
|
+
gitInfo?: ThreadGitInfo | null;
|
|
2978
3051
|
goal?: ThreadGoal | null;
|
|
2979
3052
|
historyMode: string;
|
|
2980
3053
|
id: string;
|
|
@@ -3701,6 +3774,11 @@ export interface ThreadForkResult {
|
|
|
3701
3774
|
thread?: SessionThread;
|
|
3702
3775
|
[key: string]: unknown;
|
|
3703
3776
|
}
|
|
3777
|
+
export interface ThreadGitInfo {
|
|
3778
|
+
branch?: string;
|
|
3779
|
+
originUrl?: string;
|
|
3780
|
+
[key: string]: unknown;
|
|
3781
|
+
}
|
|
3704
3782
|
export interface ThreadGoal {
|
|
3705
3783
|
createdAt: number;
|
|
3706
3784
|
objective: string;
|
|
@@ -3921,6 +3999,7 @@ export interface ThreadRuntimeState {
|
|
|
3921
3999
|
activeTurnStartedAt?: string | null;
|
|
3922
4000
|
busy?: boolean;
|
|
3923
4001
|
maintenanceKind?: string | null;
|
|
4002
|
+
queuePaused?: boolean;
|
|
3924
4003
|
running?: boolean;
|
|
3925
4004
|
waitingOnApproval?: boolean;
|
|
3926
4005
|
waitingOnInput?: boolean;
|
|
@@ -4015,6 +4094,7 @@ export interface ThreadSummary {
|
|
|
4015
4094
|
displayName?: string | null;
|
|
4016
4095
|
ephemeral?: boolean | null;
|
|
4017
4096
|
forkedFromId?: string | null;
|
|
4097
|
+
gitInfo?: ThreadGitInfo;
|
|
4018
4098
|
goal?: ThreadGoal | null;
|
|
4019
4099
|
id: string;
|
|
4020
4100
|
lastActiveAt?: string | null;
|
|
@@ -4081,6 +4161,7 @@ export interface ThreadWorktreeDirtyHandoffInfo {
|
|
|
4081
4161
|
deletedFileCount?: number;
|
|
4082
4162
|
requested?: boolean;
|
|
4083
4163
|
status?: string;
|
|
4164
|
+
targetStashed?: boolean;
|
|
4084
4165
|
[key: string]: unknown;
|
|
4085
4166
|
}
|
|
4086
4167
|
export interface ThreadWorktreeHandoffParams {
|
|
@@ -4088,10 +4169,18 @@ export interface ThreadWorktreeHandoffParams {
|
|
|
4088
4169
|
branchName?: string | null;
|
|
4089
4170
|
copyDirtyChanges?: boolean | null;
|
|
4090
4171
|
mode?: string;
|
|
4172
|
+
operationId?: string | null;
|
|
4091
4173
|
path?: string | null;
|
|
4092
4174
|
threadId?: string;
|
|
4093
4175
|
[key: string]: unknown;
|
|
4094
4176
|
}
|
|
4177
|
+
export interface ThreadWorktreeHandoffProgressNotification {
|
|
4178
|
+
operationId?: string | null;
|
|
4179
|
+
status?: string;
|
|
4180
|
+
step?: string;
|
|
4181
|
+
threadId?: string;
|
|
4182
|
+
[key: string]: unknown;
|
|
4183
|
+
}
|
|
4095
4184
|
export interface ThreadWorktreeHandoffResponse {
|
|
4096
4185
|
dirtyHandoff?: ThreadWorktreeDirtyHandoffInfo | null;
|
|
4097
4186
|
mode?: string;
|
|
@@ -4124,7 +4213,7 @@ export interface ThreadWorktreeStatus {
|
|
|
4124
4213
|
head?: string | null;
|
|
4125
4214
|
isGitWorktree?: boolean;
|
|
4126
4215
|
path?: string;
|
|
4127
|
-
threadId?: string;
|
|
4216
|
+
threadId?: string | null;
|
|
4128
4217
|
worktree?: ThreadWorktreeInfo;
|
|
4129
4218
|
[key: string]: unknown;
|
|
4130
4219
|
}
|
|
@@ -4297,6 +4386,15 @@ export interface TurnQueueReorderResponse {
|
|
|
4297
4386
|
queuedInputs?: QueuedTurnInput[];
|
|
4298
4387
|
[key: string]: unknown;
|
|
4299
4388
|
}
|
|
4389
|
+
export interface TurnQueueStartParams {
|
|
4390
|
+
queuedInputId?: string | null;
|
|
4391
|
+
threadId?: string;
|
|
4392
|
+
[key: string]: unknown;
|
|
4393
|
+
}
|
|
4394
|
+
export interface TurnQueueStartResponse {
|
|
4395
|
+
turnId?: string;
|
|
4396
|
+
[key: string]: unknown;
|
|
4397
|
+
}
|
|
4300
4398
|
export interface TurnQueueUpdateParams {
|
|
4301
4399
|
expectedTurnId?: string;
|
|
4302
4400
|
queuedInputId?: string;
|
|
@@ -4361,6 +4459,7 @@ export interface UsageDeltaNotification {
|
|
|
4361
4459
|
llmCallDelta?: number;
|
|
4362
4460
|
outputTokens?: number;
|
|
4363
4461
|
reasoningOutputTokens?: number;
|
|
4462
|
+
requestTiming?: UsageRequestTiming | null;
|
|
4364
4463
|
threadId?: string;
|
|
4365
4464
|
totalInputTokens?: number | null;
|
|
4366
4465
|
totalOutputTokens?: number | null;
|
|
@@ -4402,6 +4501,11 @@ export interface UsageHistoryValue {
|
|
|
4402
4501
|
value?: number;
|
|
4403
4502
|
[key: string]: unknown;
|
|
4404
4503
|
}
|
|
4504
|
+
export interface UsageRequestTiming {
|
|
4505
|
+
firstOutputLatencyMs: number;
|
|
4506
|
+
generationMs: number;
|
|
4507
|
+
[key: string]: unknown;
|
|
4508
|
+
}
|
|
4405
4509
|
export interface UsageSummaryParams {
|
|
4406
4510
|
from?: string | null;
|
|
4407
4511
|
to?: string | null;
|
|
@@ -4794,13 +4898,20 @@ export interface WorktreeCreateAndStartResult {
|
|
|
4794
4898
|
[key: string]: unknown;
|
|
4795
4899
|
}
|
|
4796
4900
|
export interface WorktreeListParams {
|
|
4797
|
-
identity?: SessionIdentity | null;
|
|
4798
4901
|
[key: string]: unknown;
|
|
4799
4902
|
}
|
|
4800
4903
|
export interface WorktreeListResult {
|
|
4801
4904
|
data?: ThreadWorktreeStatus[];
|
|
4802
4905
|
[key: string]: unknown;
|
|
4803
4906
|
}
|
|
4907
|
+
export interface WorktreeRemoveParams {
|
|
4908
|
+
discardChanges?: boolean;
|
|
4909
|
+
path?: string;
|
|
4910
|
+
[key: string]: unknown;
|
|
4911
|
+
}
|
|
4912
|
+
export interface WorktreeRemoveResult {
|
|
4913
|
+
[key: string]: unknown;
|
|
4914
|
+
}
|
|
4804
4915
|
export interface WorktreeStatusParams {
|
|
4805
4916
|
threadId?: string;
|
|
4806
4917
|
[key: string]: unknown;
|