@lovable.dev/sdk 1.7.5 → 1.9.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/README.md +158 -308
- package/dist/index.d.ts +934 -722
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/schemas.d.ts +2920 -267
- package/dist/schemas.js +675 -202
- package/dist/schemas.js.map +1 -1
- package/package.json +2 -1
- package/src/client.ts +2 -0
- package/src/generated/paths.ts +916 -707
- package/src/generated/version.ts +1 -1
- package/src/generated/zod/zod.gen.ts +517 -190
- package/src/index.ts +1 -0
- package/src/schemas-deprecated.ts +234 -0
- package/src/schemas.ts +11 -17
- package/src/types.ts +18 -15
package/src/index.ts
CHANGED
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
// Deprecated aliases for the Zod schemas renamed when the public OpenAPI
|
|
2
|
+
// document adopted stable component names. Removed in the next major release.
|
|
3
|
+
|
|
4
|
+
import {
|
|
5
|
+
AnalyticsBreakdownGroupSchema,
|
|
6
|
+
AnalyticsBreakdownPointSchema,
|
|
7
|
+
AnalyticsBreakdownSchema,
|
|
8
|
+
AnalyticsTrendSchema,
|
|
9
|
+
BillingPeriodSchema,
|
|
10
|
+
ConnectorUsageSchema,
|
|
11
|
+
CreateEmbedUrlRequestSchema,
|
|
12
|
+
CreateEmbedUrlResponseSchema,
|
|
13
|
+
CreditBalanceSchema,
|
|
14
|
+
CreditGrantTypeBalanceSchema,
|
|
15
|
+
CreditHistoryEntrySchema,
|
|
16
|
+
CreditHistoryPageSchema,
|
|
17
|
+
CreditLimitPageSchema,
|
|
18
|
+
CreditUsageEntrySchema,
|
|
19
|
+
CreditUsagePageSchema,
|
|
20
|
+
CreditUsagePeriodSchema,
|
|
21
|
+
CurrentUserSchema,
|
|
22
|
+
CurrentUserWorkspaceSchema,
|
|
23
|
+
DatabaseUsageSchema,
|
|
24
|
+
DeploymentSchema,
|
|
25
|
+
ExpiringCreditGrantSchema,
|
|
26
|
+
GatewayModelUsageSchema,
|
|
27
|
+
GetWorkspaceResponseSchema,
|
|
28
|
+
MemberCreditLimitResultSchema,
|
|
29
|
+
MemberCreditLimitSchema,
|
|
30
|
+
MemberCreditLimitUpdateSchema,
|
|
31
|
+
PiiLabelPageSchema,
|
|
32
|
+
PiiLabelSchema,
|
|
33
|
+
ProjectAnalyticsSchema,
|
|
34
|
+
ProjectCollaboratorPageSchema,
|
|
35
|
+
ProjectCollaboratorSchema,
|
|
36
|
+
ProjectSchema,
|
|
37
|
+
ProjectSummaryPageSchema,
|
|
38
|
+
ProjectSummarySchema,
|
|
39
|
+
PublishAudienceTargetSchema,
|
|
40
|
+
PublishProjectRequestSchema,
|
|
41
|
+
PublishProjectResponseSchema,
|
|
42
|
+
PublishSettingsSchema,
|
|
43
|
+
RemixJobSchema,
|
|
44
|
+
RemixResultSchema,
|
|
45
|
+
SecurityFindingSchema,
|
|
46
|
+
SecurityScanActorSchema,
|
|
47
|
+
SecurityScanDetailSchema,
|
|
48
|
+
SecurityScanPageSchema,
|
|
49
|
+
SecurityScanSchema,
|
|
50
|
+
SecurityScannerRunSchema,
|
|
51
|
+
SetMemberCreditLimitsRequestSchema,
|
|
52
|
+
SetMemberCreditLimitsResponseSchema,
|
|
53
|
+
TriggerSecurityScanResponseSchema,
|
|
54
|
+
UpdateProjectRequestSchema,
|
|
55
|
+
UpdatePublishSettingsRequestSchema,
|
|
56
|
+
UpdateWorkspaceSettingsRequestSchema,
|
|
57
|
+
WorkspaceAnalyticsSchema,
|
|
58
|
+
WorkspaceGroupPageSchema,
|
|
59
|
+
WorkspaceGroupSchema,
|
|
60
|
+
WorkspaceInsightsActivityFreshnessSchema,
|
|
61
|
+
WorkspaceInsightsEdgeFunctionSchema,
|
|
62
|
+
WorkspaceInsightsFindingSchema,
|
|
63
|
+
WorkspaceInsightsOwnerSchema,
|
|
64
|
+
WorkspaceInsightsProjectPageSchema,
|
|
65
|
+
WorkspaceInsightsProjectSchema,
|
|
66
|
+
WorkspaceInsightsReasonSchema,
|
|
67
|
+
WorkspaceInsightsReasonValuesSchema,
|
|
68
|
+
WorkspaceInsightsReviewPrioritySchema,
|
|
69
|
+
WorkspaceInsightsSchema,
|
|
70
|
+
WorkspaceInsightsSignalsSchema,
|
|
71
|
+
WorkspaceInsightsStatSchema,
|
|
72
|
+
WorkspaceInsightsSummarySchema,
|
|
73
|
+
WorkspaceMemberGroupSchema,
|
|
74
|
+
WorkspaceMemberPageSchema,
|
|
75
|
+
WorkspaceMemberSchema,
|
|
76
|
+
WorkspaceMembershipSchema,
|
|
77
|
+
WorkspacePageSchema,
|
|
78
|
+
WorkspaceSchema,
|
|
79
|
+
WorkspaceSettingsSchema,
|
|
80
|
+
WorkspaceWithMembershipSchema,
|
|
81
|
+
} from "./generated/zod/zod.gen.js";
|
|
82
|
+
|
|
83
|
+
/** @deprecated Renamed to PiiLabelPageSchema. */
|
|
84
|
+
export const CursorListResponsePublicV1PiiLabelSchema = PiiLabelPageSchema;
|
|
85
|
+
/** @deprecated Renamed to ProjectSummaryPageSchema. */
|
|
86
|
+
export const CursorListResponsePublicV1ProjectListItemSchema = ProjectSummaryPageSchema;
|
|
87
|
+
/** @deprecated Renamed to ProjectCollaboratorPageSchema. */
|
|
88
|
+
export const CursorListResponseV1ProjectCollaboratorSchema = ProjectCollaboratorPageSchema;
|
|
89
|
+
/** @deprecated Renamed to SecurityScanPageSchema. */
|
|
90
|
+
export const CursorListResponseV1SecurityScanSummarySchema = SecurityScanPageSchema;
|
|
91
|
+
/** @deprecated Renamed to WorkspaceGroupPageSchema. */
|
|
92
|
+
export const CursorListResponseV1WorkspaceGroupSchema = WorkspaceGroupPageSchema;
|
|
93
|
+
/** @deprecated Renamed to WorkspaceMemberPageSchema. */
|
|
94
|
+
export const CursorListResponseV1WorkspaceMemberSchema = WorkspaceMemberPageSchema;
|
|
95
|
+
/** @deprecated Renamed to CurrentUserSchema. */
|
|
96
|
+
export const GetMeOutputBodySchema = CurrentUserSchema;
|
|
97
|
+
/** @deprecated Renamed to CurrentUserWorkspaceSchema. */
|
|
98
|
+
export const GetMeWorkspaceSchema = CurrentUserWorkspaceSchema;
|
|
99
|
+
/** @deprecated Renamed to AnalyticsBreakdownPointSchema. */
|
|
100
|
+
export const ListDataPointSchema = AnalyticsBreakdownPointSchema;
|
|
101
|
+
/** @deprecated Renamed to AnalyticsBreakdownSchema. */
|
|
102
|
+
export const ListDataSchema = AnalyticsBreakdownSchema;
|
|
103
|
+
/** @deprecated Renamed to AnalyticsBreakdownGroupSchema. */
|
|
104
|
+
export const ListsGroupSchema = AnalyticsBreakdownGroupSchema;
|
|
105
|
+
/** @deprecated Renamed to AnalyticsTrendSchema. */
|
|
106
|
+
export const ProjectTrendResponseSchema = AnalyticsTrendSchema;
|
|
107
|
+
/** @deprecated Renamed to GetWorkspaceResponseSchema. */
|
|
108
|
+
export const PublicV1GetWorkspaceBodySchema = GetWorkspaceResponseSchema;
|
|
109
|
+
/** @deprecated Renamed to UpdateProjectRequestSchema. */
|
|
110
|
+
export const PublicV1PatchProjectBodySchema = UpdateProjectRequestSchema;
|
|
111
|
+
/** @deprecated Renamed to PiiLabelSchema. */
|
|
112
|
+
export const PublicV1PiiLabelSchema = PiiLabelSchema;
|
|
113
|
+
/** @deprecated Renamed to ProjectAnalyticsSchema. */
|
|
114
|
+
export const PublicV1ProjectAnalyticsBodySchema = ProjectAnalyticsSchema;
|
|
115
|
+
/** @deprecated Renamed to ProjectSummarySchema. */
|
|
116
|
+
export const PublicV1ProjectListItemSchema = ProjectSummarySchema;
|
|
117
|
+
/** @deprecated Renamed to PublishAudienceTargetSchema. */
|
|
118
|
+
export const PublicV1PublishAudienceTargetSchema = PublishAudienceTargetSchema;
|
|
119
|
+
/** @deprecated Renamed to PublishProjectRequestSchema. */
|
|
120
|
+
export const PublicV1PublishProjectInputBodySchema = PublishProjectRequestSchema;
|
|
121
|
+
/** @deprecated Renamed to PublishProjectResponseSchema. */
|
|
122
|
+
export const PublicV1PublishProjectResponseSchema = PublishProjectResponseSchema;
|
|
123
|
+
/** @deprecated Renamed to DeploymentSchema. */
|
|
124
|
+
export const PublicV1PublishStatusResponseSchema = DeploymentSchema;
|
|
125
|
+
/** @deprecated Renamed to RemixJobSchema. */
|
|
126
|
+
export const PublicV1RemixJobOutputBodySchema = RemixJobSchema;
|
|
127
|
+
/** @deprecated Renamed to UpdatePublishSettingsRequestSchema. */
|
|
128
|
+
export const PublicV1UpdatePublishSettingsInputBodySchema = UpdatePublishSettingsRequestSchema;
|
|
129
|
+
/** @deprecated Renamed to PublishSettingsSchema. */
|
|
130
|
+
export const PublicV1UpdatePublishSettingsResponseSchema = PublishSettingsSchema;
|
|
131
|
+
/** @deprecated Renamed to WorkspaceMembershipSchema. */
|
|
132
|
+
export const PublicV1WorkspaceMemberSchema = WorkspaceMembershipSchema;
|
|
133
|
+
/** @deprecated Renamed to WorkspaceSchema. */
|
|
134
|
+
export const PublicV1WorkspaceSchema = WorkspaceSchema;
|
|
135
|
+
/** @deprecated Renamed to WorkspaceWithMembershipSchema. */
|
|
136
|
+
export const PublicV1WorkspaceWithMembershipSchema = WorkspaceWithMembershipSchema;
|
|
137
|
+
/** @deprecated Renamed to SetMemberCreditLimitsRequestSchema. */
|
|
138
|
+
export const V1BillingBulkSetMemberCreditLimitInputBodySchema = SetMemberCreditLimitsRequestSchema;
|
|
139
|
+
/** @deprecated Renamed to MemberCreditLimitSchema. */
|
|
140
|
+
export const V1BillingCreditLimitRowSchema = MemberCreditLimitSchema;
|
|
141
|
+
/** @deprecated Renamed to CreditLimitPageSchema. */
|
|
142
|
+
export const V1BillingCreditLimitsBodySchema = CreditLimitPageSchema;
|
|
143
|
+
/** @deprecated Renamed to BillingPeriodSchema. */
|
|
144
|
+
export const V1BillingPeriodSchema = BillingPeriodSchema;
|
|
145
|
+
/** @deprecated Renamed to CreditUsagePageSchema. */
|
|
146
|
+
export const V1BillingUsageBodySchema = CreditUsagePageSchema;
|
|
147
|
+
/** @deprecated Renamed to CreditUsagePeriodSchema. */
|
|
148
|
+
export const V1BillingUsagePeriodSchema = CreditUsagePeriodSchema;
|
|
149
|
+
/** @deprecated Renamed to CreditUsageEntrySchema. */
|
|
150
|
+
export const V1BillingUsageRowSchema = CreditUsageEntrySchema;
|
|
151
|
+
/** @deprecated Renamed to MemberCreditLimitUpdateSchema. */
|
|
152
|
+
export const V1BulkMemberCreditLimitItemSchema = MemberCreditLimitUpdateSchema;
|
|
153
|
+
/** @deprecated Renamed to MemberCreditLimitResultSchema. */
|
|
154
|
+
export const V1BulkMemberCreditLimitResultSchema = MemberCreditLimitResultSchema;
|
|
155
|
+
/** @deprecated Renamed to SetMemberCreditLimitsResponseSchema. */
|
|
156
|
+
export const V1BulkSetMemberCreditLimitOutputBodySchema = SetMemberCreditLimitsResponseSchema;
|
|
157
|
+
/** @deprecated Renamed to CreateEmbedUrlRequestSchema. */
|
|
158
|
+
export const V1CreateEmbedUrlInputBodySchema = CreateEmbedUrlRequestSchema;
|
|
159
|
+
/** @deprecated Renamed to CreateEmbedUrlResponseSchema. */
|
|
160
|
+
export const V1CreateEmbedUrlOutputBodySchema = CreateEmbedUrlResponseSchema;
|
|
161
|
+
/** @deprecated Renamed to CreditHistoryEntrySchema. */
|
|
162
|
+
export const V1CreditHistoryEntrySchema = CreditHistoryEntrySchema;
|
|
163
|
+
/** @deprecated Renamed to SecurityScanDetailSchema. */
|
|
164
|
+
export const V1GetSecurityScanOutputBodySchema = SecurityScanDetailSchema;
|
|
165
|
+
/** @deprecated Renamed to WorkspacePageSchema. */
|
|
166
|
+
export const V1ListWorkspacesBodySchema = WorkspacePageSchema;
|
|
167
|
+
/** @deprecated Renamed to ProjectCollaboratorSchema. */
|
|
168
|
+
export const V1ProjectCollaboratorSchema = ProjectCollaboratorSchema;
|
|
169
|
+
/** @deprecated Renamed to ProjectSchema. */
|
|
170
|
+
export const V1ProjectResponseSchema = ProjectSchema;
|
|
171
|
+
/** @deprecated Renamed to RemixResultSchema. */
|
|
172
|
+
export const V1RemixProgressResultSchema = RemixResultSchema;
|
|
173
|
+
/** @deprecated Renamed to SecurityFindingSchema. */
|
|
174
|
+
export const V1SecurityFindingSchema = SecurityFindingSchema;
|
|
175
|
+
/** @deprecated Renamed to SecurityScanActorSchema. */
|
|
176
|
+
export const V1SecurityScanActorSchema = SecurityScanActorSchema;
|
|
177
|
+
/** @deprecated Renamed to SecurityScanSchema. */
|
|
178
|
+
export const V1SecurityScanSummarySchema = SecurityScanSchema;
|
|
179
|
+
/** @deprecated Renamed to SecurityScannerRunSchema. */
|
|
180
|
+
export const V1SecurityScannerRunSchema = SecurityScannerRunSchema;
|
|
181
|
+
/** @deprecated Renamed to TriggerSecurityScanResponseSchema. */
|
|
182
|
+
export const V1TriggerSecurityScanResponseBodySchema = TriggerSecurityScanResponseSchema;
|
|
183
|
+
/** @deprecated Renamed to UpdateWorkspaceSettingsRequestSchema. */
|
|
184
|
+
export const V1UpdateWorkspaceSettingsNestedInputBodySchema = UpdateWorkspaceSettingsRequestSchema;
|
|
185
|
+
/** @deprecated Renamed to CreditHistoryPageSchema. */
|
|
186
|
+
export const V1WorkspaceCreditHistoryBodySchema = CreditHistoryPageSchema;
|
|
187
|
+
/** @deprecated Renamed to CreditBalanceSchema. */
|
|
188
|
+
export const V1WorkspaceCreditsBodySchema = CreditBalanceSchema;
|
|
189
|
+
/** @deprecated Renamed to ExpiringCreditGrantSchema. */
|
|
190
|
+
export const V1WorkspaceCreditsExpiringGrantSchema = ExpiringCreditGrantSchema;
|
|
191
|
+
/** @deprecated Renamed to CreditGrantTypeBalanceSchema. */
|
|
192
|
+
export const V1WorkspaceCreditsGrantTypeBalanceSchema = CreditGrantTypeBalanceSchema;
|
|
193
|
+
/** @deprecated Renamed to WorkspaceGroupSchema. */
|
|
194
|
+
export const V1WorkspaceGroupSchema = WorkspaceGroupSchema;
|
|
195
|
+
/** @deprecated Renamed to WorkspaceInsightsActivityFreshnessSchema. */
|
|
196
|
+
export const V1WorkspaceInsightsActivityFreshnessSchema = WorkspaceInsightsActivityFreshnessSchema;
|
|
197
|
+
/** @deprecated Renamed to WorkspaceInsightsSchema. */
|
|
198
|
+
export const V1WorkspaceInsightsBodySchema = WorkspaceInsightsSchema;
|
|
199
|
+
/** @deprecated Renamed to WorkspaceInsightsEdgeFunctionSchema. */
|
|
200
|
+
export const V1WorkspaceInsightsEdgeFunctionSchema = WorkspaceInsightsEdgeFunctionSchema;
|
|
201
|
+
/** @deprecated Renamed to WorkspaceInsightsFindingSchema. */
|
|
202
|
+
export const V1WorkspaceInsightsFindingSchema = WorkspaceInsightsFindingSchema;
|
|
203
|
+
/** @deprecated Renamed to WorkspaceInsightsOwnerSchema. */
|
|
204
|
+
export const V1WorkspaceInsightsOwnerSchema = WorkspaceInsightsOwnerSchema;
|
|
205
|
+
/** @deprecated Renamed to WorkspaceInsightsProjectSchema. */
|
|
206
|
+
export const V1WorkspaceInsightsProjectSchema = WorkspaceInsightsProjectSchema;
|
|
207
|
+
/** @deprecated Renamed to WorkspaceInsightsProjectPageSchema. */
|
|
208
|
+
export const V1WorkspaceInsightsProjectsBodySchema = WorkspaceInsightsProjectPageSchema;
|
|
209
|
+
/** @deprecated Renamed to WorkspaceInsightsReasonSchema. */
|
|
210
|
+
export const V1WorkspaceInsightsReasonSchema = WorkspaceInsightsReasonSchema;
|
|
211
|
+
/** @deprecated Renamed to WorkspaceInsightsReasonValuesSchema. */
|
|
212
|
+
export const V1WorkspaceInsightsReasonValuesSchema = WorkspaceInsightsReasonValuesSchema;
|
|
213
|
+
/** @deprecated Renamed to WorkspaceInsightsReviewPrioritySchema. */
|
|
214
|
+
export const V1WorkspaceInsightsReviewPrioritySchema = WorkspaceInsightsReviewPrioritySchema;
|
|
215
|
+
/** @deprecated Renamed to WorkspaceInsightsSignalsSchema. */
|
|
216
|
+
export const V1WorkspaceInsightsSignalsSchema = WorkspaceInsightsSignalsSchema;
|
|
217
|
+
/** @deprecated Renamed to WorkspaceInsightsStatSchema. */
|
|
218
|
+
export const V1WorkspaceInsightsStatSchema = WorkspaceInsightsStatSchema;
|
|
219
|
+
/** @deprecated Renamed to WorkspaceInsightsSummarySchema. */
|
|
220
|
+
export const V1WorkspaceInsightsSummarySchema = WorkspaceInsightsSummarySchema;
|
|
221
|
+
/** @deprecated Renamed to WorkspaceMemberGroupSchema. */
|
|
222
|
+
export const V1WorkspaceMemberGroupSchema = WorkspaceMemberGroupSchema;
|
|
223
|
+
/** @deprecated Renamed to WorkspaceMemberSchema. */
|
|
224
|
+
export const V1WorkspaceMemberSchema = WorkspaceMemberSchema;
|
|
225
|
+
/** @deprecated Renamed to WorkspaceSettingsSchema. */
|
|
226
|
+
export const V1WorkspaceSettingsBodySchema = WorkspaceSettingsSchema;
|
|
227
|
+
/** @deprecated Renamed to ConnectorUsageSchema. */
|
|
228
|
+
export const V1WorkspaceUsageConnectorBreakdownSchema = ConnectorUsageSchema;
|
|
229
|
+
/** @deprecated Renamed to DatabaseUsageSchema. */
|
|
230
|
+
export const V1WorkspaceUsageDatabaseBreakdownSchema = DatabaseUsageSchema;
|
|
231
|
+
/** @deprecated Renamed to GatewayModelUsageSchema. */
|
|
232
|
+
export const V1WorkspaceUsageGatewayModelSchema = GatewayModelUsageSchema;
|
|
233
|
+
/** @deprecated Renamed to WorkspaceAnalyticsSchema. */
|
|
234
|
+
export const WorkspaceAnalyticsResponseSchema = WorkspaceAnalyticsSchema;
|
package/src/schemas.ts
CHANGED
|
@@ -11,27 +11,21 @@ export * from "./generated/zod/zod.gen.js";
|
|
|
11
11
|
import { z } from "zod";
|
|
12
12
|
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
PublicV1WorkspaceSchema,
|
|
18
|
-
PublicV1WorkspaceWithMembershipSchema,
|
|
14
|
+
GetWorkspaceResponseSchema,
|
|
15
|
+
ProjectSummaryPageSchema,
|
|
16
|
+
WorkspaceMembershipSchema,
|
|
19
17
|
} from "./generated/zod/zod.gen.js";
|
|
20
18
|
|
|
19
|
+
export * from "./schemas-deprecated.js";
|
|
20
|
+
|
|
21
21
|
// Deprecated aliases for schemas renamed by the public response-schema
|
|
22
22
|
// curation; removed in the next major release.
|
|
23
|
-
/** @deprecated Renamed to
|
|
24
|
-
export const CursorListResponseSearchProjectItemSchema =
|
|
25
|
-
/** @deprecated Renamed to
|
|
26
|
-
export const GetUserWorkspaceBodySchema =
|
|
27
|
-
/** @deprecated Renamed to
|
|
28
|
-
export const
|
|
29
|
-
/** @deprecated Renamed to PublicV1WorkspaceMemberSchema. */
|
|
30
|
-
export const WorkspaceMembershipResponseSchema = PublicV1WorkspaceMemberSchema;
|
|
31
|
-
/** @deprecated Renamed to PublicV1WorkspaceMemberSchema. */
|
|
32
|
-
export const WorkspaceMembershipSchema = PublicV1WorkspaceMemberSchema;
|
|
33
|
-
/** @deprecated Renamed to PublicV1WorkspaceWithMembershipSchema. */
|
|
34
|
-
export const WorkspaceWithMembershipSchema = PublicV1WorkspaceWithMembershipSchema;
|
|
23
|
+
/** @deprecated Renamed to ProjectSummaryPageSchema. */
|
|
24
|
+
export const CursorListResponseSearchProjectItemSchema = ProjectSummaryPageSchema;
|
|
25
|
+
/** @deprecated Renamed to GetWorkspaceResponseSchema. */
|
|
26
|
+
export const GetUserWorkspaceBodySchema = GetWorkspaceResponseSchema;
|
|
27
|
+
/** @deprecated Renamed to WorkspaceMembershipSchema. */
|
|
28
|
+
export const WorkspaceMembershipResponseSchema = WorkspaceMembershipSchema;
|
|
35
29
|
|
|
36
30
|
// POST /v1/database/query is served but sits outside the public OpenAPI
|
|
37
31
|
// boundary, so its schemas are not generated; hand-maintained for the MCP
|
package/src/types.ts
CHANGED
|
@@ -24,11 +24,11 @@ type ListConnectorsQuery = NonNullable<paths["/v1/connectors"]["get"]["parameter
|
|
|
24
24
|
|
|
25
25
|
// --- Users & workspaces ---
|
|
26
26
|
|
|
27
|
-
export type MeWorkspace = Schemas["
|
|
28
|
-
export type MeResponse = Schemas["
|
|
29
|
-
export type WorkspaceMembership = Schemas["
|
|
30
|
-
export type WorkspaceWithMembership = Schemas["
|
|
31
|
-
export type GetWorkspacesResponse = Schemas["
|
|
27
|
+
export type MeWorkspace = Schemas["CurrentUserWorkspace"];
|
|
28
|
+
export type MeResponse = Schemas["CurrentUser"];
|
|
29
|
+
export type WorkspaceMembership = Schemas["WorkspaceMembership"];
|
|
30
|
+
export type WorkspaceWithMembership = Schemas["WorkspaceWithMembership"];
|
|
31
|
+
export type GetWorkspacesResponse = Schemas["WorkspacePage"] & {
|
|
32
32
|
workspaces: WorkspaceWithMembership[];
|
|
33
33
|
};
|
|
34
34
|
|
|
@@ -39,15 +39,15 @@ export type MemberRole = WorkspaceMembership["role"];
|
|
|
39
39
|
// --- Projects ---
|
|
40
40
|
|
|
41
41
|
// Lean shape returned by GET /v1/projects/{id} and POST /v1/projects.
|
|
42
|
-
export type ProjectResponse = Schemas["
|
|
42
|
+
export type ProjectResponse = Schemas["Project"];
|
|
43
43
|
export type CreateProjectResponse = Schemas["PublicV1CreateProjectResponse"] & { id: string };
|
|
44
44
|
export type CreateProjectBody = Omit<Schemas["PublicV1ProjectCreateInputBody"], "workspace_id">;
|
|
45
|
-
export type UpdateProjectOptions = Schemas["
|
|
46
|
-
export type EmbedURLResponse = Schemas["
|
|
45
|
+
export type UpdateProjectOptions = Schemas["UpdateProjectRequest"];
|
|
46
|
+
export type EmbedURLResponse = Schemas["CreateEmbedURLResponse"];
|
|
47
47
|
|
|
48
48
|
// Wider listing shape returned by the projects list endpoint.
|
|
49
|
-
export type ListProjectItem = Schemas["
|
|
50
|
-
export type ListProjectsResponse = Schemas["
|
|
49
|
+
export type ListProjectItem = Schemas["ProjectSummary"];
|
|
50
|
+
export type ListProjectsResponse = Schemas["ProjectSummaryPage"] & {
|
|
51
51
|
projects: ListProjectItem[] | null;
|
|
52
52
|
total?: number;
|
|
53
53
|
has_more?: boolean;
|
|
@@ -64,6 +64,7 @@ export type ProjectPatchVisibility = NonNullable<UpdateProjectOptions["visibilit
|
|
|
64
64
|
export type SendMessageResponse = Schemas["V1SendMessageOutputBody"];
|
|
65
65
|
export type GetMessageResponse = Schemas["V1MessageResponse"];
|
|
66
66
|
export type MessageSummary = Schemas["V1MessageListItem"];
|
|
67
|
+
export type MessageCompletionReason = NonNullable<Schemas["V1MessageResponse"]["completion_reason"]>;
|
|
67
68
|
type AwaitingInputSummary = Partial<Schemas["V1AwaitingInputSummary"]>;
|
|
68
69
|
export type ListMessagesResponse = Schemas["CursorListResponseV1MessageListItem"] & {
|
|
69
70
|
messages: MessageSummary[] | null;
|
|
@@ -180,18 +181,18 @@ export type ListMCPConnectorsResponse = Omit<ListConnectorsResponse, "connectors
|
|
|
180
181
|
|
|
181
182
|
export type TimeSeriesDataPoint = Schemas["TimeSeriesDataPoint"];
|
|
182
183
|
export type TimeSeriesData = Schemas["TimeSeriesData"];
|
|
183
|
-
export type ListDataPoint = Schemas["
|
|
184
|
-
export type ListData = Schemas["
|
|
184
|
+
export type ListDataPoint = Schemas["AnalyticsBreakdownPoint"];
|
|
185
|
+
export type ListData = Schemas["AnalyticsBreakdown"];
|
|
185
186
|
export type ProjectAnalyticsResponse = Schemas["ProjectAnalyticsResponse"];
|
|
186
187
|
export type TrendDataPoint = Schemas["TrendDataPoint"];
|
|
187
|
-
export type ProjectAnalyticsTrendResponse = Schemas["
|
|
188
|
+
export type ProjectAnalyticsTrendResponse = Schemas["AnalyticsTrend"];
|
|
188
189
|
|
|
189
190
|
// --- Remix ---
|
|
190
191
|
|
|
191
192
|
export type RemixJobStepInfo = Schemas["RemixJobStepInfo"];
|
|
192
193
|
export type RemixInitResponse = { job_id: string };
|
|
193
|
-
export type RemixProgressResult = Schemas["
|
|
194
|
-
export type RemixProgressResponse = Schemas["
|
|
194
|
+
export type RemixProgressResult = Schemas["RemixResult"];
|
|
195
|
+
export type RemixProgressResponse = Schemas["RemixJob"];
|
|
195
196
|
|
|
196
197
|
// The V1 spec types `status` as plain string. The Go handler returns one of
|
|
197
198
|
// these five values — keep the narrow union here as an SDK-side aid for
|
|
@@ -390,6 +391,8 @@ export interface RemixWaitOptions {
|
|
|
390
391
|
|
|
391
392
|
export interface MessageCompletionResult {
|
|
392
393
|
status: "completed" | "stopped" | "awaiting_input" | "timeout" | "error";
|
|
394
|
+
/** How the turn ended; absent while running, on SDK-side timeout, and for turns that predate it. */
|
|
395
|
+
completion_reason?: MessageCompletionReason;
|
|
393
396
|
message_id: string;
|
|
394
397
|
content: string;
|
|
395
398
|
awaiting_input?: AwaitingInputSummary;
|