@lovable.dev/sdk 1.2.3 → 1.3.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/index.d.ts +21 -282
- package/dist/index.js +0 -47
- package/dist/index.js.map +1 -1
- package/dist/schemas.d.ts +8 -64
- package/dist/schemas.js +6 -32
- package/dist/schemas.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +0 -52
- package/src/generated/paths.ts +20 -253
- package/src/generated/zod/zod.gen.ts +5 -34
- package/src/index.ts +0 -6
- package/src/types.ts +0 -14
package/src/generated/paths.ts
CHANGED
|
@@ -66,26 +66,6 @@ export interface paths {
|
|
|
66
66
|
patch?: never;
|
|
67
67
|
trace?: never;
|
|
68
68
|
};
|
|
69
|
-
"/v1/available-connectors": {
|
|
70
|
-
parameters: {
|
|
71
|
-
query?: never;
|
|
72
|
-
header?: never;
|
|
73
|
-
path?: never;
|
|
74
|
-
cookie?: never;
|
|
75
|
-
};
|
|
76
|
-
/**
|
|
77
|
-
* Browse available connectors
|
|
78
|
-
* @description Returns available connector templates that can be added to a workspace in catalog order.
|
|
79
|
-
*/
|
|
80
|
-
get: operations["get-v1-available-connectors"];
|
|
81
|
-
put?: never;
|
|
82
|
-
post?: never;
|
|
83
|
-
delete?: never;
|
|
84
|
-
options?: never;
|
|
85
|
-
head?: never;
|
|
86
|
-
patch?: never;
|
|
87
|
-
trace?: never;
|
|
88
|
-
};
|
|
89
69
|
"/v1/collaborators": {
|
|
90
70
|
parameters: {
|
|
91
71
|
query?: never;
|
|
@@ -108,26 +88,6 @@ export interface paths {
|
|
|
108
88
|
patch?: never;
|
|
109
89
|
trace?: never;
|
|
110
90
|
};
|
|
111
|
-
"/v1/connections": {
|
|
112
|
-
parameters: {
|
|
113
|
-
query?: never;
|
|
114
|
-
header?: never;
|
|
115
|
-
path?: never;
|
|
116
|
-
cookie?: never;
|
|
117
|
-
};
|
|
118
|
-
/**
|
|
119
|
-
* List connections
|
|
120
|
-
* @description Returns authenticated connector connections in a workspace, sorted by created_at then connection ID.
|
|
121
|
-
*/
|
|
122
|
-
get: operations["get-v1-connections"];
|
|
123
|
-
put?: never;
|
|
124
|
-
post?: never;
|
|
125
|
-
delete?: never;
|
|
126
|
-
options?: never;
|
|
127
|
-
head?: never;
|
|
128
|
-
patch?: never;
|
|
129
|
-
trace?: never;
|
|
130
|
-
};
|
|
131
91
|
"/v1/connectors": {
|
|
132
92
|
parameters: {
|
|
133
93
|
query?: never;
|
|
@@ -137,36 +97,12 @@ export interface paths {
|
|
|
137
97
|
};
|
|
138
98
|
/**
|
|
139
99
|
* List connectors
|
|
140
|
-
* @description Returns connectors for a workspace in
|
|
100
|
+
* @description Returns connectors for a workspace, one item per connector. A connector offered as several types (e.g. standard and mcp) is returned once with every type in its types array, workspace connection state, and a settings page link where it can be set up. Ordered by type (standard, seamless, app-user, mcp), then each type's stable catalog order. Filter with type=standard,seamless,app-user,mcp and status=connected.
|
|
141
101
|
*/
|
|
142
102
|
get: operations["get-v1-connectors"];
|
|
143
103
|
put?: never;
|
|
144
|
-
/**
|
|
145
|
-
* Add connector
|
|
146
|
-
* @description Adds an MCP connector to a workspace. Pass workspace_id in the request body.
|
|
147
|
-
*/
|
|
148
|
-
post: operations["post-v1-connectors"];
|
|
149
|
-
delete?: never;
|
|
150
|
-
options?: never;
|
|
151
|
-
head?: never;
|
|
152
|
-
patch?: never;
|
|
153
|
-
trace?: never;
|
|
154
|
-
};
|
|
155
|
-
"/v1/connectors/{connector_id}": {
|
|
156
|
-
parameters: {
|
|
157
|
-
query?: never;
|
|
158
|
-
header?: never;
|
|
159
|
-
path?: never;
|
|
160
|
-
cookie?: never;
|
|
161
|
-
};
|
|
162
|
-
get?: never;
|
|
163
|
-
put?: never;
|
|
164
104
|
post?: never;
|
|
165
|
-
|
|
166
|
-
* Remove connector
|
|
167
|
-
* @description Removes an MCP connector from a workspace. Pass workspace_id as a query parameter.
|
|
168
|
-
*/
|
|
169
|
-
delete: operations["delete-v1-connectors-connector_id"];
|
|
105
|
+
delete?: never;
|
|
170
106
|
options?: never;
|
|
171
107
|
head?: never;
|
|
172
108
|
patch?: never;
|
|
@@ -1345,7 +1281,7 @@ export interface paths {
|
|
|
1345
1281
|
/**
|
|
1346
1282
|
* Browse available connectors
|
|
1347
1283
|
* @deprecated
|
|
1348
|
-
* @description Deprecated compatibility alias. Prefer GET /v1/
|
|
1284
|
+
* @description Deprecated compatibility alias. Prefer GET /v1/connectors?workspace_id=...
|
|
1349
1285
|
*/
|
|
1350
1286
|
get: operations["get-v1-workspaces-workspace_id-available-connectors"];
|
|
1351
1287
|
put?: never;
|
|
@@ -1408,7 +1344,7 @@ export interface paths {
|
|
|
1408
1344
|
/**
|
|
1409
1345
|
* List connections
|
|
1410
1346
|
* @deprecated
|
|
1411
|
-
* @description Deprecated compatibility
|
|
1347
|
+
* @description Deprecated compatibility endpoint.
|
|
1412
1348
|
*/
|
|
1413
1349
|
get: operations["get-v1-workspaces-workspace_id-connections"];
|
|
1414
1350
|
put?: never;
|
|
@@ -1436,7 +1372,7 @@ export interface paths {
|
|
|
1436
1372
|
/**
|
|
1437
1373
|
* Add connector
|
|
1438
1374
|
* @deprecated
|
|
1439
|
-
* @description Deprecated compatibility
|
|
1375
|
+
* @description Deprecated compatibility endpoint.
|
|
1440
1376
|
*/
|
|
1441
1377
|
post: operations["post-v1-workspaces-workspace_id-connectors"];
|
|
1442
1378
|
delete?: never;
|
|
@@ -1767,14 +1703,6 @@ export interface components {
|
|
|
1767
1703
|
data: components["schemas"]["PublicV1ProjectListItem"][] | null;
|
|
1768
1704
|
pagination: components["schemas"]["Pagination"];
|
|
1769
1705
|
};
|
|
1770
|
-
CursorListResponseV1AvailableConnectorEntry: {
|
|
1771
|
-
data: components["schemas"]["V1AvailableConnectorEntry"][] | null;
|
|
1772
|
-
pagination: components["schemas"]["Pagination"];
|
|
1773
|
-
};
|
|
1774
|
-
CursorListResponseV1ConnectionItem: {
|
|
1775
|
-
data: components["schemas"]["V1ConnectionItem"][] | null;
|
|
1776
|
-
pagination: components["schemas"]["Pagination"];
|
|
1777
|
-
};
|
|
1778
1706
|
CursorListResponseV1MessageListItem: {
|
|
1779
1707
|
data: components["schemas"]["V1MessageListItem"][] | null;
|
|
1780
1708
|
pagination: components["schemas"]["Pagination"];
|
|
@@ -2030,36 +1958,7 @@ export interface components {
|
|
|
2030
1958
|
currentVisitors: number;
|
|
2031
1959
|
data: components["schemas"]["TrendDataPoint"][] | null;
|
|
2032
1960
|
};
|
|
2033
|
-
PublicV1AddConnectorBody: {
|
|
2034
|
-
/**
|
|
2035
|
-
* @description Authentication type
|
|
2036
|
-
* @enum {string}
|
|
2037
|
-
*/
|
|
2038
|
-
auth_type: "none" | "bearer_token";
|
|
2039
|
-
/** @description Catalog connector ID */
|
|
2040
|
-
connector_id?: string;
|
|
2041
|
-
/** @description Display name for this connector */
|
|
2042
|
-
name: string;
|
|
2043
|
-
/** @description Enterprise connectivity endpoint ID */
|
|
2044
|
-
network_transport_endpoint_id?: string;
|
|
2045
|
-
/** @description Enterprise connectivity profile ID */
|
|
2046
|
-
network_transport_profile_id?: string;
|
|
2047
|
-
/** @description Enterprise connectivity transport type */
|
|
2048
|
-
network_transport_type?: string;
|
|
2049
|
-
/** @description Enterprise relay client ID */
|
|
2050
|
-
relay_client_id?: string;
|
|
2051
|
-
/** @description Target service name in relay client route table */
|
|
2052
|
-
relay_service_name?: string;
|
|
2053
|
-
/** @description Bearer token */
|
|
2054
|
-
token?: string;
|
|
2055
|
-
/** @description MCP server URL. Required unless relay_client_id is provided */
|
|
2056
|
-
url?: string;
|
|
2057
|
-
/** @description Workspace ID */
|
|
2058
|
-
workspace_id: string;
|
|
2059
|
-
};
|
|
2060
1961
|
PublicV1ConnectorItem: {
|
|
2061
|
-
/** @description Authentication type, when available */
|
|
2062
|
-
auth_type?: string;
|
|
2063
1962
|
/** @description Connector categories */
|
|
2064
1963
|
categories?: string[] | null;
|
|
2065
1964
|
/** @description Connector category */
|
|
@@ -2076,16 +1975,18 @@ export interface components {
|
|
|
2076
1975
|
is_connected?: boolean;
|
|
2077
1976
|
/** @description Whether the connector is enabled for this workspace, when available */
|
|
2078
1977
|
is_enabled_for_workspace?: boolean;
|
|
2079
|
-
/** @description
|
|
2080
|
-
|
|
1978
|
+
/** @description Lovable settings page where this connector can be set up */
|
|
1979
|
+
settings_url?: string;
|
|
2081
1980
|
/** @description Short connector description */
|
|
2082
1981
|
short_description?: string;
|
|
2083
1982
|
/** @description Connection status, when available */
|
|
2084
1983
|
status?: string;
|
|
2085
1984
|
/** @description Connector summary */
|
|
2086
1985
|
summary?: string;
|
|
2087
|
-
/** @description
|
|
1986
|
+
/** @description Deprecated: first entry of types. Use types instead. */
|
|
2088
1987
|
type: string;
|
|
1988
|
+
/** @description Connector types this connector supports: standard, seamless, app-user, mcp */
|
|
1989
|
+
types?: string[];
|
|
2089
1990
|
};
|
|
2090
1991
|
PublicV1CreateProjectResponse: {
|
|
2091
1992
|
/** @description AI-generated project description */
|
|
@@ -2473,8 +2374,6 @@ export interface components {
|
|
|
2473
2374
|
reason: string;
|
|
2474
2375
|
};
|
|
2475
2376
|
StandardConnectorAPI: {
|
|
2476
|
-
/** @enum {string} */
|
|
2477
|
-
auth_type: "APIKEY" | "OAUTH2" | "OAUTH2_CLIENT_CREDENTIALS" | "WIF" | "STEPS";
|
|
2478
2377
|
can_be_managed: boolean;
|
|
2479
2378
|
/** @description True when the workspace plan allows restricting connection creation to admins (Business and Enterprise) */
|
|
2480
2379
|
can_restrict_to_admins: boolean;
|
|
@@ -3522,6 +3421,11 @@ export interface components {
|
|
|
3522
3421
|
* @description When the user accepted the invitation. Absent on pending invites.
|
|
3523
3422
|
*/
|
|
3524
3423
|
joined_at?: string;
|
|
3424
|
+
/**
|
|
3425
|
+
* Format: double
|
|
3426
|
+
* @description Explicit monthly credit cap for this member. Absent means no per-member cap is set and the workspace default applies. Visible for yourself; visible for other members only with permission to view member usage.
|
|
3427
|
+
*/
|
|
3428
|
+
monthly_credit_limit?: number;
|
|
3525
3429
|
/** @description Workspace role. One of: owner, admin, member, viewer, collaborator. */
|
|
3526
3430
|
role: string;
|
|
3527
3431
|
/** @description Stable opaque identifier for the entry. For active members this is the user ID; for pending invites this is the Spanner-generated membership row id (never an email-derived value). */
|
|
@@ -3766,6 +3670,11 @@ export interface components {
|
|
|
3766
3670
|
* @description Start of the current billing period.
|
|
3767
3671
|
*/
|
|
3768
3672
|
billing_period_start_date?: string;
|
|
3673
|
+
/**
|
|
3674
|
+
* Format: double
|
|
3675
|
+
* @description Default monthly credit cap applied to each member who has no explicit per-member limit. Absent when unset (members are bounded only by the workspace balance) or when the caller lacks permission to view workspace usage.
|
|
3676
|
+
*/
|
|
3677
|
+
default_monthly_member_credit_limit?: number;
|
|
3769
3678
|
/** @description Default visibility applied to new projects. One of: public, private, draft. Absent means the workspace effective default of private. */
|
|
3770
3679
|
default_project_visibility?: string;
|
|
3771
3680
|
/** @description Whether PII scanning is enabled across project resources. */
|
|
@@ -4150,42 +4059,6 @@ export interface operations {
|
|
|
4150
4059
|
};
|
|
4151
4060
|
};
|
|
4152
4061
|
};
|
|
4153
|
-
"get-v1-available-connectors": {
|
|
4154
|
-
parameters: {
|
|
4155
|
-
query: {
|
|
4156
|
-
/** @description Workspace ID */
|
|
4157
|
-
workspace_id: string;
|
|
4158
|
-
/** @description Maximum number of items to return */
|
|
4159
|
-
limit?: number;
|
|
4160
|
-
/** @description Opaque pagination cursor returned by the previous page */
|
|
4161
|
-
cursor?: string;
|
|
4162
|
-
};
|
|
4163
|
-
header?: never;
|
|
4164
|
-
path?: never;
|
|
4165
|
-
cookie?: never;
|
|
4166
|
-
};
|
|
4167
|
-
requestBody?: never;
|
|
4168
|
-
responses: {
|
|
4169
|
-
/** @description OK */
|
|
4170
|
-
200: {
|
|
4171
|
-
headers: {
|
|
4172
|
-
[name: string]: unknown;
|
|
4173
|
-
};
|
|
4174
|
-
content: {
|
|
4175
|
-
"application/json": components["schemas"]["CursorListResponseV1AvailableConnectorEntry"];
|
|
4176
|
-
};
|
|
4177
|
-
};
|
|
4178
|
-
/** @description Error */
|
|
4179
|
-
default: {
|
|
4180
|
-
headers: {
|
|
4181
|
-
[name: string]: unknown;
|
|
4182
|
-
};
|
|
4183
|
-
content: {
|
|
4184
|
-
"application/problem+json": components["schemas"]["ErrorModel"];
|
|
4185
|
-
};
|
|
4186
|
-
};
|
|
4187
|
-
};
|
|
4188
|
-
};
|
|
4189
4062
|
"get-v1-collaborators": {
|
|
4190
4063
|
parameters: {
|
|
4191
4064
|
query: {
|
|
@@ -4225,44 +4098,6 @@ export interface operations {
|
|
|
4225
4098
|
};
|
|
4226
4099
|
};
|
|
4227
4100
|
};
|
|
4228
|
-
"get-v1-connections": {
|
|
4229
|
-
parameters: {
|
|
4230
|
-
query: {
|
|
4231
|
-
/** @description Workspace ID */
|
|
4232
|
-
workspace_id: string;
|
|
4233
|
-
/** @description Optional connector ID filter */
|
|
4234
|
-
connector_id?: string;
|
|
4235
|
-
/** @description Maximum number of items to return */
|
|
4236
|
-
limit?: number;
|
|
4237
|
-
/** @description Opaque pagination cursor returned by the previous page */
|
|
4238
|
-
cursor?: string;
|
|
4239
|
-
};
|
|
4240
|
-
header?: never;
|
|
4241
|
-
path?: never;
|
|
4242
|
-
cookie?: never;
|
|
4243
|
-
};
|
|
4244
|
-
requestBody?: never;
|
|
4245
|
-
responses: {
|
|
4246
|
-
/** @description OK */
|
|
4247
|
-
200: {
|
|
4248
|
-
headers: {
|
|
4249
|
-
[name: string]: unknown;
|
|
4250
|
-
};
|
|
4251
|
-
content: {
|
|
4252
|
-
"application/json": components["schemas"]["CursorListResponseV1ConnectionItem"];
|
|
4253
|
-
};
|
|
4254
|
-
};
|
|
4255
|
-
/** @description Error */
|
|
4256
|
-
default: {
|
|
4257
|
-
headers: {
|
|
4258
|
-
[name: string]: unknown;
|
|
4259
|
-
};
|
|
4260
|
-
content: {
|
|
4261
|
-
"application/problem+json": components["schemas"]["ErrorModel"];
|
|
4262
|
-
};
|
|
4263
|
-
};
|
|
4264
|
-
};
|
|
4265
|
-
};
|
|
4266
4101
|
"get-v1-connectors": {
|
|
4267
4102
|
parameters: {
|
|
4268
4103
|
query: {
|
|
@@ -4303,74 +4138,6 @@ export interface operations {
|
|
|
4303
4138
|
};
|
|
4304
4139
|
};
|
|
4305
4140
|
};
|
|
4306
|
-
"post-v1-connectors": {
|
|
4307
|
-
parameters: {
|
|
4308
|
-
query?: never;
|
|
4309
|
-
header?: never;
|
|
4310
|
-
path?: never;
|
|
4311
|
-
cookie?: never;
|
|
4312
|
-
};
|
|
4313
|
-
requestBody: {
|
|
4314
|
-
content: {
|
|
4315
|
-
"application/json": components["schemas"]["PublicV1AddConnectorBody"];
|
|
4316
|
-
};
|
|
4317
|
-
};
|
|
4318
|
-
responses: {
|
|
4319
|
-
/** @description Created */
|
|
4320
|
-
201: {
|
|
4321
|
-
headers: {
|
|
4322
|
-
[name: string]: unknown;
|
|
4323
|
-
};
|
|
4324
|
-
content: {
|
|
4325
|
-
"application/json": components["schemas"]["V1ConnectorResponse"];
|
|
4326
|
-
};
|
|
4327
|
-
};
|
|
4328
|
-
/** @description Error */
|
|
4329
|
-
default: {
|
|
4330
|
-
headers: {
|
|
4331
|
-
[name: string]: unknown;
|
|
4332
|
-
};
|
|
4333
|
-
content: {
|
|
4334
|
-
"application/problem+json": components["schemas"]["ErrorModel"];
|
|
4335
|
-
};
|
|
4336
|
-
};
|
|
4337
|
-
};
|
|
4338
|
-
};
|
|
4339
|
-
"delete-v1-connectors-connector_id": {
|
|
4340
|
-
parameters: {
|
|
4341
|
-
query: {
|
|
4342
|
-
/** @description Workspace ID */
|
|
4343
|
-
workspace_id: string;
|
|
4344
|
-
};
|
|
4345
|
-
header?: never;
|
|
4346
|
-
path: {
|
|
4347
|
-
/** @description Connector ID */
|
|
4348
|
-
connector_id: string;
|
|
4349
|
-
};
|
|
4350
|
-
cookie?: never;
|
|
4351
|
-
};
|
|
4352
|
-
requestBody?: never;
|
|
4353
|
-
responses: {
|
|
4354
|
-
/** @description OK */
|
|
4355
|
-
200: {
|
|
4356
|
-
headers: {
|
|
4357
|
-
[name: string]: unknown;
|
|
4358
|
-
};
|
|
4359
|
-
content: {
|
|
4360
|
-
"application/json": components["schemas"]["V1RemoveConnectorOutputBody"];
|
|
4361
|
-
};
|
|
4362
|
-
};
|
|
4363
|
-
/** @description Error */
|
|
4364
|
-
default: {
|
|
4365
|
-
headers: {
|
|
4366
|
-
[name: string]: unknown;
|
|
4367
|
-
};
|
|
4368
|
-
content: {
|
|
4369
|
-
"application/problem+json": components["schemas"]["ErrorModel"];
|
|
4370
|
-
};
|
|
4371
|
-
};
|
|
4372
|
-
};
|
|
4373
|
-
};
|
|
4374
4141
|
"get-v1-credit-history": {
|
|
4375
4142
|
parameters: {
|
|
4376
4143
|
query: {
|
|
@@ -191,22 +191,7 @@ export const CursorListResponseProjectPiiFindingDtoSchema = z.object({
|
|
|
191
191
|
pagination: PaginationSchema
|
|
192
192
|
});
|
|
193
193
|
|
|
194
|
-
export const PublicV1AddConnectorBodySchema = z.object({
|
|
195
|
-
auth_type: z.enum(['none', 'bearer_token']),
|
|
196
|
-
connector_id: z.string().optional(),
|
|
197
|
-
name: z.string().min(1),
|
|
198
|
-
network_transport_endpoint_id: z.string().optional(),
|
|
199
|
-
network_transport_profile_id: z.string().optional(),
|
|
200
|
-
network_transport_type: z.string().optional(),
|
|
201
|
-
relay_client_id: z.string().optional(),
|
|
202
|
-
relay_service_name: z.string().optional(),
|
|
203
|
-
token: z.string().optional(),
|
|
204
|
-
url: z.string().optional(),
|
|
205
|
-
workspace_id: z.string()
|
|
206
|
-
});
|
|
207
|
-
|
|
208
194
|
export const PublicV1ConnectorItemSchema = z.object({
|
|
209
|
-
auth_type: z.string().optional(),
|
|
210
195
|
categories: z.array(z.string()).nullish(),
|
|
211
196
|
category: z.string().optional(),
|
|
212
197
|
connector_id: z.string().optional(),
|
|
@@ -215,11 +200,12 @@ export const PublicV1ConnectorItemSchema = z.object({
|
|
|
215
200
|
id: z.string(),
|
|
216
201
|
is_connected: z.boolean().optional(),
|
|
217
202
|
is_enabled_for_workspace: z.boolean().optional(),
|
|
218
|
-
|
|
203
|
+
settings_url: z.string().optional(),
|
|
219
204
|
short_description: z.string().optional(),
|
|
220
205
|
status: z.string().optional(),
|
|
221
206
|
summary: z.string().optional(),
|
|
222
|
-
type: z.string()
|
|
207
|
+
type: z.string(),
|
|
208
|
+
types: z.array(z.string()).optional()
|
|
223
209
|
});
|
|
224
210
|
|
|
225
211
|
export const CursorListResponsePublicV1ConnectorItemSchema = z.object({
|
|
@@ -473,13 +459,6 @@ export const StandardConnectorPromotionSchema = z.object({
|
|
|
473
459
|
});
|
|
474
460
|
|
|
475
461
|
export const StandardConnectorApiSchema = z.object({
|
|
476
|
-
auth_type: z.enum([
|
|
477
|
-
'APIKEY',
|
|
478
|
-
'OAUTH2',
|
|
479
|
-
'OAUTH2_CLIENT_CREDENTIALS',
|
|
480
|
-
'WIF',
|
|
481
|
-
'STEPS'
|
|
482
|
-
]),
|
|
483
462
|
can_be_managed: z.boolean(),
|
|
484
463
|
can_restrict_to_admins: z.boolean(),
|
|
485
464
|
categories: z.array(z.enum([
|
|
@@ -645,11 +624,6 @@ export const V1AvailableConnectorEntrySchema = z.object({
|
|
|
645
624
|
summary: z.string()
|
|
646
625
|
});
|
|
647
626
|
|
|
648
|
-
export const CursorListResponseV1AvailableConnectorEntrySchema = z.object({
|
|
649
|
-
data: z.array(V1AvailableConnectorEntrySchema).nullable(),
|
|
650
|
-
pagination: PaginationSchema
|
|
651
|
-
});
|
|
652
|
-
|
|
653
627
|
export const V1AwaitingInputSummarySchema = z.object({
|
|
654
628
|
event_id: z.string(),
|
|
655
629
|
input_schema: z.unknown().optional(),
|
|
@@ -682,11 +656,6 @@ export const V1ConnectionItemSchema = z.object({
|
|
|
682
656
|
updated_at: z.string()
|
|
683
657
|
});
|
|
684
658
|
|
|
685
|
-
export const CursorListResponseV1ConnectionItemSchema = z.object({
|
|
686
|
-
data: z.array(V1ConnectionItemSchema).nullable(),
|
|
687
|
-
pagination: PaginationSchema
|
|
688
|
-
});
|
|
689
|
-
|
|
690
659
|
export const V1ConnectorResponseSchema = z.object({
|
|
691
660
|
auth_type: z.string(),
|
|
692
661
|
connector_id: z.string().optional(),
|
|
@@ -1269,6 +1238,7 @@ export const V1WorkspaceMemberSchema = z.object({
|
|
|
1269
1238
|
email: z.string().optional(),
|
|
1270
1239
|
invited_at: z.iso.datetime().optional(),
|
|
1271
1240
|
joined_at: z.iso.datetime().optional(),
|
|
1241
|
+
monthly_credit_limit: z.number().optional(),
|
|
1272
1242
|
role: z.string(),
|
|
1273
1243
|
user_id: z.string(),
|
|
1274
1244
|
workspace_id: z.string()
|
|
@@ -1421,6 +1391,7 @@ export const V1WorkspaceSecurityDashboardBodySchema = z.object({
|
|
|
1421
1391
|
export const V1WorkspaceSettingsBodySchema = z.object({
|
|
1422
1392
|
billing_period_end_date: z.iso.datetime().optional(),
|
|
1423
1393
|
billing_period_start_date: z.iso.datetime().optional(),
|
|
1394
|
+
default_monthly_member_credit_limit: z.number().optional(),
|
|
1424
1395
|
default_project_visibility: z.string().optional(),
|
|
1425
1396
|
enable_pii: z.boolean(),
|
|
1426
1397
|
enforce_sso: z.boolean(),
|
package/src/index.ts
CHANGED
|
@@ -69,20 +69,14 @@ export type {
|
|
|
69
69
|
TemplateProjectResponse,
|
|
70
70
|
ListLibraryProjectsResponse,
|
|
71
71
|
ListTemplateProjectsResponse,
|
|
72
|
-
ConnectorResponse,
|
|
73
|
-
AvailableConnectorEntry,
|
|
74
|
-
AddConnectorBody,
|
|
75
72
|
ConnectorItem,
|
|
76
73
|
StandardConnectorItem,
|
|
77
74
|
SeamlessConnectorItem,
|
|
78
75
|
MCPConnectorItem,
|
|
79
|
-
ConnectionItem,
|
|
80
76
|
ListConnectorsResponse,
|
|
81
|
-
ListAvailableConnectorsResponse,
|
|
82
77
|
ListStandardConnectorsResponse,
|
|
83
78
|
ListSeamlessConnectorsResponse,
|
|
84
79
|
ListMCPConnectorsResponse,
|
|
85
|
-
ListConnectionsResponse,
|
|
86
80
|
TimeSeriesDataPoint,
|
|
87
81
|
TimeSeriesData,
|
|
88
82
|
ListDataPoint,
|
package/src/types.ts
CHANGED
|
@@ -155,24 +155,15 @@ export type ListTemplateProjectsResponse = {
|
|
|
155
155
|
|
|
156
156
|
// --- Connectors ---
|
|
157
157
|
|
|
158
|
-
export type ConnectorResponse = Schemas["V1ConnectorResponse"];
|
|
159
|
-
export type AvailableConnectorEntry = Schemas["V1AvailableConnectorEntry"];
|
|
160
|
-
export type AddConnectorBody = Omit<Schemas["PublicV1AddConnectorBody"], "workspace_id">;
|
|
161
158
|
export type ConnectorItem = Schemas["PublicV1ConnectorItem"];
|
|
162
159
|
export type StandardConnectorItem = ConnectorItem;
|
|
163
160
|
export type SeamlessConnectorItem = ConnectorItem;
|
|
164
161
|
export type MCPConnectorItem = ConnectorItem;
|
|
165
|
-
export type ConnectionItem = Schemas["V1ConnectionItem"];
|
|
166
162
|
export type ListConnectorsResponse = Omit<Schemas["CursorListResponsePublicV1ConnectorItem"], "data"> & {
|
|
167
163
|
data: ConnectorItem[];
|
|
168
164
|
connectors: ConnectorItem[];
|
|
169
165
|
has_more: boolean;
|
|
170
166
|
};
|
|
171
|
-
export type ListAvailableConnectorsResponse = Omit<Schemas["CursorListResponseV1AvailableConnectorEntry"], "data"> & {
|
|
172
|
-
data: AvailableConnectorEntry[];
|
|
173
|
-
catalog: AvailableConnectorEntry[];
|
|
174
|
-
has_more: boolean;
|
|
175
|
-
};
|
|
176
167
|
export type ListStandardConnectorsResponse = Omit<ListConnectorsResponse, "connectors"> & {
|
|
177
168
|
connectors: StandardConnectorItem[];
|
|
178
169
|
};
|
|
@@ -184,11 +175,6 @@ export type ListMCPConnectorsResponse = Omit<ListConnectorsResponse, "connectors
|
|
|
184
175
|
data: MCPConnectorItem[];
|
|
185
176
|
connectors: MCPConnectorItem[];
|
|
186
177
|
};
|
|
187
|
-
export type ListConnectionsResponse = Omit<Schemas["CursorListResponseV1ConnectionItem"], "data"> & {
|
|
188
|
-
data: ConnectionItem[];
|
|
189
|
-
connections: ConnectionItem[];
|
|
190
|
-
has_more: boolean;
|
|
191
|
-
};
|
|
192
178
|
|
|
193
179
|
// --- Analytics ---
|
|
194
180
|
|