@middlewr/contracts 0.0.35 → 0.0.37
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/cjs/index.d.ts +689 -101
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +9 -0
- package/dist/cjs/links.schema.d.ts +2 -0
- package/dist/cjs/links.schema.d.ts.map +1 -1
- package/dist/cjs/workspaces.schema.d.ts +3 -0
- package/dist/cjs/workspaces.schema.d.ts.map +1 -1
- package/dist/esm/index.d.ts +689 -101
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +8 -0
- package/dist/esm/links.schema.d.ts +2 -0
- package/dist/esm/links.schema.d.ts.map +1 -1
- package/dist/esm/workspaces.schema.d.ts +3 -0
- package/dist/esm/workspaces.schema.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +16 -0
- package/src/links.schema.ts +1 -0
- package/src/workspaces.schema.ts +5 -0
package/dist/esm/index.d.ts
CHANGED
|
@@ -282,6 +282,11 @@ export declare const workspacesContract: {
|
|
|
282
282
|
workspace_id: z.ZodString;
|
|
283
283
|
to_user_id: z.ZodString;
|
|
284
284
|
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
285
|
+
stats: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
286
|
+
workspace_id: z.ZodString;
|
|
287
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
288
|
+
links_count: z.ZodNumber;
|
|
289
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
285
290
|
listRoles: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
286
291
|
workspace_id: z.ZodString;
|
|
287
292
|
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
@@ -564,6 +569,7 @@ export declare const linksContract: {
|
|
|
564
569
|
frame_color: z.ZodString;
|
|
565
570
|
frame_text_color: z.ZodString;
|
|
566
571
|
}, z.core.$strip>>;
|
|
572
|
+
qr_logo_key: z.ZodNullable<z.ZodString>;
|
|
567
573
|
link_type: z.ZodDefault<z.ZodEnum<{
|
|
568
574
|
redirect: "redirect";
|
|
569
575
|
rules: "rules";
|
|
@@ -736,6 +742,7 @@ export declare const linksContract: {
|
|
|
736
742
|
frame_color: z.ZodString;
|
|
737
743
|
frame_text_color: z.ZodString;
|
|
738
744
|
}, z.core.$strip>>;
|
|
745
|
+
qr_logo_key: z.ZodNullable<z.ZodString>;
|
|
739
746
|
link_type: z.ZodDefault<z.ZodEnum<{
|
|
740
747
|
redirect: "redirect";
|
|
741
748
|
rules: "rules";
|
|
@@ -914,6 +921,7 @@ export declare const linksContract: {
|
|
|
914
921
|
frame_color: z.ZodString;
|
|
915
922
|
frame_text_color: z.ZodString;
|
|
916
923
|
}, z.core.$strip>>;
|
|
924
|
+
qr_logo_key: z.ZodNullable<z.ZodString>;
|
|
917
925
|
link_type: z.ZodDefault<z.ZodEnum<{
|
|
918
926
|
redirect: "redirect";
|
|
919
927
|
rules: "rules";
|
|
@@ -1177,6 +1185,7 @@ export declare const linksContract: {
|
|
|
1177
1185
|
frame_color: z.ZodString;
|
|
1178
1186
|
frame_text_color: z.ZodString;
|
|
1179
1187
|
}, z.core.$strip>>;
|
|
1188
|
+
qr_logo_key: z.ZodNullable<z.ZodString>;
|
|
1180
1189
|
link_type: z.ZodDefault<z.ZodEnum<{
|
|
1181
1190
|
redirect: "redirect";
|
|
1182
1191
|
rules: "rules";
|
|
@@ -1280,121 +1289,406 @@ export declare const linksContract: {
|
|
|
1280
1289
|
}, z.core.$strip>, z.ZodObject<{
|
|
1281
1290
|
synced: z.ZodBoolean;
|
|
1282
1291
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1283
|
-
|
|
1292
|
+
uploadLogo: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1284
1293
|
workspace_id: z.ZodString;
|
|
1285
|
-
|
|
1294
|
+
link_id: z.ZodString;
|
|
1295
|
+
file: z.ZodFile;
|
|
1286
1296
|
}, z.core.$strip>, z.ZodObject<{
|
|
1287
1297
|
id: z.ZodString;
|
|
1288
1298
|
workspace_id: z.ZodString;
|
|
1289
|
-
|
|
1290
|
-
status: z.ZodEnum<{
|
|
1291
|
-
pending: "pending";
|
|
1292
|
-
processing: "processing";
|
|
1293
|
-
completed: "completed";
|
|
1294
|
-
failed: "failed";
|
|
1295
|
-
}>;
|
|
1296
|
-
total_rows: z.ZodNumber;
|
|
1297
|
-
succeeded_count: z.ZodNumber;
|
|
1298
|
-
failed_count: z.ZodNumber;
|
|
1299
|
-
error: z.ZodNullable<z.ZodString>;
|
|
1299
|
+
domain_id: z.ZodString;
|
|
1300
1300
|
created_by_id: z.ZodString;
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
workspace_id: z.ZodString;
|
|
1319
|
-
name: z.ZodString;
|
|
1320
|
-
color: z.ZodNullable<z.ZodString>;
|
|
1321
|
-
created_at: z.ZodCoercedDate<unknown>;
|
|
1322
|
-
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1323
|
-
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1324
|
-
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1325
|
-
workspace_id: z.ZodString;
|
|
1326
|
-
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1327
|
-
id: z.ZodString;
|
|
1328
|
-
workspace_id: z.ZodString;
|
|
1329
|
-
name: z.ZodString;
|
|
1330
|
-
color: z.ZodNullable<z.ZodString>;
|
|
1331
|
-
created_at: z.ZodCoercedDate<unknown>;
|
|
1332
|
-
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1333
|
-
}, z.core.$strip>>, Record<never, never>, Record<never, never>>;
|
|
1334
|
-
get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1335
|
-
workspace_id: z.ZodString;
|
|
1336
|
-
tag_id: z.ZodString;
|
|
1337
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1338
|
-
id: z.ZodString;
|
|
1339
|
-
workspace_id: z.ZodString;
|
|
1340
|
-
name: z.ZodString;
|
|
1341
|
-
color: z.ZodNullable<z.ZodString>;
|
|
1301
|
+
original_url: z.ZodString;
|
|
1302
|
+
short_code: z.ZodString;
|
|
1303
|
+
title: z.ZodNullable<z.ZodString>;
|
|
1304
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1305
|
+
utm_source: z.ZodNullable<z.ZodString>;
|
|
1306
|
+
utm_medium: z.ZodNullable<z.ZodString>;
|
|
1307
|
+
utm_campaign: z.ZodNullable<z.ZodString>;
|
|
1308
|
+
utm_term: z.ZodNullable<z.ZodString>;
|
|
1309
|
+
utm_content: z.ZodNullable<z.ZodString>;
|
|
1310
|
+
password: z.ZodNullable<z.ZodString>;
|
|
1311
|
+
starts_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1312
|
+
expires_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1313
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
1314
|
+
is_active: z.ZodBoolean;
|
|
1315
|
+
redirect_type: z.ZodNumber;
|
|
1316
|
+
click_count: z.ZodCoercedNumber<unknown>;
|
|
1317
|
+
click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1342
1318
|
created_at: z.ZodCoercedDate<unknown>;
|
|
1343
1319
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1320
|
+
qr_code_settings: z.ZodNullable<z.ZodObject<{
|
|
1321
|
+
fg_color: z.ZodString;
|
|
1322
|
+
bg_color: z.ZodString;
|
|
1323
|
+
dot_style: z.ZodEnum<{
|
|
1324
|
+
square: "square";
|
|
1325
|
+
dots: "dots";
|
|
1326
|
+
rounded: "rounded";
|
|
1327
|
+
classy: "classy";
|
|
1328
|
+
"classy-rounded": "classy-rounded";
|
|
1329
|
+
"extra-rounded": "extra-rounded";
|
|
1330
|
+
}>;
|
|
1331
|
+
eye_outer_style: z.ZodEnum<{
|
|
1332
|
+
square: "square";
|
|
1333
|
+
"extra-rounded": "extra-rounded";
|
|
1334
|
+
dot: "dot";
|
|
1335
|
+
}>;
|
|
1336
|
+
eye_inner_style: z.ZodEnum<{
|
|
1337
|
+
square: "square";
|
|
1338
|
+
dot: "dot";
|
|
1339
|
+
}>;
|
|
1340
|
+
frame_enabled: z.ZodBoolean;
|
|
1341
|
+
frame_text: z.ZodString;
|
|
1342
|
+
frame_color: z.ZodString;
|
|
1343
|
+
frame_text_color: z.ZodString;
|
|
1344
|
+
}, z.core.$strip>>;
|
|
1345
|
+
qr_logo_key: z.ZodNullable<z.ZodString>;
|
|
1346
|
+
link_type: z.ZodDefault<z.ZodEnum<{
|
|
1347
|
+
redirect: "redirect";
|
|
1348
|
+
rules: "rules";
|
|
1349
|
+
}>>;
|
|
1350
|
+
rule_graph: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1351
|
+
entry: z.ZodString;
|
|
1352
|
+
nodes: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1353
|
+
id: z.ZodString;
|
|
1354
|
+
type: z.ZodLiteral<"condition">;
|
|
1355
|
+
position: z.ZodObject<{
|
|
1356
|
+
x: z.ZodNumber;
|
|
1357
|
+
y: z.ZodNumber;
|
|
1358
|
+
}, z.core.$strip>;
|
|
1359
|
+
field: z.ZodString;
|
|
1360
|
+
operator: z.ZodEnum<{
|
|
1361
|
+
eq: "eq";
|
|
1362
|
+
neq: "neq";
|
|
1363
|
+
in: "in";
|
|
1364
|
+
not_in: "not_in";
|
|
1365
|
+
contains: "contains";
|
|
1366
|
+
not_contains: "not_contains";
|
|
1367
|
+
gt: "gt";
|
|
1368
|
+
lt: "lt";
|
|
1369
|
+
gte: "gte";
|
|
1370
|
+
lte: "lte";
|
|
1371
|
+
regex: "regex";
|
|
1372
|
+
}>;
|
|
1373
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodNumber]>;
|
|
1374
|
+
outputs: z.ZodObject<{
|
|
1375
|
+
true: z.ZodNullable<z.ZodString>;
|
|
1376
|
+
false: z.ZodNullable<z.ZodString>;
|
|
1377
|
+
}, z.core.$strip>;
|
|
1378
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1379
|
+
id: z.ZodString;
|
|
1380
|
+
type: z.ZodLiteral<"split">;
|
|
1381
|
+
position: z.ZodObject<{
|
|
1382
|
+
x: z.ZodNumber;
|
|
1383
|
+
y: z.ZodNumber;
|
|
1384
|
+
}, z.core.$strip>;
|
|
1385
|
+
variants: z.ZodArray<z.ZodObject<{
|
|
1386
|
+
weight: z.ZodNumber;
|
|
1387
|
+
target: z.ZodNullable<z.ZodString>;
|
|
1388
|
+
}, z.core.$strip>>;
|
|
1389
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1390
|
+
id: z.ZodString;
|
|
1391
|
+
type: z.ZodLiteral<"destination">;
|
|
1392
|
+
position: z.ZodObject<{
|
|
1393
|
+
x: z.ZodNumber;
|
|
1394
|
+
y: z.ZodNumber;
|
|
1395
|
+
}, z.core.$strip>;
|
|
1396
|
+
url: z.ZodString;
|
|
1397
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1398
|
+
id: z.ZodString;
|
|
1399
|
+
type: z.ZodLiteral<"transform">;
|
|
1400
|
+
position: z.ZodObject<{
|
|
1401
|
+
x: z.ZodNumber;
|
|
1402
|
+
y: z.ZodNumber;
|
|
1403
|
+
}, z.core.$strip>;
|
|
1404
|
+
transforms: z.ZodObject<{
|
|
1405
|
+
query_params: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1406
|
+
key: z.ZodString;
|
|
1407
|
+
value: z.ZodString;
|
|
1408
|
+
mode: z.ZodEnum<{
|
|
1409
|
+
set: "set";
|
|
1410
|
+
append: "append";
|
|
1411
|
+
}>;
|
|
1412
|
+
}, z.core.$strip>>>;
|
|
1413
|
+
redirect_status: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<301>, z.ZodLiteral<302>, z.ZodLiteral<307>, z.ZodLiteral<308>]>>;
|
|
1414
|
+
response_headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1415
|
+
key: z.ZodString;
|
|
1416
|
+
value: z.ZodString;
|
|
1417
|
+
mode: z.ZodEnum<{
|
|
1418
|
+
set: "set";
|
|
1419
|
+
append: "append";
|
|
1420
|
+
}>;
|
|
1421
|
+
}, z.core.$strip>>>;
|
|
1422
|
+
}, z.core.$strip>;
|
|
1423
|
+
next: z.ZodNullable<z.ZodString>;
|
|
1424
|
+
}, z.core.$strip>], "type">>;
|
|
1425
|
+
}, z.core.$strip>>>;
|
|
1426
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
1427
|
+
id: z.ZodString;
|
|
1428
|
+
workspace_id: z.ZodString;
|
|
1429
|
+
name: z.ZodString;
|
|
1430
|
+
color: z.ZodNullable<z.ZodString>;
|
|
1431
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
1432
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1433
|
+
}, z.core.$strip>>;
|
|
1344
1434
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1345
|
-
|
|
1435
|
+
deleteLogo: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1346
1436
|
workspace_id: z.ZodString;
|
|
1347
|
-
|
|
1348
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1349
|
-
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1437
|
+
link_id: z.ZodString;
|
|
1350
1438
|
}, z.core.$strip>, z.ZodObject<{
|
|
1351
1439
|
id: z.ZodString;
|
|
1352
1440
|
workspace_id: z.ZodString;
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
is_verified: z.ZodBoolean;
|
|
1373
|
-
cf_hostname_id: z.ZodNullable<z.ZodString>;
|
|
1374
|
-
cf_ssl_status: z.ZodNullable<z.ZodString>;
|
|
1375
|
-
cf_ownership_status: z.ZodNullable<z.ZodString>;
|
|
1376
|
-
cf_txt_name: z.ZodNullable<z.ZodString>;
|
|
1377
|
-
cf_txt_value: z.ZodNullable<z.ZodString>;
|
|
1378
|
-
cf_ssl_txt_name: z.ZodNullable<z.ZodString>;
|
|
1379
|
-
cf_ssl_txt_value: z.ZodNullable<z.ZodString>;
|
|
1380
|
-
cf_last_checked_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1441
|
+
domain_id: z.ZodString;
|
|
1442
|
+
created_by_id: z.ZodString;
|
|
1443
|
+
original_url: z.ZodString;
|
|
1444
|
+
short_code: z.ZodString;
|
|
1445
|
+
title: z.ZodNullable<z.ZodString>;
|
|
1446
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1447
|
+
utm_source: z.ZodNullable<z.ZodString>;
|
|
1448
|
+
utm_medium: z.ZodNullable<z.ZodString>;
|
|
1449
|
+
utm_campaign: z.ZodNullable<z.ZodString>;
|
|
1450
|
+
utm_term: z.ZodNullable<z.ZodString>;
|
|
1451
|
+
utm_content: z.ZodNullable<z.ZodString>;
|
|
1452
|
+
password: z.ZodNullable<z.ZodString>;
|
|
1453
|
+
starts_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1454
|
+
expires_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1455
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
1456
|
+
is_active: z.ZodBoolean;
|
|
1457
|
+
redirect_type: z.ZodNumber;
|
|
1458
|
+
click_count: z.ZodCoercedNumber<unknown>;
|
|
1459
|
+
click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1381
1460
|
created_at: z.ZodCoercedDate<unknown>;
|
|
1382
1461
|
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1462
|
+
qr_code_settings: z.ZodNullable<z.ZodObject<{
|
|
1463
|
+
fg_color: z.ZodString;
|
|
1464
|
+
bg_color: z.ZodString;
|
|
1465
|
+
dot_style: z.ZodEnum<{
|
|
1466
|
+
square: "square";
|
|
1467
|
+
dots: "dots";
|
|
1468
|
+
rounded: "rounded";
|
|
1469
|
+
classy: "classy";
|
|
1470
|
+
"classy-rounded": "classy-rounded";
|
|
1471
|
+
"extra-rounded": "extra-rounded";
|
|
1472
|
+
}>;
|
|
1473
|
+
eye_outer_style: z.ZodEnum<{
|
|
1474
|
+
square: "square";
|
|
1475
|
+
"extra-rounded": "extra-rounded";
|
|
1476
|
+
dot: "dot";
|
|
1477
|
+
}>;
|
|
1478
|
+
eye_inner_style: z.ZodEnum<{
|
|
1479
|
+
square: "square";
|
|
1480
|
+
dot: "dot";
|
|
1481
|
+
}>;
|
|
1482
|
+
frame_enabled: z.ZodBoolean;
|
|
1483
|
+
frame_text: z.ZodString;
|
|
1484
|
+
frame_color: z.ZodString;
|
|
1485
|
+
frame_text_color: z.ZodString;
|
|
1486
|
+
}, z.core.$strip>>;
|
|
1487
|
+
qr_logo_key: z.ZodNullable<z.ZodString>;
|
|
1488
|
+
link_type: z.ZodDefault<z.ZodEnum<{
|
|
1489
|
+
redirect: "redirect";
|
|
1490
|
+
rules: "rules";
|
|
1491
|
+
}>>;
|
|
1492
|
+
rule_graph: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1493
|
+
entry: z.ZodString;
|
|
1494
|
+
nodes: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1495
|
+
id: z.ZodString;
|
|
1496
|
+
type: z.ZodLiteral<"condition">;
|
|
1497
|
+
position: z.ZodObject<{
|
|
1498
|
+
x: z.ZodNumber;
|
|
1499
|
+
y: z.ZodNumber;
|
|
1500
|
+
}, z.core.$strip>;
|
|
1501
|
+
field: z.ZodString;
|
|
1502
|
+
operator: z.ZodEnum<{
|
|
1503
|
+
eq: "eq";
|
|
1504
|
+
neq: "neq";
|
|
1505
|
+
in: "in";
|
|
1506
|
+
not_in: "not_in";
|
|
1507
|
+
contains: "contains";
|
|
1508
|
+
not_contains: "not_contains";
|
|
1509
|
+
gt: "gt";
|
|
1510
|
+
lt: "lt";
|
|
1511
|
+
gte: "gte";
|
|
1512
|
+
lte: "lte";
|
|
1513
|
+
regex: "regex";
|
|
1514
|
+
}>;
|
|
1515
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodNumber]>;
|
|
1516
|
+
outputs: z.ZodObject<{
|
|
1517
|
+
true: z.ZodNullable<z.ZodString>;
|
|
1518
|
+
false: z.ZodNullable<z.ZodString>;
|
|
1519
|
+
}, z.core.$strip>;
|
|
1520
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1521
|
+
id: z.ZodString;
|
|
1522
|
+
type: z.ZodLiteral<"split">;
|
|
1523
|
+
position: z.ZodObject<{
|
|
1524
|
+
x: z.ZodNumber;
|
|
1525
|
+
y: z.ZodNumber;
|
|
1526
|
+
}, z.core.$strip>;
|
|
1527
|
+
variants: z.ZodArray<z.ZodObject<{
|
|
1528
|
+
weight: z.ZodNumber;
|
|
1529
|
+
target: z.ZodNullable<z.ZodString>;
|
|
1530
|
+
}, z.core.$strip>>;
|
|
1531
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1532
|
+
id: z.ZodString;
|
|
1533
|
+
type: z.ZodLiteral<"destination">;
|
|
1534
|
+
position: z.ZodObject<{
|
|
1535
|
+
x: z.ZodNumber;
|
|
1536
|
+
y: z.ZodNumber;
|
|
1537
|
+
}, z.core.$strip>;
|
|
1538
|
+
url: z.ZodString;
|
|
1539
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1540
|
+
id: z.ZodString;
|
|
1541
|
+
type: z.ZodLiteral<"transform">;
|
|
1542
|
+
position: z.ZodObject<{
|
|
1543
|
+
x: z.ZodNumber;
|
|
1544
|
+
y: z.ZodNumber;
|
|
1545
|
+
}, z.core.$strip>;
|
|
1546
|
+
transforms: z.ZodObject<{
|
|
1547
|
+
query_params: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1548
|
+
key: z.ZodString;
|
|
1549
|
+
value: z.ZodString;
|
|
1550
|
+
mode: z.ZodEnum<{
|
|
1551
|
+
set: "set";
|
|
1552
|
+
append: "append";
|
|
1553
|
+
}>;
|
|
1554
|
+
}, z.core.$strip>>>;
|
|
1555
|
+
redirect_status: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<301>, z.ZodLiteral<302>, z.ZodLiteral<307>, z.ZodLiteral<308>]>>;
|
|
1556
|
+
response_headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1557
|
+
key: z.ZodString;
|
|
1558
|
+
value: z.ZodString;
|
|
1559
|
+
mode: z.ZodEnum<{
|
|
1560
|
+
set: "set";
|
|
1561
|
+
append: "append";
|
|
1562
|
+
}>;
|
|
1563
|
+
}, z.core.$strip>>>;
|
|
1564
|
+
}, z.core.$strip>;
|
|
1565
|
+
next: z.ZodNullable<z.ZodString>;
|
|
1566
|
+
}, z.core.$strip>], "type">>;
|
|
1567
|
+
}, z.core.$strip>>>;
|
|
1568
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
1569
|
+
id: z.ZodString;
|
|
1570
|
+
workspace_id: z.ZodString;
|
|
1571
|
+
name: z.ZodString;
|
|
1572
|
+
color: z.ZodNullable<z.ZodString>;
|
|
1573
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
1574
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1575
|
+
}, z.core.$strip>>;
|
|
1576
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1577
|
+
getJob: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1578
|
+
workspace_id: z.ZodString;
|
|
1579
|
+
job_id: z.ZodString;
|
|
1580
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1581
|
+
id: z.ZodString;
|
|
1582
|
+
workspace_id: z.ZodString;
|
|
1583
|
+
type: z.ZodString;
|
|
1584
|
+
status: z.ZodEnum<{
|
|
1585
|
+
pending: "pending";
|
|
1586
|
+
processing: "processing";
|
|
1587
|
+
completed: "completed";
|
|
1588
|
+
failed: "failed";
|
|
1589
|
+
}>;
|
|
1590
|
+
total_rows: z.ZodNumber;
|
|
1591
|
+
succeeded_count: z.ZodNumber;
|
|
1592
|
+
failed_count: z.ZodNumber;
|
|
1593
|
+
error: z.ZodNullable<z.ZodString>;
|
|
1594
|
+
created_by_id: z.ZodString;
|
|
1595
|
+
created_at: z.ZodDate;
|
|
1596
|
+
completed_at: z.ZodNullable<z.ZodDate>;
|
|
1597
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1598
|
+
jobResults: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1599
|
+
workspace_id: z.ZodString;
|
|
1600
|
+
job_id: z.ZodString;
|
|
1601
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1602
|
+
url: z.ZodString;
|
|
1603
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1604
|
+
};
|
|
1605
|
+
export declare const tagsContract: {
|
|
1606
|
+
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1607
|
+
workspace_id: z.ZodString;
|
|
1608
|
+
name: z.ZodString;
|
|
1609
|
+
color: z.ZodOptional<z.ZodString>;
|
|
1610
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1611
|
+
id: z.ZodString;
|
|
1612
|
+
workspace_id: z.ZodString;
|
|
1613
|
+
name: z.ZodString;
|
|
1614
|
+
color: z.ZodNullable<z.ZodString>;
|
|
1615
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
1616
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1617
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1618
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1619
|
+
workspace_id: z.ZodString;
|
|
1620
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1621
|
+
id: z.ZodString;
|
|
1622
|
+
workspace_id: z.ZodString;
|
|
1623
|
+
name: z.ZodString;
|
|
1624
|
+
color: z.ZodNullable<z.ZodString>;
|
|
1625
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
1626
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1627
|
+
}, z.core.$strip>>, Record<never, never>, Record<never, never>>;
|
|
1628
|
+
get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1629
|
+
workspace_id: z.ZodString;
|
|
1630
|
+
tag_id: z.ZodString;
|
|
1631
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1632
|
+
id: z.ZodString;
|
|
1633
|
+
workspace_id: z.ZodString;
|
|
1634
|
+
name: z.ZodString;
|
|
1635
|
+
color: z.ZodNullable<z.ZodString>;
|
|
1636
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
1637
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1638
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1639
|
+
update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1640
|
+
workspace_id: z.ZodString;
|
|
1641
|
+
tag_id: z.ZodString;
|
|
1642
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1643
|
+
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1644
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1645
|
+
id: z.ZodString;
|
|
1646
|
+
workspace_id: z.ZodString;
|
|
1647
|
+
name: z.ZodString;
|
|
1648
|
+
color: z.ZodNullable<z.ZodString>;
|
|
1649
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
1650
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1651
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1652
|
+
delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1653
|
+
workspace_id: z.ZodString;
|
|
1654
|
+
tag_id: z.ZodString;
|
|
1655
|
+
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
1656
|
+
};
|
|
1657
|
+
export declare const domainsContract: {
|
|
1658
|
+
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1659
|
+
workspace_id: z.ZodString;
|
|
1660
|
+
domain: z.ZodString;
|
|
1661
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1662
|
+
id: z.ZodString;
|
|
1663
|
+
workspace_id: z.ZodNullable<z.ZodString>;
|
|
1664
|
+
created_by_id: z.ZodNullable<z.ZodString>;
|
|
1665
|
+
domain: z.ZodString;
|
|
1666
|
+
is_verified: z.ZodBoolean;
|
|
1667
|
+
cf_hostname_id: z.ZodNullable<z.ZodString>;
|
|
1668
|
+
cf_ssl_status: z.ZodNullable<z.ZodString>;
|
|
1669
|
+
cf_ownership_status: z.ZodNullable<z.ZodString>;
|
|
1670
|
+
cf_txt_name: z.ZodNullable<z.ZodString>;
|
|
1671
|
+
cf_txt_value: z.ZodNullable<z.ZodString>;
|
|
1672
|
+
cf_ssl_txt_name: z.ZodNullable<z.ZodString>;
|
|
1673
|
+
cf_ssl_txt_value: z.ZodNullable<z.ZodString>;
|
|
1674
|
+
cf_last_checked_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1675
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
1676
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1677
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1678
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1679
|
+
workspace_id: z.ZodString;
|
|
1680
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1681
|
+
id: z.ZodString;
|
|
1682
|
+
workspace_id: z.ZodNullable<z.ZodString>;
|
|
1683
|
+
created_by_id: z.ZodNullable<z.ZodString>;
|
|
1684
|
+
domain: z.ZodString;
|
|
1685
|
+
is_verified: z.ZodBoolean;
|
|
1686
|
+
cf_hostname_id: z.ZodNullable<z.ZodString>;
|
|
1687
|
+
cf_ssl_status: z.ZodNullable<z.ZodString>;
|
|
1688
|
+
cf_ownership_status: z.ZodNullable<z.ZodString>;
|
|
1689
|
+
cf_txt_name: z.ZodNullable<z.ZodString>;
|
|
1690
|
+
cf_txt_value: z.ZodNullable<z.ZodString>;
|
|
1691
|
+
cf_ssl_txt_name: z.ZodNullable<z.ZodString>;
|
|
1398
1692
|
cf_ssl_txt_value: z.ZodNullable<z.ZodString>;
|
|
1399
1693
|
cf_last_checked_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1400
1694
|
created_at: z.ZodCoercedDate<unknown>;
|
|
@@ -1814,6 +2108,11 @@ export declare const contract: {
|
|
|
1814
2108
|
workspace_id: z.ZodString;
|
|
1815
2109
|
to_user_id: z.ZodString;
|
|
1816
2110
|
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
2111
|
+
stats: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2112
|
+
workspace_id: z.ZodString;
|
|
2113
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2114
|
+
links_count: z.ZodNumber;
|
|
2115
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1817
2116
|
listRoles: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1818
2117
|
workspace_id: z.ZodString;
|
|
1819
2118
|
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
@@ -2096,6 +2395,7 @@ export declare const contract: {
|
|
|
2096
2395
|
frame_color: z.ZodString;
|
|
2097
2396
|
frame_text_color: z.ZodString;
|
|
2098
2397
|
}, z.core.$strip>>;
|
|
2398
|
+
qr_logo_key: z.ZodNullable<z.ZodString>;
|
|
2099
2399
|
link_type: z.ZodDefault<z.ZodEnum<{
|
|
2100
2400
|
redirect: "redirect";
|
|
2101
2401
|
rules: "rules";
|
|
@@ -2268,6 +2568,7 @@ export declare const contract: {
|
|
|
2268
2568
|
frame_color: z.ZodString;
|
|
2269
2569
|
frame_text_color: z.ZodString;
|
|
2270
2570
|
}, z.core.$strip>>;
|
|
2571
|
+
qr_logo_key: z.ZodNullable<z.ZodString>;
|
|
2271
2572
|
link_type: z.ZodDefault<z.ZodEnum<{
|
|
2272
2573
|
redirect: "redirect";
|
|
2273
2574
|
rules: "rules";
|
|
@@ -2446,6 +2747,7 @@ export declare const contract: {
|
|
|
2446
2747
|
frame_color: z.ZodString;
|
|
2447
2748
|
frame_text_color: z.ZodString;
|
|
2448
2749
|
}, z.core.$strip>>;
|
|
2750
|
+
qr_logo_key: z.ZodNullable<z.ZodString>;
|
|
2449
2751
|
link_type: z.ZodDefault<z.ZodEnum<{
|
|
2450
2752
|
redirect: "redirect";
|
|
2451
2753
|
rules: "rules";
|
|
@@ -2709,6 +3011,7 @@ export declare const contract: {
|
|
|
2709
3011
|
frame_color: z.ZodString;
|
|
2710
3012
|
frame_text_color: z.ZodString;
|
|
2711
3013
|
}, z.core.$strip>>;
|
|
3014
|
+
qr_logo_key: z.ZodNullable<z.ZodString>;
|
|
2712
3015
|
link_type: z.ZodDefault<z.ZodEnum<{
|
|
2713
3016
|
redirect: "redirect";
|
|
2714
3017
|
rules: "rules";
|
|
@@ -2812,6 +3115,291 @@ export declare const contract: {
|
|
|
2812
3115
|
}, z.core.$strip>, z.ZodObject<{
|
|
2813
3116
|
synced: z.ZodBoolean;
|
|
2814
3117
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
3118
|
+
uploadLogo: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
3119
|
+
workspace_id: z.ZodString;
|
|
3120
|
+
link_id: z.ZodString;
|
|
3121
|
+
file: z.ZodFile;
|
|
3122
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3123
|
+
id: z.ZodString;
|
|
3124
|
+
workspace_id: z.ZodString;
|
|
3125
|
+
domain_id: z.ZodString;
|
|
3126
|
+
created_by_id: z.ZodString;
|
|
3127
|
+
original_url: z.ZodString;
|
|
3128
|
+
short_code: z.ZodString;
|
|
3129
|
+
title: z.ZodNullable<z.ZodString>;
|
|
3130
|
+
description: z.ZodNullable<z.ZodString>;
|
|
3131
|
+
utm_source: z.ZodNullable<z.ZodString>;
|
|
3132
|
+
utm_medium: z.ZodNullable<z.ZodString>;
|
|
3133
|
+
utm_campaign: z.ZodNullable<z.ZodString>;
|
|
3134
|
+
utm_term: z.ZodNullable<z.ZodString>;
|
|
3135
|
+
utm_content: z.ZodNullable<z.ZodString>;
|
|
3136
|
+
password: z.ZodNullable<z.ZodString>;
|
|
3137
|
+
starts_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
3138
|
+
expires_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
3139
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
3140
|
+
is_active: z.ZodBoolean;
|
|
3141
|
+
redirect_type: z.ZodNumber;
|
|
3142
|
+
click_count: z.ZodCoercedNumber<unknown>;
|
|
3143
|
+
click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
3144
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
3145
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
3146
|
+
qr_code_settings: z.ZodNullable<z.ZodObject<{
|
|
3147
|
+
fg_color: z.ZodString;
|
|
3148
|
+
bg_color: z.ZodString;
|
|
3149
|
+
dot_style: z.ZodEnum<{
|
|
3150
|
+
square: "square";
|
|
3151
|
+
dots: "dots";
|
|
3152
|
+
rounded: "rounded";
|
|
3153
|
+
classy: "classy";
|
|
3154
|
+
"classy-rounded": "classy-rounded";
|
|
3155
|
+
"extra-rounded": "extra-rounded";
|
|
3156
|
+
}>;
|
|
3157
|
+
eye_outer_style: z.ZodEnum<{
|
|
3158
|
+
square: "square";
|
|
3159
|
+
"extra-rounded": "extra-rounded";
|
|
3160
|
+
dot: "dot";
|
|
3161
|
+
}>;
|
|
3162
|
+
eye_inner_style: z.ZodEnum<{
|
|
3163
|
+
square: "square";
|
|
3164
|
+
dot: "dot";
|
|
3165
|
+
}>;
|
|
3166
|
+
frame_enabled: z.ZodBoolean;
|
|
3167
|
+
frame_text: z.ZodString;
|
|
3168
|
+
frame_color: z.ZodString;
|
|
3169
|
+
frame_text_color: z.ZodString;
|
|
3170
|
+
}, z.core.$strip>>;
|
|
3171
|
+
qr_logo_key: z.ZodNullable<z.ZodString>;
|
|
3172
|
+
link_type: z.ZodDefault<z.ZodEnum<{
|
|
3173
|
+
redirect: "redirect";
|
|
3174
|
+
rules: "rules";
|
|
3175
|
+
}>>;
|
|
3176
|
+
rule_graph: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3177
|
+
entry: z.ZodString;
|
|
3178
|
+
nodes: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3179
|
+
id: z.ZodString;
|
|
3180
|
+
type: z.ZodLiteral<"condition">;
|
|
3181
|
+
position: z.ZodObject<{
|
|
3182
|
+
x: z.ZodNumber;
|
|
3183
|
+
y: z.ZodNumber;
|
|
3184
|
+
}, z.core.$strip>;
|
|
3185
|
+
field: z.ZodString;
|
|
3186
|
+
operator: z.ZodEnum<{
|
|
3187
|
+
eq: "eq";
|
|
3188
|
+
neq: "neq";
|
|
3189
|
+
in: "in";
|
|
3190
|
+
not_in: "not_in";
|
|
3191
|
+
contains: "contains";
|
|
3192
|
+
not_contains: "not_contains";
|
|
3193
|
+
gt: "gt";
|
|
3194
|
+
lt: "lt";
|
|
3195
|
+
gte: "gte";
|
|
3196
|
+
lte: "lte";
|
|
3197
|
+
regex: "regex";
|
|
3198
|
+
}>;
|
|
3199
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodNumber]>;
|
|
3200
|
+
outputs: z.ZodObject<{
|
|
3201
|
+
true: z.ZodNullable<z.ZodString>;
|
|
3202
|
+
false: z.ZodNullable<z.ZodString>;
|
|
3203
|
+
}, z.core.$strip>;
|
|
3204
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3205
|
+
id: z.ZodString;
|
|
3206
|
+
type: z.ZodLiteral<"split">;
|
|
3207
|
+
position: z.ZodObject<{
|
|
3208
|
+
x: z.ZodNumber;
|
|
3209
|
+
y: z.ZodNumber;
|
|
3210
|
+
}, z.core.$strip>;
|
|
3211
|
+
variants: z.ZodArray<z.ZodObject<{
|
|
3212
|
+
weight: z.ZodNumber;
|
|
3213
|
+
target: z.ZodNullable<z.ZodString>;
|
|
3214
|
+
}, z.core.$strip>>;
|
|
3215
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3216
|
+
id: z.ZodString;
|
|
3217
|
+
type: z.ZodLiteral<"destination">;
|
|
3218
|
+
position: z.ZodObject<{
|
|
3219
|
+
x: z.ZodNumber;
|
|
3220
|
+
y: z.ZodNumber;
|
|
3221
|
+
}, z.core.$strip>;
|
|
3222
|
+
url: z.ZodString;
|
|
3223
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3224
|
+
id: z.ZodString;
|
|
3225
|
+
type: z.ZodLiteral<"transform">;
|
|
3226
|
+
position: z.ZodObject<{
|
|
3227
|
+
x: z.ZodNumber;
|
|
3228
|
+
y: z.ZodNumber;
|
|
3229
|
+
}, z.core.$strip>;
|
|
3230
|
+
transforms: z.ZodObject<{
|
|
3231
|
+
query_params: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3232
|
+
key: z.ZodString;
|
|
3233
|
+
value: z.ZodString;
|
|
3234
|
+
mode: z.ZodEnum<{
|
|
3235
|
+
set: "set";
|
|
3236
|
+
append: "append";
|
|
3237
|
+
}>;
|
|
3238
|
+
}, z.core.$strip>>>;
|
|
3239
|
+
redirect_status: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<301>, z.ZodLiteral<302>, z.ZodLiteral<307>, z.ZodLiteral<308>]>>;
|
|
3240
|
+
response_headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3241
|
+
key: z.ZodString;
|
|
3242
|
+
value: z.ZodString;
|
|
3243
|
+
mode: z.ZodEnum<{
|
|
3244
|
+
set: "set";
|
|
3245
|
+
append: "append";
|
|
3246
|
+
}>;
|
|
3247
|
+
}, z.core.$strip>>>;
|
|
3248
|
+
}, z.core.$strip>;
|
|
3249
|
+
next: z.ZodNullable<z.ZodString>;
|
|
3250
|
+
}, z.core.$strip>], "type">>;
|
|
3251
|
+
}, z.core.$strip>>>;
|
|
3252
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
3253
|
+
id: z.ZodString;
|
|
3254
|
+
workspace_id: z.ZodString;
|
|
3255
|
+
name: z.ZodString;
|
|
3256
|
+
color: z.ZodNullable<z.ZodString>;
|
|
3257
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
3258
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
3259
|
+
}, z.core.$strip>>;
|
|
3260
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
3261
|
+
deleteLogo: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
3262
|
+
workspace_id: z.ZodString;
|
|
3263
|
+
link_id: z.ZodString;
|
|
3264
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3265
|
+
id: z.ZodString;
|
|
3266
|
+
workspace_id: z.ZodString;
|
|
3267
|
+
domain_id: z.ZodString;
|
|
3268
|
+
created_by_id: z.ZodString;
|
|
3269
|
+
original_url: z.ZodString;
|
|
3270
|
+
short_code: z.ZodString;
|
|
3271
|
+
title: z.ZodNullable<z.ZodString>;
|
|
3272
|
+
description: z.ZodNullable<z.ZodString>;
|
|
3273
|
+
utm_source: z.ZodNullable<z.ZodString>;
|
|
3274
|
+
utm_medium: z.ZodNullable<z.ZodString>;
|
|
3275
|
+
utm_campaign: z.ZodNullable<z.ZodString>;
|
|
3276
|
+
utm_term: z.ZodNullable<z.ZodString>;
|
|
3277
|
+
utm_content: z.ZodNullable<z.ZodString>;
|
|
3278
|
+
password: z.ZodNullable<z.ZodString>;
|
|
3279
|
+
starts_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
3280
|
+
expires_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
3281
|
+
fallback_url: z.ZodNullable<z.ZodString>;
|
|
3282
|
+
is_active: z.ZodBoolean;
|
|
3283
|
+
redirect_type: z.ZodNumber;
|
|
3284
|
+
click_count: z.ZodCoercedNumber<unknown>;
|
|
3285
|
+
click_count_updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
3286
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
3287
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
3288
|
+
qr_code_settings: z.ZodNullable<z.ZodObject<{
|
|
3289
|
+
fg_color: z.ZodString;
|
|
3290
|
+
bg_color: z.ZodString;
|
|
3291
|
+
dot_style: z.ZodEnum<{
|
|
3292
|
+
square: "square";
|
|
3293
|
+
dots: "dots";
|
|
3294
|
+
rounded: "rounded";
|
|
3295
|
+
classy: "classy";
|
|
3296
|
+
"classy-rounded": "classy-rounded";
|
|
3297
|
+
"extra-rounded": "extra-rounded";
|
|
3298
|
+
}>;
|
|
3299
|
+
eye_outer_style: z.ZodEnum<{
|
|
3300
|
+
square: "square";
|
|
3301
|
+
"extra-rounded": "extra-rounded";
|
|
3302
|
+
dot: "dot";
|
|
3303
|
+
}>;
|
|
3304
|
+
eye_inner_style: z.ZodEnum<{
|
|
3305
|
+
square: "square";
|
|
3306
|
+
dot: "dot";
|
|
3307
|
+
}>;
|
|
3308
|
+
frame_enabled: z.ZodBoolean;
|
|
3309
|
+
frame_text: z.ZodString;
|
|
3310
|
+
frame_color: z.ZodString;
|
|
3311
|
+
frame_text_color: z.ZodString;
|
|
3312
|
+
}, z.core.$strip>>;
|
|
3313
|
+
qr_logo_key: z.ZodNullable<z.ZodString>;
|
|
3314
|
+
link_type: z.ZodDefault<z.ZodEnum<{
|
|
3315
|
+
redirect: "redirect";
|
|
3316
|
+
rules: "rules";
|
|
3317
|
+
}>>;
|
|
3318
|
+
rule_graph: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3319
|
+
entry: z.ZodString;
|
|
3320
|
+
nodes: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3321
|
+
id: z.ZodString;
|
|
3322
|
+
type: z.ZodLiteral<"condition">;
|
|
3323
|
+
position: z.ZodObject<{
|
|
3324
|
+
x: z.ZodNumber;
|
|
3325
|
+
y: z.ZodNumber;
|
|
3326
|
+
}, z.core.$strip>;
|
|
3327
|
+
field: z.ZodString;
|
|
3328
|
+
operator: z.ZodEnum<{
|
|
3329
|
+
eq: "eq";
|
|
3330
|
+
neq: "neq";
|
|
3331
|
+
in: "in";
|
|
3332
|
+
not_in: "not_in";
|
|
3333
|
+
contains: "contains";
|
|
3334
|
+
not_contains: "not_contains";
|
|
3335
|
+
gt: "gt";
|
|
3336
|
+
lt: "lt";
|
|
3337
|
+
gte: "gte";
|
|
3338
|
+
lte: "lte";
|
|
3339
|
+
regex: "regex";
|
|
3340
|
+
}>;
|
|
3341
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodNumber]>;
|
|
3342
|
+
outputs: z.ZodObject<{
|
|
3343
|
+
true: z.ZodNullable<z.ZodString>;
|
|
3344
|
+
false: z.ZodNullable<z.ZodString>;
|
|
3345
|
+
}, z.core.$strip>;
|
|
3346
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3347
|
+
id: z.ZodString;
|
|
3348
|
+
type: z.ZodLiteral<"split">;
|
|
3349
|
+
position: z.ZodObject<{
|
|
3350
|
+
x: z.ZodNumber;
|
|
3351
|
+
y: z.ZodNumber;
|
|
3352
|
+
}, z.core.$strip>;
|
|
3353
|
+
variants: z.ZodArray<z.ZodObject<{
|
|
3354
|
+
weight: z.ZodNumber;
|
|
3355
|
+
target: z.ZodNullable<z.ZodString>;
|
|
3356
|
+
}, z.core.$strip>>;
|
|
3357
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3358
|
+
id: z.ZodString;
|
|
3359
|
+
type: z.ZodLiteral<"destination">;
|
|
3360
|
+
position: z.ZodObject<{
|
|
3361
|
+
x: z.ZodNumber;
|
|
3362
|
+
y: z.ZodNumber;
|
|
3363
|
+
}, z.core.$strip>;
|
|
3364
|
+
url: z.ZodString;
|
|
3365
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3366
|
+
id: z.ZodString;
|
|
3367
|
+
type: z.ZodLiteral<"transform">;
|
|
3368
|
+
position: z.ZodObject<{
|
|
3369
|
+
x: z.ZodNumber;
|
|
3370
|
+
y: z.ZodNumber;
|
|
3371
|
+
}, z.core.$strip>;
|
|
3372
|
+
transforms: z.ZodObject<{
|
|
3373
|
+
query_params: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3374
|
+
key: z.ZodString;
|
|
3375
|
+
value: z.ZodString;
|
|
3376
|
+
mode: z.ZodEnum<{
|
|
3377
|
+
set: "set";
|
|
3378
|
+
append: "append";
|
|
3379
|
+
}>;
|
|
3380
|
+
}, z.core.$strip>>>;
|
|
3381
|
+
redirect_status: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<301>, z.ZodLiteral<302>, z.ZodLiteral<307>, z.ZodLiteral<308>]>>;
|
|
3382
|
+
response_headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3383
|
+
key: z.ZodString;
|
|
3384
|
+
value: z.ZodString;
|
|
3385
|
+
mode: z.ZodEnum<{
|
|
3386
|
+
set: "set";
|
|
3387
|
+
append: "append";
|
|
3388
|
+
}>;
|
|
3389
|
+
}, z.core.$strip>>>;
|
|
3390
|
+
}, z.core.$strip>;
|
|
3391
|
+
next: z.ZodNullable<z.ZodString>;
|
|
3392
|
+
}, z.core.$strip>], "type">>;
|
|
3393
|
+
}, z.core.$strip>>>;
|
|
3394
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
3395
|
+
id: z.ZodString;
|
|
3396
|
+
workspace_id: z.ZodString;
|
|
3397
|
+
name: z.ZodString;
|
|
3398
|
+
color: z.ZodNullable<z.ZodString>;
|
|
3399
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
3400
|
+
updated_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
3401
|
+
}, z.core.$strip>>;
|
|
3402
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2815
3403
|
getJob: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2816
3404
|
workspace_id: z.ZodString;
|
|
2817
3405
|
job_id: z.ZodString;
|