@opencode-ai/client 0.0.0-next-15270 → 0.0.0-next-15273
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/effect/api/api.d.ts +1 -3
- package/dist/effect/generated/client.d.ts +490 -67
- package/dist/effect/generated/client.js +1 -8
- package/dist/promise/generated/client.d.ts +293 -38
- package/dist/promise/generated/client.js +1 -8
- package/dist/promise/generated/types.d.ts +1588 -950
- package/package.json +4 -4
|
@@ -1010,15 +1010,14 @@ export declare function make(options: ClientOptions): {
|
|
|
1010
1010
|
request: {
|
|
1011
1011
|
list: (input?: FormRequestListInput, requestOptions?: RequestOptions) => Promise<FormRequestListOutput>;
|
|
1012
1012
|
};
|
|
1013
|
-
list: (input: FormListInput, requestOptions?: RequestOptions) => Promise<
|
|
1013
|
+
list: (input: FormListInput, requestOptions?: RequestOptions) => Promise<{
|
|
1014
1014
|
id: string;
|
|
1015
1015
|
sessionID: string;
|
|
1016
1016
|
title: string;
|
|
1017
1017
|
metadata?: {
|
|
1018
1018
|
[x: string]: import("./types").JsonValue;
|
|
1019
1019
|
};
|
|
1020
|
-
|
|
1021
|
-
fields: Array<{
|
|
1020
|
+
fields: [({
|
|
1022
1021
|
key: string;
|
|
1023
1022
|
title?: string;
|
|
1024
1023
|
description?: string;
|
|
@@ -1101,17 +1100,103 @@ export declare function make(options: ClientOptions): {
|
|
|
1101
1100
|
maxItems?: number;
|
|
1102
1101
|
custom?: boolean;
|
|
1103
1102
|
default?: Array<string>;
|
|
1104
|
-
}
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1103
|
+
} | {
|
|
1104
|
+
key: string;
|
|
1105
|
+
type: "external";
|
|
1106
|
+
url: string;
|
|
1107
|
+
title?: string;
|
|
1108
|
+
description?: string;
|
|
1109
|
+
}), ...Array<{
|
|
1110
|
+
key: string;
|
|
1111
|
+
title?: string;
|
|
1112
|
+
description?: string;
|
|
1113
|
+
required?: boolean;
|
|
1114
|
+
when?: Array<{
|
|
1115
|
+
key: string;
|
|
1116
|
+
op: "eq" | "neq";
|
|
1117
|
+
value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
|
|
1118
|
+
}>;
|
|
1119
|
+
type: "string";
|
|
1120
|
+
format?: "email" | "uri" | "date" | "date-time";
|
|
1121
|
+
minLength?: number;
|
|
1122
|
+
maxLength?: number;
|
|
1123
|
+
pattern?: string;
|
|
1124
|
+
placeholder?: string;
|
|
1125
|
+
default?: string;
|
|
1126
|
+
options?: Array<{
|
|
1127
|
+
value: string;
|
|
1128
|
+
label: string;
|
|
1129
|
+
description?: string;
|
|
1130
|
+
}>;
|
|
1131
|
+
custom?: boolean;
|
|
1132
|
+
} | {
|
|
1133
|
+
key: string;
|
|
1134
|
+
title?: string;
|
|
1135
|
+
description?: string;
|
|
1136
|
+
required?: boolean;
|
|
1137
|
+
when?: Array<{
|
|
1138
|
+
key: string;
|
|
1139
|
+
op: "eq" | "neq";
|
|
1140
|
+
value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
|
|
1141
|
+
}>;
|
|
1142
|
+
type: "number";
|
|
1143
|
+
minimum?: number | "Infinity" | "-Infinity" | "NaN";
|
|
1144
|
+
maximum?: number | "Infinity" | "-Infinity" | "NaN";
|
|
1145
|
+
default?: number | "Infinity" | "-Infinity" | "NaN";
|
|
1146
|
+
} | {
|
|
1147
|
+
key: string;
|
|
1148
|
+
title?: string;
|
|
1149
|
+
description?: string;
|
|
1150
|
+
required?: boolean;
|
|
1151
|
+
when?: Array<{
|
|
1152
|
+
key: string;
|
|
1153
|
+
op: "eq" | "neq";
|
|
1154
|
+
value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
|
|
1155
|
+
}>;
|
|
1156
|
+
type: "integer";
|
|
1157
|
+
minimum?: number | "Infinity" | "-Infinity" | "NaN";
|
|
1158
|
+
maximum?: number | "Infinity" | "-Infinity" | "NaN";
|
|
1159
|
+
default?: number | "Infinity" | "-Infinity" | "NaN";
|
|
1160
|
+
} | {
|
|
1161
|
+
key: string;
|
|
1162
|
+
title?: string;
|
|
1163
|
+
description?: string;
|
|
1164
|
+
required?: boolean;
|
|
1165
|
+
when?: Array<{
|
|
1166
|
+
key: string;
|
|
1167
|
+
op: "eq" | "neq";
|
|
1168
|
+
value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
|
|
1169
|
+
}>;
|
|
1170
|
+
type: "boolean";
|
|
1171
|
+
default?: boolean;
|
|
1172
|
+
} | {
|
|
1173
|
+
key: string;
|
|
1174
|
+
title?: string;
|
|
1175
|
+
description?: string;
|
|
1176
|
+
required?: boolean;
|
|
1177
|
+
when?: Array<{
|
|
1178
|
+
key: string;
|
|
1179
|
+
op: "eq" | "neq";
|
|
1180
|
+
value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
|
|
1181
|
+
}>;
|
|
1182
|
+
type: "multiselect";
|
|
1183
|
+
options: Array<{
|
|
1184
|
+
value: string;
|
|
1185
|
+
label: string;
|
|
1186
|
+
description?: string;
|
|
1187
|
+
}>;
|
|
1188
|
+
minItems?: number;
|
|
1189
|
+
maxItems?: number;
|
|
1190
|
+
custom?: boolean;
|
|
1191
|
+
default?: Array<string>;
|
|
1192
|
+
} | {
|
|
1193
|
+
key: string;
|
|
1194
|
+
type: "external";
|
|
1195
|
+
url: string;
|
|
1196
|
+
title?: string;
|
|
1197
|
+
description?: string;
|
|
1198
|
+
}>];
|
|
1199
|
+
}[]>;
|
|
1115
1200
|
create: (input: FormCreateInput, requestOptions?: RequestOptions) => Promise<{
|
|
1116
1201
|
id: string;
|
|
1117
1202
|
sessionID: string;
|
|
@@ -1119,8 +1204,7 @@ export declare function make(options: ClientOptions): {
|
|
|
1119
1204
|
metadata?: {
|
|
1120
1205
|
[x: string]: import("./types").JsonValue;
|
|
1121
1206
|
};
|
|
1122
|
-
|
|
1123
|
-
fields: Array<{
|
|
1207
|
+
fields: [({
|
|
1124
1208
|
key: string;
|
|
1125
1209
|
title?: string;
|
|
1126
1210
|
description?: string;
|
|
@@ -1203,16 +1287,102 @@ export declare function make(options: ClientOptions): {
|
|
|
1203
1287
|
maxItems?: number;
|
|
1204
1288
|
custom?: boolean;
|
|
1205
1289
|
default?: Array<string>;
|
|
1206
|
-
}
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1290
|
+
} | {
|
|
1291
|
+
key: string;
|
|
1292
|
+
type: "external";
|
|
1293
|
+
url: string;
|
|
1294
|
+
title?: string;
|
|
1295
|
+
description?: string;
|
|
1296
|
+
}), ...Array<{
|
|
1297
|
+
key: string;
|
|
1298
|
+
title?: string;
|
|
1299
|
+
description?: string;
|
|
1300
|
+
required?: boolean;
|
|
1301
|
+
when?: Array<{
|
|
1302
|
+
key: string;
|
|
1303
|
+
op: "eq" | "neq";
|
|
1304
|
+
value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
|
|
1305
|
+
}>;
|
|
1306
|
+
type: "string";
|
|
1307
|
+
format?: "email" | "uri" | "date" | "date-time";
|
|
1308
|
+
minLength?: number;
|
|
1309
|
+
maxLength?: number;
|
|
1310
|
+
pattern?: string;
|
|
1311
|
+
placeholder?: string;
|
|
1312
|
+
default?: string;
|
|
1313
|
+
options?: Array<{
|
|
1314
|
+
value: string;
|
|
1315
|
+
label: string;
|
|
1316
|
+
description?: string;
|
|
1317
|
+
}>;
|
|
1318
|
+
custom?: boolean;
|
|
1319
|
+
} | {
|
|
1320
|
+
key: string;
|
|
1321
|
+
title?: string;
|
|
1322
|
+
description?: string;
|
|
1323
|
+
required?: boolean;
|
|
1324
|
+
when?: Array<{
|
|
1325
|
+
key: string;
|
|
1326
|
+
op: "eq" | "neq";
|
|
1327
|
+
value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
|
|
1328
|
+
}>;
|
|
1329
|
+
type: "number";
|
|
1330
|
+
minimum?: number | "Infinity" | "-Infinity" | "NaN";
|
|
1331
|
+
maximum?: number | "Infinity" | "-Infinity" | "NaN";
|
|
1332
|
+
default?: number | "Infinity" | "-Infinity" | "NaN";
|
|
1333
|
+
} | {
|
|
1334
|
+
key: string;
|
|
1335
|
+
title?: string;
|
|
1336
|
+
description?: string;
|
|
1337
|
+
required?: boolean;
|
|
1338
|
+
when?: Array<{
|
|
1339
|
+
key: string;
|
|
1340
|
+
op: "eq" | "neq";
|
|
1341
|
+
value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
|
|
1342
|
+
}>;
|
|
1343
|
+
type: "integer";
|
|
1344
|
+
minimum?: number | "Infinity" | "-Infinity" | "NaN";
|
|
1345
|
+
maximum?: number | "Infinity" | "-Infinity" | "NaN";
|
|
1346
|
+
default?: number | "Infinity" | "-Infinity" | "NaN";
|
|
1347
|
+
} | {
|
|
1348
|
+
key: string;
|
|
1349
|
+
title?: string;
|
|
1350
|
+
description?: string;
|
|
1351
|
+
required?: boolean;
|
|
1352
|
+
when?: Array<{
|
|
1353
|
+
key: string;
|
|
1354
|
+
op: "eq" | "neq";
|
|
1355
|
+
value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
|
|
1356
|
+
}>;
|
|
1357
|
+
type: "boolean";
|
|
1358
|
+
default?: boolean;
|
|
1359
|
+
} | {
|
|
1360
|
+
key: string;
|
|
1361
|
+
title?: string;
|
|
1362
|
+
description?: string;
|
|
1363
|
+
required?: boolean;
|
|
1364
|
+
when?: Array<{
|
|
1365
|
+
key: string;
|
|
1366
|
+
op: "eq" | "neq";
|
|
1367
|
+
value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
|
|
1368
|
+
}>;
|
|
1369
|
+
type: "multiselect";
|
|
1370
|
+
options: Array<{
|
|
1371
|
+
value: string;
|
|
1372
|
+
label: string;
|
|
1373
|
+
description?: string;
|
|
1374
|
+
}>;
|
|
1375
|
+
minItems?: number;
|
|
1376
|
+
maxItems?: number;
|
|
1377
|
+
custom?: boolean;
|
|
1378
|
+
default?: Array<string>;
|
|
1379
|
+
} | {
|
|
1380
|
+
key: string;
|
|
1381
|
+
type: "external";
|
|
1382
|
+
url: string;
|
|
1383
|
+
title?: string;
|
|
1384
|
+
description?: string;
|
|
1385
|
+
}>];
|
|
1216
1386
|
}>;
|
|
1217
1387
|
get: (input: FormGetInput, requestOptions?: RequestOptions) => Promise<{
|
|
1218
1388
|
id: string;
|
|
@@ -1221,8 +1391,7 @@ export declare function make(options: ClientOptions): {
|
|
|
1221
1391
|
metadata?: {
|
|
1222
1392
|
[x: string]: import("./types").JsonValue;
|
|
1223
1393
|
};
|
|
1224
|
-
|
|
1225
|
-
fields: Array<{
|
|
1394
|
+
fields: [({
|
|
1226
1395
|
key: string;
|
|
1227
1396
|
title?: string;
|
|
1228
1397
|
description?: string;
|
|
@@ -1305,16 +1474,102 @@ export declare function make(options: ClientOptions): {
|
|
|
1305
1474
|
maxItems?: number;
|
|
1306
1475
|
custom?: boolean;
|
|
1307
1476
|
default?: Array<string>;
|
|
1308
|
-
}
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1477
|
+
} | {
|
|
1478
|
+
key: string;
|
|
1479
|
+
type: "external";
|
|
1480
|
+
url: string;
|
|
1481
|
+
title?: string;
|
|
1482
|
+
description?: string;
|
|
1483
|
+
}), ...Array<{
|
|
1484
|
+
key: string;
|
|
1485
|
+
title?: string;
|
|
1486
|
+
description?: string;
|
|
1487
|
+
required?: boolean;
|
|
1488
|
+
when?: Array<{
|
|
1489
|
+
key: string;
|
|
1490
|
+
op: "eq" | "neq";
|
|
1491
|
+
value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
|
|
1492
|
+
}>;
|
|
1493
|
+
type: "string";
|
|
1494
|
+
format?: "email" | "uri" | "date" | "date-time";
|
|
1495
|
+
minLength?: number;
|
|
1496
|
+
maxLength?: number;
|
|
1497
|
+
pattern?: string;
|
|
1498
|
+
placeholder?: string;
|
|
1499
|
+
default?: string;
|
|
1500
|
+
options?: Array<{
|
|
1501
|
+
value: string;
|
|
1502
|
+
label: string;
|
|
1503
|
+
description?: string;
|
|
1504
|
+
}>;
|
|
1505
|
+
custom?: boolean;
|
|
1506
|
+
} | {
|
|
1507
|
+
key: string;
|
|
1508
|
+
title?: string;
|
|
1509
|
+
description?: string;
|
|
1510
|
+
required?: boolean;
|
|
1511
|
+
when?: Array<{
|
|
1512
|
+
key: string;
|
|
1513
|
+
op: "eq" | "neq";
|
|
1514
|
+
value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
|
|
1515
|
+
}>;
|
|
1516
|
+
type: "number";
|
|
1517
|
+
minimum?: number | "Infinity" | "-Infinity" | "NaN";
|
|
1518
|
+
maximum?: number | "Infinity" | "-Infinity" | "NaN";
|
|
1519
|
+
default?: number | "Infinity" | "-Infinity" | "NaN";
|
|
1520
|
+
} | {
|
|
1521
|
+
key: string;
|
|
1522
|
+
title?: string;
|
|
1523
|
+
description?: string;
|
|
1524
|
+
required?: boolean;
|
|
1525
|
+
when?: Array<{
|
|
1526
|
+
key: string;
|
|
1527
|
+
op: "eq" | "neq";
|
|
1528
|
+
value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
|
|
1529
|
+
}>;
|
|
1530
|
+
type: "integer";
|
|
1531
|
+
minimum?: number | "Infinity" | "-Infinity" | "NaN";
|
|
1532
|
+
maximum?: number | "Infinity" | "-Infinity" | "NaN";
|
|
1533
|
+
default?: number | "Infinity" | "-Infinity" | "NaN";
|
|
1534
|
+
} | {
|
|
1535
|
+
key: string;
|
|
1536
|
+
title?: string;
|
|
1537
|
+
description?: string;
|
|
1538
|
+
required?: boolean;
|
|
1539
|
+
when?: Array<{
|
|
1540
|
+
key: string;
|
|
1541
|
+
op: "eq" | "neq";
|
|
1542
|
+
value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
|
|
1543
|
+
}>;
|
|
1544
|
+
type: "boolean";
|
|
1545
|
+
default?: boolean;
|
|
1546
|
+
} | {
|
|
1547
|
+
key: string;
|
|
1548
|
+
title?: string;
|
|
1549
|
+
description?: string;
|
|
1550
|
+
required?: boolean;
|
|
1551
|
+
when?: Array<{
|
|
1552
|
+
key: string;
|
|
1553
|
+
op: "eq" | "neq";
|
|
1554
|
+
value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
|
|
1555
|
+
}>;
|
|
1556
|
+
type: "multiselect";
|
|
1557
|
+
options: Array<{
|
|
1558
|
+
value: string;
|
|
1559
|
+
label: string;
|
|
1560
|
+
description?: string;
|
|
1561
|
+
}>;
|
|
1562
|
+
minItems?: number;
|
|
1563
|
+
maxItems?: number;
|
|
1564
|
+
custom?: boolean;
|
|
1565
|
+
default?: Array<string>;
|
|
1566
|
+
} | {
|
|
1567
|
+
key: string;
|
|
1568
|
+
type: "external";
|
|
1569
|
+
url: string;
|
|
1570
|
+
title?: string;
|
|
1571
|
+
description?: string;
|
|
1572
|
+
}>];
|
|
1318
1573
|
}>;
|
|
1319
1574
|
state: (input: FormStateInput, requestOptions?: RequestOptions) => Promise<{
|
|
1320
1575
|
status: "pending";
|
|
@@ -632,14 +632,7 @@ export function make(options) {
|
|
|
632
632
|
create: (input, requestOptions) => request({
|
|
633
633
|
method: "POST",
|
|
634
634
|
path: `/api/session/${encodeURIComponent(input.sessionID)}/form`,
|
|
635
|
-
body: {
|
|
636
|
-
id: input["id"],
|
|
637
|
-
title: input["title"],
|
|
638
|
-
metadata: input["metadata"],
|
|
639
|
-
mode: input["mode"],
|
|
640
|
-
fields: input["fields"],
|
|
641
|
-
url: input["url"],
|
|
642
|
-
},
|
|
635
|
+
body: { id: input["id"], title: input["title"], metadata: input["metadata"], fields: input["fields"] },
|
|
643
636
|
successStatus: 200,
|
|
644
637
|
declaredStatuses: [404, 409, 400, 401],
|
|
645
638
|
empty: false,
|