@stacklink/sdk 0.6.4 → 0.6.5
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/README.md +16 -0
- package/compatibility.json +1 -1
- package/dist/src/domain/billing-plans.d.ts +139 -10
- package/dist/src/domain/billing-plans.d.ts.map +1 -1
- package/dist/src/domain/billing-plans.js +64 -10
- package/dist/src/domain/billing-plans.js.map +1 -1
- package/dist/src/domain/bot-contract.d.ts +1691 -1122
- package/dist/src/domain/bot-contract.d.ts.map +1 -1
- package/dist/src/domain/bot-contract.js +41 -2
- package/dist/src/domain/bot-contract.js.map +1 -1
- package/dist/src/domain/bot-library.d.ts +192 -0
- package/dist/src/domain/bot-library.d.ts.map +1 -0
- package/dist/src/domain/bot-library.js +180 -0
- package/dist/src/domain/bot-library.js.map +1 -0
- package/dist/src/domain/memory-contract.d.ts +776 -683
- package/dist/src/domain/memory-contract.d.ts.map +1 -1
- package/dist/src/domain/memory-contract.js +43 -15
- package/dist/src/domain/memory-contract.js.map +1 -1
- package/dist/src/domain/platform-approval-contract.d.ts +52 -52
- package/dist/src/domain/stacklink-meta-tools.d.ts +1 -1
- package/dist/src/domain/stacklink-meta-tools.js +2 -2
- package/dist/src/domain/stacklink-meta-tools.js.map +1 -1
- package/dist/src/domain/workflow-contract.d.ts +1236 -1236
- package/dist/src/sdk/index.d.ts +55 -7
- package/dist/src/sdk/index.d.ts.map +1 -1
- package/dist/src/sdk/index.js +13 -1
- package/dist/src/sdk/index.js.map +1 -1
- package/package.json +1 -1
package/dist/src/sdk/index.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import type { ReviewHost, ReviewRepository, ReviewRequest, ReviewResult, ReviewSetupView } from '../domain/bot-contract.js';
|
|
2
|
+
import type { ReviewPreviewRequest, ReviewPullRequest } from '../domain/bot-library.js';
|
|
3
|
+
export type { BotJobs, ReviewHost, ReviewRepository, ReviewSettings, ReviewRequest, ReviewResult, ReviewSetupView } from '../domain/bot-contract.js';
|
|
4
|
+
export type { ReviewPreviewRequest, ReviewPullRequest } from '../domain/bot-library.js';
|
|
1
5
|
import type { BillingCreditsSummary } from '../domain/billing-plans.js';
|
|
2
6
|
import type { WorkflowMention, WorkflowMentionCatalog, WorkflowMentionReference, WorkflowMentionItem, WorkflowDefinitionInput, WorkflowTriggerInput, WorkflowTriggerConfiguration, WorkflowDefinition, WorkflowRunView, WorkflowView } from '../domain/workflow-contract.js';
|
|
3
7
|
export type { WorkflowMention, WorkflowMentionCatalog, WorkflowMentionReference, WorkflowMentionItem, WorkflowEmbedAccessInput, WorkflowEmbedConfig, WorkflowEmbedSettingsView, WorkflowAnalyticsView, WorkflowCustomerView, WorkflowCustomerDetail, WorkflowActivityView, WorkflowApprovalInbox, WorkflowDefinitionInput, WorkflowTriggerInput, WorkflowTriggerConfiguration, WorkflowValue, WorkflowCondition, WorkflowDefinition, WorkflowNode, WorkflowRunView, WorkflowView } from '../domain/workflow-contract.js';
|
|
@@ -17,7 +21,7 @@ export type { StacklinkMemoryAvailabilityMode, StacklinkMemoryCaptureController,
|
|
|
17
21
|
export type StacklinkFetch = typeof fetch;
|
|
18
22
|
export type StacklinkMcpToolName = StacklinkMetaToolName;
|
|
19
23
|
export type StacklinkToolSurfaceName = StacklinkMcpToolName | (string & {});
|
|
20
|
-
export declare const stacklinkTypeScriptSdkVersion = "0.6.
|
|
24
|
+
export declare const stacklinkTypeScriptSdkVersion = "0.6.5";
|
|
21
25
|
export declare class StacklinkApiError extends Error {
|
|
22
26
|
readonly statusCode: number;
|
|
23
27
|
readonly code?: string | undefined;
|
|
@@ -3823,7 +3827,51 @@ export declare class StacklinkBotsClient {
|
|
|
3823
3827
|
sessionId: string;
|
|
3824
3828
|
}) => Promise<BotFileLink>;
|
|
3825
3829
|
};
|
|
3830
|
+
readonly reviews: {
|
|
3831
|
+
setup: (botId: string) => Promise<ReviewSetupView>;
|
|
3832
|
+
repositories: (botId: string, query: {
|
|
3833
|
+
host: ReviewHost;
|
|
3834
|
+
connectedAccountId: string;
|
|
3835
|
+
}) => Promise<{
|
|
3836
|
+
repositories: ReviewRepository[];
|
|
3837
|
+
}>;
|
|
3838
|
+
pullRequests: (botId: string) => Promise<{
|
|
3839
|
+
revision: number;
|
|
3840
|
+
pullRequests: ReviewPullRequest[];
|
|
3841
|
+
repositories: Array<{
|
|
3842
|
+
host: ReviewHost;
|
|
3843
|
+
repositoryId: string;
|
|
3844
|
+
hasMore: boolean;
|
|
3845
|
+
error: string | null;
|
|
3846
|
+
}>;
|
|
3847
|
+
}>;
|
|
3848
|
+
preview: (botId: string, input: ReviewPreviewRequest) => Promise<{
|
|
3849
|
+
id: string;
|
|
3850
|
+
runId: string;
|
|
3851
|
+
status: string;
|
|
3852
|
+
}>;
|
|
3853
|
+
request: (botId: string, input: ReviewRequest) => Promise<ReviewResult>;
|
|
3854
|
+
get: (botId: string, reviewId: string) => Promise<ReviewResult>;
|
|
3855
|
+
};
|
|
3826
3856
|
constructor(client: Stacklink);
|
|
3857
|
+
jobs(): Promise<{
|
|
3858
|
+
jobs: Array<{
|
|
3859
|
+
key: "reviewCode";
|
|
3860
|
+
name: string;
|
|
3861
|
+
hosts: ReviewHost[];
|
|
3862
|
+
settings: Record<string, unknown>;
|
|
3863
|
+
request: Record<string, unknown>;
|
|
3864
|
+
preview: Record<string, unknown>;
|
|
3865
|
+
setup: string;
|
|
3866
|
+
permissions: Record<string, string>;
|
|
3867
|
+
previewWrites: false;
|
|
3868
|
+
publishWrites: string[];
|
|
3869
|
+
limits: string;
|
|
3870
|
+
}>;
|
|
3871
|
+
}>;
|
|
3872
|
+
install(key: 'code-reviewer', requestId: string): Promise<{
|
|
3873
|
+
botId: string;
|
|
3874
|
+
}>;
|
|
3827
3875
|
apis(): Promise<{
|
|
3828
3876
|
apis: SavedBotApi[];
|
|
3829
3877
|
}>;
|
|
@@ -4038,19 +4086,21 @@ export declare class StacklinkWorkflowsClient {
|
|
|
4038
4086
|
}>;
|
|
4039
4087
|
saveTrigger(id: string, input: WorkflowTriggerInput): Promise<{
|
|
4040
4088
|
kind: "webhook" | "form" | "schedule" | "app_event" | "workflow_failed";
|
|
4041
|
-
sessionId: string;
|
|
4042
|
-
name: string;
|
|
4043
|
-
input: Record<string, unknown>;
|
|
4044
4089
|
enabled: boolean;
|
|
4090
|
+
name: string;
|
|
4091
|
+
sessionId: string;
|
|
4045
4092
|
timezone: string;
|
|
4093
|
+
input: Record<string, unknown>;
|
|
4046
4094
|
missedRuns: "latest" | "skip";
|
|
4047
|
-
version?: number | undefined;
|
|
4048
4095
|
id?: string | undefined;
|
|
4096
|
+
version?: number | undefined;
|
|
4049
4097
|
form?: {
|
|
4050
4098
|
description: string;
|
|
4051
4099
|
title: string;
|
|
4052
4100
|
answerSchema: Record<string, unknown>;
|
|
4053
4101
|
} | undefined;
|
|
4102
|
+
subscriptionId?: string | undefined;
|
|
4103
|
+
cron?: string | undefined;
|
|
4054
4104
|
inputMapping?: Record<string, {
|
|
4055
4105
|
kind: "literal";
|
|
4056
4106
|
value?: unknown;
|
|
@@ -4062,8 +4112,6 @@ export declare class StacklinkWorkflowsClient {
|
|
|
4062
4112
|
kind: "step";
|
|
4063
4113
|
stepId: string;
|
|
4064
4114
|
}> | undefined;
|
|
4065
|
-
cron?: string | undefined;
|
|
4066
|
-
subscriptionId?: string | undefined;
|
|
4067
4115
|
sourceWorkflowId?: string | undefined;
|
|
4068
4116
|
} & {
|
|
4069
4117
|
revision: number;
|