@automate.ax/api-contract 0.155.0 → 0.156.1
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/account.d.ts +8 -0
- package/dist/account.js +1 -0
- package/dist/deployment.d.ts +3 -3
- package/dist/index.d.ts +161 -20
- package/dist/index.js +0 -1
- package/dist/org.d.ts +9 -7
- package/dist/org.js +3 -7
- package/dist/runtime.d.ts +403 -0
- package/dist/runtime.js +23 -0
- package/package.json +4 -4
- package/src/account.ts +1 -0
- package/src/index.ts +0 -1
- package/src/org.ts +3 -9
- package/src/runtime.ts +35 -0
package/dist/account.d.ts
CHANGED
|
@@ -59,6 +59,10 @@ export declare const integrationServiceOutputSchema: z.ZodObject<{
|
|
|
59
59
|
icon: z.ZodOptional<z.ZodString>;
|
|
60
60
|
id: z.ZodString;
|
|
61
61
|
name: z.ZodString;
|
|
62
|
+
requiredPlan: z.ZodEnum<{
|
|
63
|
+
free: "free";
|
|
64
|
+
pro: "pro";
|
|
65
|
+
}>;
|
|
62
66
|
preferredConnectionMethodId: z.ZodOptional<z.ZodString>;
|
|
63
67
|
}, z.core.$strip>;
|
|
64
68
|
export declare const integrationAccountRevocationOutputSchema: z.ZodObject<{
|
|
@@ -341,6 +345,10 @@ export declare const accountContract: {
|
|
|
341
345
|
icon: z.ZodOptional<z.ZodString>;
|
|
342
346
|
id: z.ZodString;
|
|
343
347
|
name: z.ZodString;
|
|
348
|
+
requiredPlan: z.ZodEnum<{
|
|
349
|
+
free: "free";
|
|
350
|
+
pro: "pro";
|
|
351
|
+
}>;
|
|
344
352
|
preferredConnectionMethodId: z.ZodOptional<z.ZodString>;
|
|
345
353
|
}, z.core.$strip>>, Record<never, never>, Record<never, never>>;
|
|
346
354
|
revocationImpact: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
package/dist/account.js
CHANGED
|
@@ -67,6 +67,7 @@ export const integrationServiceOutputSchema = z.object({
|
|
|
67
67
|
icon: z.string().optional(),
|
|
68
68
|
id: z.string(),
|
|
69
69
|
name: z.string(),
|
|
70
|
+
requiredPlan: z.enum(["free", "pro"]),
|
|
70
71
|
preferredConnectionMethodId: z.string().optional(),
|
|
71
72
|
});
|
|
72
73
|
export const integrationAccountRevocationOutputSchema = z.object({
|
package/dist/deployment.d.ts
CHANGED
|
@@ -306,9 +306,9 @@ export declare const deploymentOutputSchema: z.ZodObject<{
|
|
|
306
306
|
name: z.ZodOptional<z.ZodString>;
|
|
307
307
|
path: z.ZodArray<z.ZodNumber>;
|
|
308
308
|
presentation: z.ZodEnum<{
|
|
309
|
+
hidden: "hidden";
|
|
309
310
|
collapsed: "collapsed";
|
|
310
311
|
expanded: "expanded";
|
|
311
|
-
hidden: "hidden";
|
|
312
312
|
}>;
|
|
313
313
|
}, z.core.$strip>>;
|
|
314
314
|
subscriptions: z.ZodArray<z.ZodObject<{
|
|
@@ -706,9 +706,9 @@ export declare const deploymentContract: {
|
|
|
706
706
|
name: z.ZodOptional<z.ZodString>;
|
|
707
707
|
path: z.ZodArray<z.ZodNumber>;
|
|
708
708
|
presentation: z.ZodEnum<{
|
|
709
|
+
hidden: "hidden";
|
|
709
710
|
collapsed: "collapsed";
|
|
710
711
|
expanded: "expanded";
|
|
711
|
-
hidden: "hidden";
|
|
712
712
|
}>;
|
|
713
713
|
}, z.core.$strip>>;
|
|
714
714
|
subscriptions: z.ZodArray<z.ZodObject<{
|
|
@@ -1060,9 +1060,9 @@ export declare const deploymentContract: {
|
|
|
1060
1060
|
name: z.ZodOptional<z.ZodString>;
|
|
1061
1061
|
path: z.ZodArray<z.ZodNumber>;
|
|
1062
1062
|
presentation: z.ZodEnum<{
|
|
1063
|
+
hidden: "hidden";
|
|
1063
1064
|
collapsed: "collapsed";
|
|
1064
1065
|
expanded: "expanded";
|
|
1065
|
-
hidden: "hidden";
|
|
1066
1066
|
}>;
|
|
1067
1067
|
}, z.core.$strip>>;
|
|
1068
1068
|
subscriptions: z.ZodArray<z.ZodObject<{
|
package/dist/index.d.ts
CHANGED
|
@@ -180,6 +180,10 @@ export declare const publicContract: {
|
|
|
180
180
|
icon: import("zod").ZodOptional<import("zod").ZodString>;
|
|
181
181
|
id: import("zod").ZodString;
|
|
182
182
|
name: import("zod").ZodString;
|
|
183
|
+
requiredPlan: import("zod").ZodEnum<{
|
|
184
|
+
free: "free";
|
|
185
|
+
pro: "pro";
|
|
186
|
+
}>;
|
|
183
187
|
preferredConnectionMethodId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
184
188
|
}, import("zod/v4/core").$strip>>, Record<never, never>, Record<never, never>>;
|
|
185
189
|
revocationImpact: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
@@ -892,9 +896,9 @@ export declare const publicContract: {
|
|
|
892
896
|
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
893
897
|
path: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
894
898
|
presentation: import("zod").ZodEnum<{
|
|
899
|
+
hidden: "hidden";
|
|
895
900
|
collapsed: "collapsed";
|
|
896
901
|
expanded: "expanded";
|
|
897
|
-
hidden: "hidden";
|
|
898
902
|
}>;
|
|
899
903
|
}, import("zod/v4/core").$strip>>;
|
|
900
904
|
subscriptions: import("zod").ZodArray<import("zod").ZodObject<{
|
|
@@ -1246,9 +1250,9 @@ export declare const publicContract: {
|
|
|
1246
1250
|
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1247
1251
|
path: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
1248
1252
|
presentation: import("zod").ZodEnum<{
|
|
1253
|
+
hidden: "hidden";
|
|
1249
1254
|
collapsed: "collapsed";
|
|
1250
1255
|
expanded: "expanded";
|
|
1251
|
-
hidden: "hidden";
|
|
1252
1256
|
}>;
|
|
1253
1257
|
}, import("zod/v4/core").$strip>>;
|
|
1254
1258
|
subscriptions: import("zod").ZodArray<import("zod").ZodObject<{
|
|
@@ -1420,11 +1424,13 @@ export declare const publicContract: {
|
|
|
1420
1424
|
executionRetentionDays: import("zod").ZodNumber;
|
|
1421
1425
|
projects: import("zod").ZodNumber;
|
|
1422
1426
|
seats: import("zod").ZodNumber;
|
|
1427
|
+
webScrapingMinutes: import("zod").ZodNumber;
|
|
1423
1428
|
}, import("zod/v4/core").$strip>;
|
|
1424
1429
|
usage: import("zod").ZodObject<{
|
|
1425
1430
|
aiSpendUsd: import("zod").ZodNumber;
|
|
1426
1431
|
automationRuntimeMs: import("zod").ZodNumber;
|
|
1427
1432
|
emailSends: import("zod").ZodNumber;
|
|
1433
|
+
webScrapingMs: import("zod").ZodNumber;
|
|
1428
1434
|
}, import("zod/v4/core").$strip>;
|
|
1429
1435
|
members: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1430
1436
|
id: import("zod").ZodString;
|
|
@@ -1513,11 +1519,13 @@ export declare const publicContract: {
|
|
|
1513
1519
|
executionRetentionDays: import("zod").ZodNumber;
|
|
1514
1520
|
projects: import("zod").ZodNumber;
|
|
1515
1521
|
seats: import("zod").ZodNumber;
|
|
1522
|
+
webScrapingMinutes: import("zod").ZodNumber;
|
|
1516
1523
|
}, import("zod/v4/core").$strip>;
|
|
1517
1524
|
usage: import("zod").ZodObject<{
|
|
1518
1525
|
aiSpendUsd: import("zod").ZodNumber;
|
|
1519
1526
|
automationRuntimeMs: import("zod").ZodNumber;
|
|
1520
1527
|
emailSends: import("zod").ZodNumber;
|
|
1528
|
+
webScrapingMs: import("zod").ZodNumber;
|
|
1521
1529
|
}, import("zod/v4/core").$strip>;
|
|
1522
1530
|
}, import("zod/v4/core").$strip>>;
|
|
1523
1531
|
pageInfo: import("zod").ZodObject<{
|
|
@@ -2054,9 +2062,9 @@ export declare const firstPartyContract: {
|
|
|
2054
2062
|
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2055
2063
|
path: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2056
2064
|
presentation: import("zod").ZodEnum<{
|
|
2065
|
+
hidden: "hidden";
|
|
2057
2066
|
collapsed: "collapsed";
|
|
2058
2067
|
expanded: "expanded";
|
|
2059
|
-
hidden: "hidden";
|
|
2060
2068
|
}>;
|
|
2061
2069
|
}, import("zod/v4/core").$strip>>;
|
|
2062
2070
|
subscriptions: import("zod").ZodArray<import("zod").ZodObject<{
|
|
@@ -2408,9 +2416,9 @@ export declare const firstPartyContract: {
|
|
|
2408
2416
|
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2409
2417
|
path: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
2410
2418
|
presentation: import("zod").ZodEnum<{
|
|
2419
|
+
hidden: "hidden";
|
|
2411
2420
|
collapsed: "collapsed";
|
|
2412
2421
|
expanded: "expanded";
|
|
2413
|
-
hidden: "hidden";
|
|
2414
2422
|
}>;
|
|
2415
2423
|
}, import("zod/v4/core").$strip>>;
|
|
2416
2424
|
subscriptions: import("zod").ZodArray<import("zod").ZodObject<{
|
|
@@ -2506,11 +2514,6 @@ export declare const firstPartyContract: {
|
|
|
2506
2514
|
url: import("zod").ZodURL;
|
|
2507
2515
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
2508
2516
|
createCheckout: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
2509
|
-
organizationId: import("zod").ZodString;
|
|
2510
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
2511
|
-
url: import("zod").ZodURL;
|
|
2512
|
-
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
2513
|
-
createEmbeddedCheckout: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
2514
2517
|
billingPeriod: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
2515
2518
|
monthly: "monthly";
|
|
2516
2519
|
quarterly: "quarterly";
|
|
@@ -2518,8 +2521,7 @@ export declare const firstPartyContract: {
|
|
|
2518
2521
|
}>>;
|
|
2519
2522
|
organizationId: import("zod").ZodString;
|
|
2520
2523
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
2521
|
-
|
|
2522
|
-
publishableKey: import("zod").ZodString;
|
|
2524
|
+
url: import("zod").ZodURL;
|
|
2523
2525
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
2524
2526
|
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
2525
2527
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -2568,11 +2570,13 @@ export declare const firstPartyContract: {
|
|
|
2568
2570
|
executionRetentionDays: import("zod").ZodNumber;
|
|
2569
2571
|
projects: import("zod").ZodNumber;
|
|
2570
2572
|
seats: import("zod").ZodNumber;
|
|
2573
|
+
webScrapingMinutes: import("zod").ZodNumber;
|
|
2571
2574
|
}, import("zod/v4/core").$strip>;
|
|
2572
2575
|
usage: import("zod").ZodObject<{
|
|
2573
2576
|
aiSpendUsd: import("zod").ZodNumber;
|
|
2574
2577
|
automationRuntimeMs: import("zod").ZodNumber;
|
|
2575
2578
|
emailSends: import("zod").ZodNumber;
|
|
2579
|
+
webScrapingMs: import("zod").ZodNumber;
|
|
2576
2580
|
}, import("zod/v4/core").$strip>;
|
|
2577
2581
|
members: import("zod").ZodArray<import("zod").ZodObject<{
|
|
2578
2582
|
id: import("zod").ZodString;
|
|
@@ -2661,11 +2665,13 @@ export declare const firstPartyContract: {
|
|
|
2661
2665
|
executionRetentionDays: import("zod").ZodNumber;
|
|
2662
2666
|
projects: import("zod").ZodNumber;
|
|
2663
2667
|
seats: import("zod").ZodNumber;
|
|
2668
|
+
webScrapingMinutes: import("zod").ZodNumber;
|
|
2664
2669
|
}, import("zod/v4/core").$strip>;
|
|
2665
2670
|
usage: import("zod").ZodObject<{
|
|
2666
2671
|
aiSpendUsd: import("zod").ZodNumber;
|
|
2667
2672
|
automationRuntimeMs: import("zod").ZodNumber;
|
|
2668
2673
|
emailSends: import("zod").ZodNumber;
|
|
2674
|
+
webScrapingMs: import("zod").ZodNumber;
|
|
2669
2675
|
}, import("zod/v4/core").$strip>;
|
|
2670
2676
|
}, import("zod/v4/core").$strip>>;
|
|
2671
2677
|
pageInfo: import("zod").ZodObject<{
|
|
@@ -2945,6 +2951,10 @@ export declare const firstPartyContract: {
|
|
|
2945
2951
|
icon: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2946
2952
|
id: import("zod").ZodString;
|
|
2947
2953
|
name: import("zod").ZodString;
|
|
2954
|
+
requiredPlan: import("zod").ZodEnum<{
|
|
2955
|
+
free: "free";
|
|
2956
|
+
pro: "pro";
|
|
2957
|
+
}>;
|
|
2948
2958
|
preferredConnectionMethodId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2949
2959
|
}, import("zod/v4/core").$strip>>, Record<never, never>, Record<never, never>>;
|
|
2950
2960
|
revocationImpact: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
@@ -8513,6 +8523,135 @@ export declare const contract: {
|
|
|
8513
8523
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
8514
8524
|
key: import("zod").ZodString;
|
|
8515
8525
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
8526
|
+
startWebScrape: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
8527
|
+
html: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8528
|
+
url: import("zod").ZodOptional<import("zod").ZodURL>;
|
|
8529
|
+
userAgent: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8530
|
+
actionTimeout: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
8531
|
+
addScriptTag: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
8532
|
+
content: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8533
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8534
|
+
type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8535
|
+
url: import("zod").ZodOptional<import("zod").ZodURL>;
|
|
8536
|
+
}, import("zod/v4/core").$strip>>>;
|
|
8537
|
+
addStyleTag: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
8538
|
+
content: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8539
|
+
url: import("zod").ZodOptional<import("zod").ZodURL>;
|
|
8540
|
+
}, import("zod/v4/core").$strip>>>;
|
|
8541
|
+
allowRequestPattern: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
8542
|
+
allowResourceTypes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
|
|
8543
|
+
document: "document";
|
|
8544
|
+
font: "font";
|
|
8545
|
+
image: "image";
|
|
8546
|
+
manifest: "manifest";
|
|
8547
|
+
script: "script";
|
|
8548
|
+
stylesheet: "stylesheet";
|
|
8549
|
+
media: "media";
|
|
8550
|
+
texttrack: "texttrack";
|
|
8551
|
+
xhr: "xhr";
|
|
8552
|
+
fetch: "fetch";
|
|
8553
|
+
prefetch: "prefetch";
|
|
8554
|
+
eventsource: "eventsource";
|
|
8555
|
+
websocket: "websocket";
|
|
8556
|
+
signedexchange: "signedexchange";
|
|
8557
|
+
ping: "ping";
|
|
8558
|
+
cspviolationreport: "cspviolationreport";
|
|
8559
|
+
preflight: "preflight";
|
|
8560
|
+
other: "other";
|
|
8561
|
+
}>>>;
|
|
8562
|
+
authenticate: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
8563
|
+
password: import("zod").ZodString;
|
|
8564
|
+
username: import("zod").ZodString;
|
|
8565
|
+
}, import("zod/v4/core").$strip>>;
|
|
8566
|
+
bestAttempt: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
8567
|
+
cookies: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
8568
|
+
domain: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8569
|
+
expires: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
8570
|
+
httpOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
8571
|
+
name: import("zod").ZodString;
|
|
8572
|
+
partitionKey: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8573
|
+
path: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8574
|
+
priority: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
8575
|
+
Low: "Low";
|
|
8576
|
+
Medium: "Medium";
|
|
8577
|
+
High: "High";
|
|
8578
|
+
}>>;
|
|
8579
|
+
sameParty: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
8580
|
+
sameSite: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
8581
|
+
Strict: "Strict";
|
|
8582
|
+
Lax: "Lax";
|
|
8583
|
+
None: "None";
|
|
8584
|
+
}>>;
|
|
8585
|
+
secure: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
8586
|
+
sourcePort: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
8587
|
+
sourceScheme: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
8588
|
+
Unset: "Unset";
|
|
8589
|
+
NonSecure: "NonSecure";
|
|
8590
|
+
Secure: "Secure";
|
|
8591
|
+
}>>;
|
|
8592
|
+
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8593
|
+
value: import("zod").ZodString;
|
|
8594
|
+
}, import("zod/v4/core").$strip>>>;
|
|
8595
|
+
emulateMediaType: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8596
|
+
gotoOptions: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
8597
|
+
referer: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8598
|
+
referrerPolicy: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8599
|
+
timeout: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
8600
|
+
waitUntil: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodEnum<{
|
|
8601
|
+
load: "load";
|
|
8602
|
+
domcontentloaded: "domcontentloaded";
|
|
8603
|
+
networkidle0: "networkidle0";
|
|
8604
|
+
networkidle2: "networkidle2";
|
|
8605
|
+
}>, import("zod").ZodArray<import("zod").ZodEnum<{
|
|
8606
|
+
load: "load";
|
|
8607
|
+
domcontentloaded: "domcontentloaded";
|
|
8608
|
+
networkidle0: "networkidle0";
|
|
8609
|
+
networkidle2: "networkidle2";
|
|
8610
|
+
}>>]>>;
|
|
8611
|
+
}, import("zod/v4/core").$strip>>;
|
|
8612
|
+
rejectRequestPattern: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
8613
|
+
rejectResourceTypes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
|
|
8614
|
+
document: "document";
|
|
8615
|
+
font: "font";
|
|
8616
|
+
image: "image";
|
|
8617
|
+
manifest: "manifest";
|
|
8618
|
+
script: "script";
|
|
8619
|
+
stylesheet: "stylesheet";
|
|
8620
|
+
media: "media";
|
|
8621
|
+
texttrack: "texttrack";
|
|
8622
|
+
xhr: "xhr";
|
|
8623
|
+
fetch: "fetch";
|
|
8624
|
+
prefetch: "prefetch";
|
|
8625
|
+
eventsource: "eventsource";
|
|
8626
|
+
websocket: "websocket";
|
|
8627
|
+
signedexchange: "signedexchange";
|
|
8628
|
+
ping: "ping";
|
|
8629
|
+
cspviolationreport: "cspviolationreport";
|
|
8630
|
+
preflight: "preflight";
|
|
8631
|
+
other: "other";
|
|
8632
|
+
}>>>;
|
|
8633
|
+
setExtraHttpHeaders: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
|
|
8634
|
+
setJavaScriptEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
8635
|
+
viewport: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
8636
|
+
deviceScaleFactor: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
8637
|
+
hasTouch: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
8638
|
+
height: import("zod").ZodNumber;
|
|
8639
|
+
isLandscape: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
8640
|
+
isMobile: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
8641
|
+
width: import("zod").ZodNumber;
|
|
8642
|
+
}, import("zod/v4/core").$strip>>;
|
|
8643
|
+
waitForSelector: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
8644
|
+
hidden: import("zod").ZodOptional<import("zod").ZodLiteral<true>>;
|
|
8645
|
+
selector: import("zod").ZodString;
|
|
8646
|
+
timeout: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
8647
|
+
visible: import("zod").ZodOptional<import("zod").ZodLiteral<true>>;
|
|
8648
|
+
}, import("zod/v4/core").$strip>>;
|
|
8649
|
+
waitForTimeout: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
8650
|
+
cacheTtl: import("zod").ZodOptional<import("zod").ZodNever>;
|
|
8651
|
+
entrypoint: import("zod").ZodString;
|
|
8652
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
8653
|
+
key: import("zod").ZodString;
|
|
8654
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
8516
8655
|
createCallbackToken: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
8517
8656
|
endpointKey: import("zod").ZodString;
|
|
8518
8657
|
}, import("zod/v4/core").$strip>, import("zod").ZodString, Record<never, never>, Record<never, never>>;
|
|
@@ -9528,9 +9667,9 @@ export declare const contract: {
|
|
|
9528
9667
|
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
9529
9668
|
path: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
9530
9669
|
presentation: import("zod").ZodEnum<{
|
|
9670
|
+
hidden: "hidden";
|
|
9531
9671
|
collapsed: "collapsed";
|
|
9532
9672
|
expanded: "expanded";
|
|
9533
|
-
hidden: "hidden";
|
|
9534
9673
|
}>;
|
|
9535
9674
|
}, import("zod/v4/core").$strip>>;
|
|
9536
9675
|
subscriptions: import("zod").ZodArray<import("zod").ZodObject<{
|
|
@@ -9882,9 +10021,9 @@ export declare const contract: {
|
|
|
9882
10021
|
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
9883
10022
|
path: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
9884
10023
|
presentation: import("zod").ZodEnum<{
|
|
10024
|
+
hidden: "hidden";
|
|
9885
10025
|
collapsed: "collapsed";
|
|
9886
10026
|
expanded: "expanded";
|
|
9887
|
-
hidden: "hidden";
|
|
9888
10027
|
}>;
|
|
9889
10028
|
}, import("zod/v4/core").$strip>>;
|
|
9890
10029
|
subscriptions: import("zod").ZodArray<import("zod").ZodObject<{
|
|
@@ -9980,11 +10119,6 @@ export declare const contract: {
|
|
|
9980
10119
|
url: import("zod").ZodURL;
|
|
9981
10120
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
9982
10121
|
createCheckout: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
9983
|
-
organizationId: import("zod").ZodString;
|
|
9984
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
9985
|
-
url: import("zod").ZodURL;
|
|
9986
|
-
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
9987
|
-
createEmbeddedCheckout: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
9988
10122
|
billingPeriod: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
9989
10123
|
monthly: "monthly";
|
|
9990
10124
|
quarterly: "quarterly";
|
|
@@ -9992,8 +10126,7 @@ export declare const contract: {
|
|
|
9992
10126
|
}>>;
|
|
9993
10127
|
organizationId: import("zod").ZodString;
|
|
9994
10128
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
9995
|
-
|
|
9996
|
-
publishableKey: import("zod").ZodString;
|
|
10129
|
+
url: import("zod").ZodURL;
|
|
9997
10130
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
9998
10131
|
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
9999
10132
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -10042,11 +10175,13 @@ export declare const contract: {
|
|
|
10042
10175
|
executionRetentionDays: import("zod").ZodNumber;
|
|
10043
10176
|
projects: import("zod").ZodNumber;
|
|
10044
10177
|
seats: import("zod").ZodNumber;
|
|
10178
|
+
webScrapingMinutes: import("zod").ZodNumber;
|
|
10045
10179
|
}, import("zod/v4/core").$strip>;
|
|
10046
10180
|
usage: import("zod").ZodObject<{
|
|
10047
10181
|
aiSpendUsd: import("zod").ZodNumber;
|
|
10048
10182
|
automationRuntimeMs: import("zod").ZodNumber;
|
|
10049
10183
|
emailSends: import("zod").ZodNumber;
|
|
10184
|
+
webScrapingMs: import("zod").ZodNumber;
|
|
10050
10185
|
}, import("zod/v4/core").$strip>;
|
|
10051
10186
|
members: import("zod").ZodArray<import("zod").ZodObject<{
|
|
10052
10187
|
id: import("zod").ZodString;
|
|
@@ -10135,11 +10270,13 @@ export declare const contract: {
|
|
|
10135
10270
|
executionRetentionDays: import("zod").ZodNumber;
|
|
10136
10271
|
projects: import("zod").ZodNumber;
|
|
10137
10272
|
seats: import("zod").ZodNumber;
|
|
10273
|
+
webScrapingMinutes: import("zod").ZodNumber;
|
|
10138
10274
|
}, import("zod/v4/core").$strip>;
|
|
10139
10275
|
usage: import("zod").ZodObject<{
|
|
10140
10276
|
aiSpendUsd: import("zod").ZodNumber;
|
|
10141
10277
|
automationRuntimeMs: import("zod").ZodNumber;
|
|
10142
10278
|
emailSends: import("zod").ZodNumber;
|
|
10279
|
+
webScrapingMs: import("zod").ZodNumber;
|
|
10143
10280
|
}, import("zod/v4/core").$strip>;
|
|
10144
10281
|
}, import("zod/v4/core").$strip>>;
|
|
10145
10282
|
pageInfo: import("zod").ZodObject<{
|
|
@@ -10419,6 +10556,10 @@ export declare const contract: {
|
|
|
10419
10556
|
icon: import("zod").ZodOptional<import("zod").ZodString>;
|
|
10420
10557
|
id: import("zod").ZodString;
|
|
10421
10558
|
name: import("zod").ZodString;
|
|
10559
|
+
requiredPlan: import("zod").ZodEnum<{
|
|
10560
|
+
free: "free";
|
|
10561
|
+
pro: "pro";
|
|
10562
|
+
}>;
|
|
10422
10563
|
preferredConnectionMethodId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
10423
10564
|
}, import("zod/v4/core").$strip>>, Record<never, never>, Record<never, never>>;
|
|
10424
10565
|
revocationImpact: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
package/dist/index.js
CHANGED
|
@@ -82,7 +82,6 @@ export const firstPartyContract = {
|
|
|
82
82
|
canInvite: orgContract.canInvite,
|
|
83
83
|
createBillingPortal: orgContract.createBillingPortal,
|
|
84
84
|
createCheckout: orgContract.createCheckout,
|
|
85
|
-
createEmbeddedCheckout: orgContract.createEmbeddedCheckout,
|
|
86
85
|
},
|
|
87
86
|
project: {
|
|
88
87
|
...publicContract.project,
|
package/dist/org.d.ts
CHANGED
|
@@ -55,11 +55,13 @@ export declare const organizationSummaryOutputSchema: z.ZodObject<{
|
|
|
55
55
|
executionRetentionDays: z.ZodNumber;
|
|
56
56
|
projects: z.ZodNumber;
|
|
57
57
|
seats: z.ZodNumber;
|
|
58
|
+
webScrapingMinutes: z.ZodNumber;
|
|
58
59
|
}, z.core.$strip>;
|
|
59
60
|
usage: z.ZodObject<{
|
|
60
61
|
aiSpendUsd: z.ZodNumber;
|
|
61
62
|
automationRuntimeMs: z.ZodNumber;
|
|
62
63
|
emailSends: z.ZodNumber;
|
|
64
|
+
webScrapingMs: z.ZodNumber;
|
|
63
65
|
}, z.core.$strip>;
|
|
64
66
|
}, z.core.$strip>;
|
|
65
67
|
export declare const organizationMemberOutputSchema: z.ZodObject<{
|
|
@@ -123,11 +125,13 @@ export declare const organizationDetailsOutputSchema: z.ZodObject<{
|
|
|
123
125
|
executionRetentionDays: z.ZodNumber;
|
|
124
126
|
projects: z.ZodNumber;
|
|
125
127
|
seats: z.ZodNumber;
|
|
128
|
+
webScrapingMinutes: z.ZodNumber;
|
|
126
129
|
}, z.core.$strip>;
|
|
127
130
|
usage: z.ZodObject<{
|
|
128
131
|
aiSpendUsd: z.ZodNumber;
|
|
129
132
|
automationRuntimeMs: z.ZodNumber;
|
|
130
133
|
emailSends: z.ZodNumber;
|
|
134
|
+
webScrapingMs: z.ZodNumber;
|
|
131
135
|
}, z.core.$strip>;
|
|
132
136
|
members: z.ZodArray<z.ZodObject<{
|
|
133
137
|
id: z.ZodString;
|
|
@@ -177,11 +181,6 @@ export declare const orgContract: {
|
|
|
177
181
|
url: z.ZodURL;
|
|
178
182
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
179
183
|
createCheckout: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
180
|
-
organizationId: z.ZodString;
|
|
181
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
182
|
-
url: z.ZodURL;
|
|
183
|
-
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
184
|
-
createEmbeddedCheckout: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
185
184
|
billingPeriod: z.ZodDefault<z.ZodEnum<{
|
|
186
185
|
monthly: "monthly";
|
|
187
186
|
quarterly: "quarterly";
|
|
@@ -189,8 +188,7 @@ export declare const orgContract: {
|
|
|
189
188
|
}>>;
|
|
190
189
|
organizationId: z.ZodString;
|
|
191
190
|
}, z.core.$strip>, z.ZodObject<{
|
|
192
|
-
|
|
193
|
-
publishableKey: z.ZodString;
|
|
191
|
+
url: z.ZodURL;
|
|
194
192
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
195
193
|
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
196
194
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -239,11 +237,13 @@ export declare const orgContract: {
|
|
|
239
237
|
executionRetentionDays: z.ZodNumber;
|
|
240
238
|
projects: z.ZodNumber;
|
|
241
239
|
seats: z.ZodNumber;
|
|
240
|
+
webScrapingMinutes: z.ZodNumber;
|
|
242
241
|
}, z.core.$strip>;
|
|
243
242
|
usage: z.ZodObject<{
|
|
244
243
|
aiSpendUsd: z.ZodNumber;
|
|
245
244
|
automationRuntimeMs: z.ZodNumber;
|
|
246
245
|
emailSends: z.ZodNumber;
|
|
246
|
+
webScrapingMs: z.ZodNumber;
|
|
247
247
|
}, z.core.$strip>;
|
|
248
248
|
members: z.ZodArray<z.ZodObject<{
|
|
249
249
|
id: z.ZodString;
|
|
@@ -332,11 +332,13 @@ export declare const orgContract: {
|
|
|
332
332
|
executionRetentionDays: z.ZodNumber;
|
|
333
333
|
projects: z.ZodNumber;
|
|
334
334
|
seats: z.ZodNumber;
|
|
335
|
+
webScrapingMinutes: z.ZodNumber;
|
|
335
336
|
}, z.core.$strip>;
|
|
336
337
|
usage: z.ZodObject<{
|
|
337
338
|
aiSpendUsd: z.ZodNumber;
|
|
338
339
|
automationRuntimeMs: z.ZodNumber;
|
|
339
340
|
emailSends: z.ZodNumber;
|
|
341
|
+
webScrapingMs: z.ZodNumber;
|
|
340
342
|
}, z.core.$strip>;
|
|
341
343
|
}, z.core.$strip>>;
|
|
342
344
|
pageInfo: z.ZodObject<{
|
package/dist/org.js
CHANGED
|
@@ -36,11 +36,13 @@ export const organizationSummaryOutputSchema = z.object({
|
|
|
36
36
|
executionRetentionDays: z.number().int().positive(),
|
|
37
37
|
projects: z.number(),
|
|
38
38
|
seats: z.number(),
|
|
39
|
+
webScrapingMinutes: z.number(),
|
|
39
40
|
}),
|
|
40
41
|
usage: z.object({
|
|
41
42
|
aiSpendUsd: z.number(),
|
|
42
43
|
automationRuntimeMs: z.number(),
|
|
43
44
|
emailSends: z.number(),
|
|
45
|
+
webScrapingMs: z.number(),
|
|
44
46
|
}),
|
|
45
47
|
});
|
|
46
48
|
export const organizationMemberOutputSchema = z.object({
|
|
@@ -84,17 +86,11 @@ export const orgContract = {
|
|
|
84
86
|
.input(z.object({ organizationId: z.string() }))
|
|
85
87
|
.output(z.object({ url: z.url() })),
|
|
86
88
|
createCheckout: oc
|
|
87
|
-
.input(z.object({ organizationId: z.string() }))
|
|
88
|
-
.output(z.object({ url: z.url() })),
|
|
89
|
-
createEmbeddedCheckout: oc
|
|
90
89
|
.input(z.object({
|
|
91
90
|
billingPeriod: proBillingPeriodSchema.default("monthly"),
|
|
92
91
|
organizationId: z.string(),
|
|
93
92
|
}))
|
|
94
|
-
.output(z.object({
|
|
95
|
-
clientSecret: z.string().min(1),
|
|
96
|
-
publishableKey: z.string().min(1),
|
|
97
|
-
})),
|
|
93
|
+
.output(z.object({ url: z.url() })),
|
|
98
94
|
create: oc
|
|
99
95
|
.route({
|
|
100
96
|
method: "POST",
|
package/dist/runtime.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export declare const AUTOMATION_INVOCATION_DEFAULT_ENTRYPOINT = "default";
|
|
|
10
10
|
export declare const AUTOMATION_INVOCATION_RESERVED_ENTRYPOINT_PREFIX = "__$";
|
|
11
11
|
export declare const AUTOMATION_DELAY_ENTRYPOINT_PREFIX: "__$delay:";
|
|
12
12
|
export declare const AUTOMATION_IMAGE_GENERATION_ENTRYPOINT_PREFIX: "__$generate-image:";
|
|
13
|
+
export declare const AUTOMATION_WEB_SCRAPE_ENTRYPOINT_PREFIX: "__$scrape-web:";
|
|
13
14
|
export declare const CALLBACK_PROTECTION_QUERY_PARAMETER = "_axCallback";
|
|
14
15
|
export declare const AUTOMATION_LOG_MAX_ENTRIES = 1000;
|
|
15
16
|
export declare const AUTOMATION_OBSERVABILITY_MAX_FIELDS = 64;
|
|
@@ -1339,6 +1340,279 @@ export type ImageGenerationInput = z.output<typeof imageGenerationInputSchema>;
|
|
|
1339
1340
|
export type ImageGenerationResult = z.output<typeof imageGenerationResultSchema>;
|
|
1340
1341
|
export type ImageGenerationCompletion = z.output<typeof imageGenerationCompletionSchema>;
|
|
1341
1342
|
export type PlatformImageGenerationInput = z.output<typeof platformImageGenerationInputSchema>;
|
|
1343
|
+
/** Browser controls accepted by the built-in web-scraping action. */
|
|
1344
|
+
export declare const webScrapeInputSchema: z.ZodObject<{
|
|
1345
|
+
html: z.ZodOptional<z.ZodString>;
|
|
1346
|
+
url: z.ZodOptional<z.ZodURL>;
|
|
1347
|
+
userAgent: z.ZodOptional<z.ZodString>;
|
|
1348
|
+
actionTimeout: z.ZodOptional<z.ZodNumber>;
|
|
1349
|
+
addScriptTag: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1350
|
+
content: z.ZodOptional<z.ZodString>;
|
|
1351
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1352
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1353
|
+
url: z.ZodOptional<z.ZodURL>;
|
|
1354
|
+
}, z.core.$strip>>>;
|
|
1355
|
+
addStyleTag: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1356
|
+
content: z.ZodOptional<z.ZodString>;
|
|
1357
|
+
url: z.ZodOptional<z.ZodURL>;
|
|
1358
|
+
}, z.core.$strip>>>;
|
|
1359
|
+
allowRequestPattern: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1360
|
+
allowResourceTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1361
|
+
document: "document";
|
|
1362
|
+
font: "font";
|
|
1363
|
+
image: "image";
|
|
1364
|
+
manifest: "manifest";
|
|
1365
|
+
script: "script";
|
|
1366
|
+
stylesheet: "stylesheet";
|
|
1367
|
+
media: "media";
|
|
1368
|
+
texttrack: "texttrack";
|
|
1369
|
+
xhr: "xhr";
|
|
1370
|
+
fetch: "fetch";
|
|
1371
|
+
prefetch: "prefetch";
|
|
1372
|
+
eventsource: "eventsource";
|
|
1373
|
+
websocket: "websocket";
|
|
1374
|
+
signedexchange: "signedexchange";
|
|
1375
|
+
ping: "ping";
|
|
1376
|
+
cspviolationreport: "cspviolationreport";
|
|
1377
|
+
preflight: "preflight";
|
|
1378
|
+
other: "other";
|
|
1379
|
+
}>>>;
|
|
1380
|
+
authenticate: z.ZodOptional<z.ZodObject<{
|
|
1381
|
+
password: z.ZodString;
|
|
1382
|
+
username: z.ZodString;
|
|
1383
|
+
}, z.core.$strip>>;
|
|
1384
|
+
bestAttempt: z.ZodOptional<z.ZodBoolean>;
|
|
1385
|
+
cookies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1386
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
1387
|
+
expires: z.ZodOptional<z.ZodNumber>;
|
|
1388
|
+
httpOnly: z.ZodOptional<z.ZodBoolean>;
|
|
1389
|
+
name: z.ZodString;
|
|
1390
|
+
partitionKey: z.ZodOptional<z.ZodString>;
|
|
1391
|
+
path: z.ZodOptional<z.ZodString>;
|
|
1392
|
+
priority: z.ZodOptional<z.ZodEnum<{
|
|
1393
|
+
Low: "Low";
|
|
1394
|
+
Medium: "Medium";
|
|
1395
|
+
High: "High";
|
|
1396
|
+
}>>;
|
|
1397
|
+
sameParty: z.ZodOptional<z.ZodBoolean>;
|
|
1398
|
+
sameSite: z.ZodOptional<z.ZodEnum<{
|
|
1399
|
+
Strict: "Strict";
|
|
1400
|
+
Lax: "Lax";
|
|
1401
|
+
None: "None";
|
|
1402
|
+
}>>;
|
|
1403
|
+
secure: z.ZodOptional<z.ZodBoolean>;
|
|
1404
|
+
sourcePort: z.ZodOptional<z.ZodNumber>;
|
|
1405
|
+
sourceScheme: z.ZodOptional<z.ZodEnum<{
|
|
1406
|
+
Unset: "Unset";
|
|
1407
|
+
NonSecure: "NonSecure";
|
|
1408
|
+
Secure: "Secure";
|
|
1409
|
+
}>>;
|
|
1410
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1411
|
+
value: z.ZodString;
|
|
1412
|
+
}, z.core.$strip>>>;
|
|
1413
|
+
emulateMediaType: z.ZodOptional<z.ZodString>;
|
|
1414
|
+
gotoOptions: z.ZodOptional<z.ZodObject<{
|
|
1415
|
+
referer: z.ZodOptional<z.ZodString>;
|
|
1416
|
+
referrerPolicy: z.ZodOptional<z.ZodString>;
|
|
1417
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1418
|
+
waitUntil: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1419
|
+
load: "load";
|
|
1420
|
+
domcontentloaded: "domcontentloaded";
|
|
1421
|
+
networkidle0: "networkidle0";
|
|
1422
|
+
networkidle2: "networkidle2";
|
|
1423
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
1424
|
+
load: "load";
|
|
1425
|
+
domcontentloaded: "domcontentloaded";
|
|
1426
|
+
networkidle0: "networkidle0";
|
|
1427
|
+
networkidle2: "networkidle2";
|
|
1428
|
+
}>>]>>;
|
|
1429
|
+
}, z.core.$strip>>;
|
|
1430
|
+
rejectRequestPattern: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1431
|
+
rejectResourceTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1432
|
+
document: "document";
|
|
1433
|
+
font: "font";
|
|
1434
|
+
image: "image";
|
|
1435
|
+
manifest: "manifest";
|
|
1436
|
+
script: "script";
|
|
1437
|
+
stylesheet: "stylesheet";
|
|
1438
|
+
media: "media";
|
|
1439
|
+
texttrack: "texttrack";
|
|
1440
|
+
xhr: "xhr";
|
|
1441
|
+
fetch: "fetch";
|
|
1442
|
+
prefetch: "prefetch";
|
|
1443
|
+
eventsource: "eventsource";
|
|
1444
|
+
websocket: "websocket";
|
|
1445
|
+
signedexchange: "signedexchange";
|
|
1446
|
+
ping: "ping";
|
|
1447
|
+
cspviolationreport: "cspviolationreport";
|
|
1448
|
+
preflight: "preflight";
|
|
1449
|
+
other: "other";
|
|
1450
|
+
}>>>;
|
|
1451
|
+
setExtraHttpHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1452
|
+
setJavaScriptEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
1453
|
+
viewport: z.ZodOptional<z.ZodObject<{
|
|
1454
|
+
deviceScaleFactor: z.ZodOptional<z.ZodNumber>;
|
|
1455
|
+
hasTouch: z.ZodOptional<z.ZodBoolean>;
|
|
1456
|
+
height: z.ZodNumber;
|
|
1457
|
+
isLandscape: z.ZodOptional<z.ZodBoolean>;
|
|
1458
|
+
isMobile: z.ZodOptional<z.ZodBoolean>;
|
|
1459
|
+
width: z.ZodNumber;
|
|
1460
|
+
}, z.core.$strip>>;
|
|
1461
|
+
waitForSelector: z.ZodOptional<z.ZodObject<{
|
|
1462
|
+
hidden: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1463
|
+
selector: z.ZodString;
|
|
1464
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1465
|
+
visible: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1466
|
+
}, z.core.$strip>>;
|
|
1467
|
+
waitForTimeout: z.ZodOptional<z.ZodNumber>;
|
|
1468
|
+
cacheTtl: z.ZodOptional<z.ZodNever>;
|
|
1469
|
+
}, z.core.$strip>;
|
|
1470
|
+
/** Internal terminal delivery emitted by a platform web-scraping job. */
|
|
1471
|
+
export declare const webScrapeCompletionSchema: z.ZodObject<{
|
|
1472
|
+
key: z.ZodString;
|
|
1473
|
+
outcome: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1474
|
+
result: z.ZodString;
|
|
1475
|
+
status: z.ZodLiteral<"succeeded">;
|
|
1476
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1477
|
+
failure: z.ZodType<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue, z.core.$ZodTypeInternals<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue>>;
|
|
1478
|
+
status: z.ZodLiteral<"failed">;
|
|
1479
|
+
}, z.core.$strip>], "status">;
|
|
1480
|
+
}, z.core.$strip>;
|
|
1481
|
+
/** Starts a platform web scrape for one reserved internal entrypoint. */
|
|
1482
|
+
export declare const platformWebScrapeInputSchema: z.ZodObject<{
|
|
1483
|
+
html: z.ZodOptional<z.ZodString>;
|
|
1484
|
+
url: z.ZodOptional<z.ZodURL>;
|
|
1485
|
+
userAgent: z.ZodOptional<z.ZodString>;
|
|
1486
|
+
actionTimeout: z.ZodOptional<z.ZodNumber>;
|
|
1487
|
+
addScriptTag: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1488
|
+
content: z.ZodOptional<z.ZodString>;
|
|
1489
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1490
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1491
|
+
url: z.ZodOptional<z.ZodURL>;
|
|
1492
|
+
}, z.core.$strip>>>;
|
|
1493
|
+
addStyleTag: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1494
|
+
content: z.ZodOptional<z.ZodString>;
|
|
1495
|
+
url: z.ZodOptional<z.ZodURL>;
|
|
1496
|
+
}, z.core.$strip>>>;
|
|
1497
|
+
allowRequestPattern: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1498
|
+
allowResourceTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1499
|
+
document: "document";
|
|
1500
|
+
font: "font";
|
|
1501
|
+
image: "image";
|
|
1502
|
+
manifest: "manifest";
|
|
1503
|
+
script: "script";
|
|
1504
|
+
stylesheet: "stylesheet";
|
|
1505
|
+
media: "media";
|
|
1506
|
+
texttrack: "texttrack";
|
|
1507
|
+
xhr: "xhr";
|
|
1508
|
+
fetch: "fetch";
|
|
1509
|
+
prefetch: "prefetch";
|
|
1510
|
+
eventsource: "eventsource";
|
|
1511
|
+
websocket: "websocket";
|
|
1512
|
+
signedexchange: "signedexchange";
|
|
1513
|
+
ping: "ping";
|
|
1514
|
+
cspviolationreport: "cspviolationreport";
|
|
1515
|
+
preflight: "preflight";
|
|
1516
|
+
other: "other";
|
|
1517
|
+
}>>>;
|
|
1518
|
+
authenticate: z.ZodOptional<z.ZodObject<{
|
|
1519
|
+
password: z.ZodString;
|
|
1520
|
+
username: z.ZodString;
|
|
1521
|
+
}, z.core.$strip>>;
|
|
1522
|
+
bestAttempt: z.ZodOptional<z.ZodBoolean>;
|
|
1523
|
+
cookies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1524
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
1525
|
+
expires: z.ZodOptional<z.ZodNumber>;
|
|
1526
|
+
httpOnly: z.ZodOptional<z.ZodBoolean>;
|
|
1527
|
+
name: z.ZodString;
|
|
1528
|
+
partitionKey: z.ZodOptional<z.ZodString>;
|
|
1529
|
+
path: z.ZodOptional<z.ZodString>;
|
|
1530
|
+
priority: z.ZodOptional<z.ZodEnum<{
|
|
1531
|
+
Low: "Low";
|
|
1532
|
+
Medium: "Medium";
|
|
1533
|
+
High: "High";
|
|
1534
|
+
}>>;
|
|
1535
|
+
sameParty: z.ZodOptional<z.ZodBoolean>;
|
|
1536
|
+
sameSite: z.ZodOptional<z.ZodEnum<{
|
|
1537
|
+
Strict: "Strict";
|
|
1538
|
+
Lax: "Lax";
|
|
1539
|
+
None: "None";
|
|
1540
|
+
}>>;
|
|
1541
|
+
secure: z.ZodOptional<z.ZodBoolean>;
|
|
1542
|
+
sourcePort: z.ZodOptional<z.ZodNumber>;
|
|
1543
|
+
sourceScheme: z.ZodOptional<z.ZodEnum<{
|
|
1544
|
+
Unset: "Unset";
|
|
1545
|
+
NonSecure: "NonSecure";
|
|
1546
|
+
Secure: "Secure";
|
|
1547
|
+
}>>;
|
|
1548
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1549
|
+
value: z.ZodString;
|
|
1550
|
+
}, z.core.$strip>>>;
|
|
1551
|
+
emulateMediaType: z.ZodOptional<z.ZodString>;
|
|
1552
|
+
gotoOptions: z.ZodOptional<z.ZodObject<{
|
|
1553
|
+
referer: z.ZodOptional<z.ZodString>;
|
|
1554
|
+
referrerPolicy: z.ZodOptional<z.ZodString>;
|
|
1555
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1556
|
+
waitUntil: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1557
|
+
load: "load";
|
|
1558
|
+
domcontentloaded: "domcontentloaded";
|
|
1559
|
+
networkidle0: "networkidle0";
|
|
1560
|
+
networkidle2: "networkidle2";
|
|
1561
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
1562
|
+
load: "load";
|
|
1563
|
+
domcontentloaded: "domcontentloaded";
|
|
1564
|
+
networkidle0: "networkidle0";
|
|
1565
|
+
networkidle2: "networkidle2";
|
|
1566
|
+
}>>]>>;
|
|
1567
|
+
}, z.core.$strip>>;
|
|
1568
|
+
rejectRequestPattern: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1569
|
+
rejectResourceTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1570
|
+
document: "document";
|
|
1571
|
+
font: "font";
|
|
1572
|
+
image: "image";
|
|
1573
|
+
manifest: "manifest";
|
|
1574
|
+
script: "script";
|
|
1575
|
+
stylesheet: "stylesheet";
|
|
1576
|
+
media: "media";
|
|
1577
|
+
texttrack: "texttrack";
|
|
1578
|
+
xhr: "xhr";
|
|
1579
|
+
fetch: "fetch";
|
|
1580
|
+
prefetch: "prefetch";
|
|
1581
|
+
eventsource: "eventsource";
|
|
1582
|
+
websocket: "websocket";
|
|
1583
|
+
signedexchange: "signedexchange";
|
|
1584
|
+
ping: "ping";
|
|
1585
|
+
cspviolationreport: "cspviolationreport";
|
|
1586
|
+
preflight: "preflight";
|
|
1587
|
+
other: "other";
|
|
1588
|
+
}>>>;
|
|
1589
|
+
setExtraHttpHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1590
|
+
setJavaScriptEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
1591
|
+
viewport: z.ZodOptional<z.ZodObject<{
|
|
1592
|
+
deviceScaleFactor: z.ZodOptional<z.ZodNumber>;
|
|
1593
|
+
hasTouch: z.ZodOptional<z.ZodBoolean>;
|
|
1594
|
+
height: z.ZodNumber;
|
|
1595
|
+
isLandscape: z.ZodOptional<z.ZodBoolean>;
|
|
1596
|
+
isMobile: z.ZodOptional<z.ZodBoolean>;
|
|
1597
|
+
width: z.ZodNumber;
|
|
1598
|
+
}, z.core.$strip>>;
|
|
1599
|
+
waitForSelector: z.ZodOptional<z.ZodObject<{
|
|
1600
|
+
hidden: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1601
|
+
selector: z.ZodString;
|
|
1602
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1603
|
+
visible: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1604
|
+
}, z.core.$strip>>;
|
|
1605
|
+
waitForTimeout: z.ZodOptional<z.ZodNumber>;
|
|
1606
|
+
cacheTtl: z.ZodOptional<z.ZodNever>;
|
|
1607
|
+
entrypoint: z.ZodString;
|
|
1608
|
+
}, z.core.$strip>;
|
|
1609
|
+
/** Durable identity returned after a platform web scrape is queued. */
|
|
1610
|
+
export declare const platformWebScrapeStartSchema: z.ZodObject<{
|
|
1611
|
+
key: z.ZodString;
|
|
1612
|
+
}, z.core.$strip>;
|
|
1613
|
+
export type WebScrapeInput = z.output<typeof webScrapeInputSchema>;
|
|
1614
|
+
export type WebScrapeCompletion = z.output<typeof webScrapeCompletionSchema>;
|
|
1615
|
+
export type PlatformWebScrapeInput = z.output<typeof platformWebScrapeInputSchema>;
|
|
1342
1616
|
declare const ACTION_COMPLETION_SCHEMA: z.ZodUnion<readonly [z.ZodObject<{
|
|
1343
1617
|
reason: z.ZodLiteral<"closed-dependency">;
|
|
1344
1618
|
status: z.ZodLiteral<"skipped">;
|
|
@@ -2190,6 +2464,135 @@ export declare const runtimeContract: {
|
|
|
2190
2464
|
}, z.core.$strip>, z.ZodObject<{
|
|
2191
2465
|
key: z.ZodString;
|
|
2192
2466
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2467
|
+
startWebScrape: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2468
|
+
html: z.ZodOptional<z.ZodString>;
|
|
2469
|
+
url: z.ZodOptional<z.ZodURL>;
|
|
2470
|
+
userAgent: z.ZodOptional<z.ZodString>;
|
|
2471
|
+
actionTimeout: z.ZodOptional<z.ZodNumber>;
|
|
2472
|
+
addScriptTag: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2473
|
+
content: z.ZodOptional<z.ZodString>;
|
|
2474
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2475
|
+
type: z.ZodOptional<z.ZodString>;
|
|
2476
|
+
url: z.ZodOptional<z.ZodURL>;
|
|
2477
|
+
}, z.core.$strip>>>;
|
|
2478
|
+
addStyleTag: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2479
|
+
content: z.ZodOptional<z.ZodString>;
|
|
2480
|
+
url: z.ZodOptional<z.ZodURL>;
|
|
2481
|
+
}, z.core.$strip>>>;
|
|
2482
|
+
allowRequestPattern: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2483
|
+
allowResourceTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
2484
|
+
document: "document";
|
|
2485
|
+
font: "font";
|
|
2486
|
+
image: "image";
|
|
2487
|
+
manifest: "manifest";
|
|
2488
|
+
script: "script";
|
|
2489
|
+
stylesheet: "stylesheet";
|
|
2490
|
+
media: "media";
|
|
2491
|
+
texttrack: "texttrack";
|
|
2492
|
+
xhr: "xhr";
|
|
2493
|
+
fetch: "fetch";
|
|
2494
|
+
prefetch: "prefetch";
|
|
2495
|
+
eventsource: "eventsource";
|
|
2496
|
+
websocket: "websocket";
|
|
2497
|
+
signedexchange: "signedexchange";
|
|
2498
|
+
ping: "ping";
|
|
2499
|
+
cspviolationreport: "cspviolationreport";
|
|
2500
|
+
preflight: "preflight";
|
|
2501
|
+
other: "other";
|
|
2502
|
+
}>>>;
|
|
2503
|
+
authenticate: z.ZodOptional<z.ZodObject<{
|
|
2504
|
+
password: z.ZodString;
|
|
2505
|
+
username: z.ZodString;
|
|
2506
|
+
}, z.core.$strip>>;
|
|
2507
|
+
bestAttempt: z.ZodOptional<z.ZodBoolean>;
|
|
2508
|
+
cookies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2509
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
2510
|
+
expires: z.ZodOptional<z.ZodNumber>;
|
|
2511
|
+
httpOnly: z.ZodOptional<z.ZodBoolean>;
|
|
2512
|
+
name: z.ZodString;
|
|
2513
|
+
partitionKey: z.ZodOptional<z.ZodString>;
|
|
2514
|
+
path: z.ZodOptional<z.ZodString>;
|
|
2515
|
+
priority: z.ZodOptional<z.ZodEnum<{
|
|
2516
|
+
Low: "Low";
|
|
2517
|
+
Medium: "Medium";
|
|
2518
|
+
High: "High";
|
|
2519
|
+
}>>;
|
|
2520
|
+
sameParty: z.ZodOptional<z.ZodBoolean>;
|
|
2521
|
+
sameSite: z.ZodOptional<z.ZodEnum<{
|
|
2522
|
+
Strict: "Strict";
|
|
2523
|
+
Lax: "Lax";
|
|
2524
|
+
None: "None";
|
|
2525
|
+
}>>;
|
|
2526
|
+
secure: z.ZodOptional<z.ZodBoolean>;
|
|
2527
|
+
sourcePort: z.ZodOptional<z.ZodNumber>;
|
|
2528
|
+
sourceScheme: z.ZodOptional<z.ZodEnum<{
|
|
2529
|
+
Unset: "Unset";
|
|
2530
|
+
NonSecure: "NonSecure";
|
|
2531
|
+
Secure: "Secure";
|
|
2532
|
+
}>>;
|
|
2533
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2534
|
+
value: z.ZodString;
|
|
2535
|
+
}, z.core.$strip>>>;
|
|
2536
|
+
emulateMediaType: z.ZodOptional<z.ZodString>;
|
|
2537
|
+
gotoOptions: z.ZodOptional<z.ZodObject<{
|
|
2538
|
+
referer: z.ZodOptional<z.ZodString>;
|
|
2539
|
+
referrerPolicy: z.ZodOptional<z.ZodString>;
|
|
2540
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
2541
|
+
waitUntil: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2542
|
+
load: "load";
|
|
2543
|
+
domcontentloaded: "domcontentloaded";
|
|
2544
|
+
networkidle0: "networkidle0";
|
|
2545
|
+
networkidle2: "networkidle2";
|
|
2546
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
2547
|
+
load: "load";
|
|
2548
|
+
domcontentloaded: "domcontentloaded";
|
|
2549
|
+
networkidle0: "networkidle0";
|
|
2550
|
+
networkidle2: "networkidle2";
|
|
2551
|
+
}>>]>>;
|
|
2552
|
+
}, z.core.$strip>>;
|
|
2553
|
+
rejectRequestPattern: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2554
|
+
rejectResourceTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
2555
|
+
document: "document";
|
|
2556
|
+
font: "font";
|
|
2557
|
+
image: "image";
|
|
2558
|
+
manifest: "manifest";
|
|
2559
|
+
script: "script";
|
|
2560
|
+
stylesheet: "stylesheet";
|
|
2561
|
+
media: "media";
|
|
2562
|
+
texttrack: "texttrack";
|
|
2563
|
+
xhr: "xhr";
|
|
2564
|
+
fetch: "fetch";
|
|
2565
|
+
prefetch: "prefetch";
|
|
2566
|
+
eventsource: "eventsource";
|
|
2567
|
+
websocket: "websocket";
|
|
2568
|
+
signedexchange: "signedexchange";
|
|
2569
|
+
ping: "ping";
|
|
2570
|
+
cspviolationreport: "cspviolationreport";
|
|
2571
|
+
preflight: "preflight";
|
|
2572
|
+
other: "other";
|
|
2573
|
+
}>>>;
|
|
2574
|
+
setExtraHttpHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2575
|
+
setJavaScriptEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
2576
|
+
viewport: z.ZodOptional<z.ZodObject<{
|
|
2577
|
+
deviceScaleFactor: z.ZodOptional<z.ZodNumber>;
|
|
2578
|
+
hasTouch: z.ZodOptional<z.ZodBoolean>;
|
|
2579
|
+
height: z.ZodNumber;
|
|
2580
|
+
isLandscape: z.ZodOptional<z.ZodBoolean>;
|
|
2581
|
+
isMobile: z.ZodOptional<z.ZodBoolean>;
|
|
2582
|
+
width: z.ZodNumber;
|
|
2583
|
+
}, z.core.$strip>>;
|
|
2584
|
+
waitForSelector: z.ZodOptional<z.ZodObject<{
|
|
2585
|
+
hidden: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2586
|
+
selector: z.ZodString;
|
|
2587
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
2588
|
+
visible: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2589
|
+
}, z.core.$strip>>;
|
|
2590
|
+
waitForTimeout: z.ZodOptional<z.ZodNumber>;
|
|
2591
|
+
cacheTtl: z.ZodOptional<z.ZodNever>;
|
|
2592
|
+
entrypoint: z.ZodString;
|
|
2593
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2594
|
+
key: z.ZodString;
|
|
2595
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2193
2596
|
createCallbackToken: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2194
2597
|
endpointKey: z.ZodString;
|
|
2195
2598
|
}, z.core.$strip>, z.ZodString, Record<never, never>, Record<never, never>>;
|
package/dist/runtime.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { encodableSchema, isSensitivityMask, } from "@automate.ax/codec";
|
|
2
2
|
import { codecEnvelopeSchema } from "@automate.ax/codec/rpc";
|
|
3
|
+
import { CLOUDFLARE_BROWSER_MARKDOWN_REQUEST_SCHEMA } from "@automate.ax/integration-contracts/cloudflare";
|
|
3
4
|
import { oc } from "@orpc/contract";
|
|
4
5
|
import stableStringify from "fast-json-stable-stringify";
|
|
5
6
|
import * as z from "zod";
|
|
@@ -12,6 +13,7 @@ export const AUTOMATION_INVOCATION_DEFAULT_ENTRYPOINT = "default";
|
|
|
12
13
|
export const AUTOMATION_INVOCATION_RESERVED_ENTRYPOINT_PREFIX = "__$";
|
|
13
14
|
export const AUTOMATION_DELAY_ENTRYPOINT_PREFIX = `${AUTOMATION_INVOCATION_RESERVED_ENTRYPOINT_PREFIX}delay:`;
|
|
14
15
|
export const AUTOMATION_IMAGE_GENERATION_ENTRYPOINT_PREFIX = `${AUTOMATION_INVOCATION_RESERVED_ENTRYPOINT_PREFIX}generate-image:`;
|
|
16
|
+
export const AUTOMATION_WEB_SCRAPE_ENTRYPOINT_PREFIX = `${AUTOMATION_INVOCATION_RESERVED_ENTRYPOINT_PREFIX}scrape-web:`;
|
|
15
17
|
export const CALLBACK_PROTECTION_QUERY_PARAMETER = "_axCallback";
|
|
16
18
|
export const AUTOMATION_LOG_MAX_ENTRIES = 1_000;
|
|
17
19
|
export const AUTOMATION_OBSERVABILITY_MAX_FIELDS = 64;
|
|
@@ -867,6 +869,24 @@ export const platformImageGenerationInputSchema = imageGenerationInputSchema.ext
|
|
|
867
869
|
export const platformImageGenerationStartSchema = z.object({
|
|
868
870
|
key: z.string().min(1),
|
|
869
871
|
});
|
|
872
|
+
/** Browser controls accepted by the built-in web-scraping action. */
|
|
873
|
+
export const webScrapeInputSchema = CLOUDFLARE_BROWSER_MARKDOWN_REQUEST_SCHEMA.safeExtend({
|
|
874
|
+
cacheTtl: z.never().optional(),
|
|
875
|
+
});
|
|
876
|
+
/** Internal terminal delivery emitted by a platform web-scraping job. */
|
|
877
|
+
export const webScrapeCompletionSchema = z.object({
|
|
878
|
+
key: z.string().min(1),
|
|
879
|
+
outcome: z.discriminatedUnion("status", [
|
|
880
|
+
z.object({ result: z.string(), status: z.literal("succeeded") }),
|
|
881
|
+
z.object({ failure: automationErrorSchema, status: z.literal("failed") }),
|
|
882
|
+
]),
|
|
883
|
+
});
|
|
884
|
+
/** Starts a platform web scrape for one reserved internal entrypoint. */
|
|
885
|
+
export const platformWebScrapeInputSchema = webScrapeInputSchema.safeExtend({
|
|
886
|
+
entrypoint: z.string().startsWith(AUTOMATION_WEB_SCRAPE_ENTRYPOINT_PREFIX),
|
|
887
|
+
});
|
|
888
|
+
/** Durable identity returned after a platform web scrape is queued. */
|
|
889
|
+
export const platformWebScrapeStartSchema = z.object({ key: z.string().min(1) });
|
|
870
890
|
const PLATFORM_IMAGE_GENERATION_TRANSPORT_INPUT_SCHEMA = platformImageGenerationInputSchema.omit({ prompt: true }).extend({
|
|
871
891
|
prompt: codecEnvelopeSchema,
|
|
872
892
|
});
|
|
@@ -1001,6 +1021,9 @@ export const runtimeContract = {
|
|
|
1001
1021
|
startImageGeneration: oc
|
|
1002
1022
|
.input(PLATFORM_IMAGE_GENERATION_TRANSPORT_INPUT_SCHEMA)
|
|
1003
1023
|
.output(platformImageGenerationStartSchema),
|
|
1024
|
+
startWebScrape: oc
|
|
1025
|
+
.input(platformWebScrapeInputSchema)
|
|
1026
|
+
.output(platformWebScrapeStartSchema),
|
|
1004
1027
|
createCallbackToken: oc
|
|
1005
1028
|
.input(z.object({ endpointKey: z.string().min(1) }))
|
|
1006
1029
|
.output(z.string()),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automate.ax/api-contract",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.156.1",
|
|
4
4
|
"description": "Public oRPC contract for the Automate.ax API.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@ai-sdk/gateway": "4.0.46",
|
|
34
|
-
"@automate.ax/catalog": "0.
|
|
35
|
-
"@automate.ax/codec": "0.
|
|
36
|
-
"@automate.ax/integration-contracts": "0.
|
|
34
|
+
"@automate.ax/catalog": "0.156.1",
|
|
35
|
+
"@automate.ax/codec": "0.156.1",
|
|
36
|
+
"@automate.ax/integration-contracts": "0.156.1",
|
|
37
37
|
"@orpc/contract": "1.15.0",
|
|
38
38
|
"fast-json-stable-stringify": "^2.1.0",
|
|
39
39
|
"zod": "^4.3.6"
|
package/src/account.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -177,7 +177,6 @@ export const firstPartyContract = {
|
|
|
177
177
|
canInvite: orgContract.canInvite,
|
|
178
178
|
createBillingPortal: orgContract.createBillingPortal,
|
|
179
179
|
createCheckout: orgContract.createCheckout,
|
|
180
|
-
createEmbeddedCheckout: orgContract.createEmbeddedCheckout,
|
|
181
180
|
},
|
|
182
181
|
project: {
|
|
183
182
|
...publicContract.project,
|
package/src/org.ts
CHANGED
|
@@ -46,11 +46,13 @@ export const organizationSummaryOutputSchema = z.object({
|
|
|
46
46
|
executionRetentionDays: z.number().int().positive(),
|
|
47
47
|
projects: z.number(),
|
|
48
48
|
seats: z.number(),
|
|
49
|
+
webScrapingMinutes: z.number(),
|
|
49
50
|
}),
|
|
50
51
|
usage: z.object({
|
|
51
52
|
aiSpendUsd: z.number(),
|
|
52
53
|
automationRuntimeMs: z.number(),
|
|
53
54
|
emailSends: z.number(),
|
|
55
|
+
webScrapingMs: z.number(),
|
|
54
56
|
}),
|
|
55
57
|
})
|
|
56
58
|
|
|
@@ -101,21 +103,13 @@ export const orgContract = {
|
|
|
101
103
|
.input(z.object({ organizationId: z.string() }))
|
|
102
104
|
.output(z.object({ url: z.url() })),
|
|
103
105
|
createCheckout: oc
|
|
104
|
-
.input(z.object({ organizationId: z.string() }))
|
|
105
|
-
.output(z.object({ url: z.url() })),
|
|
106
|
-
createEmbeddedCheckout: oc
|
|
107
106
|
.input(
|
|
108
107
|
z.object({
|
|
109
108
|
billingPeriod: proBillingPeriodSchema.default("monthly"),
|
|
110
109
|
organizationId: z.string(),
|
|
111
110
|
}),
|
|
112
111
|
)
|
|
113
|
-
.output(
|
|
114
|
-
z.object({
|
|
115
|
-
clientSecret: z.string().min(1),
|
|
116
|
-
publishableKey: z.string().min(1),
|
|
117
|
-
}),
|
|
118
|
-
),
|
|
112
|
+
.output(z.object({ url: z.url() })),
|
|
119
113
|
create: oc
|
|
120
114
|
.route({
|
|
121
115
|
method: "POST",
|
package/src/runtime.ts
CHANGED
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
type SensitivityMask,
|
|
5
5
|
} from "@automate.ax/codec"
|
|
6
6
|
import { codecEnvelopeSchema } from "@automate.ax/codec/rpc"
|
|
7
|
+
import { CLOUDFLARE_BROWSER_MARKDOWN_REQUEST_SCHEMA } from "@automate.ax/integration-contracts/cloudflare"
|
|
7
8
|
import type { GatewayImageModelId, GatewayModelId } from "@ai-sdk/gateway"
|
|
8
9
|
import { oc } from "@orpc/contract"
|
|
9
10
|
import stableStringify from "fast-json-stable-stringify"
|
|
@@ -25,6 +26,8 @@ export const AUTOMATION_DELAY_ENTRYPOINT_PREFIX =
|
|
|
25
26
|
`${AUTOMATION_INVOCATION_RESERVED_ENTRYPOINT_PREFIX}delay:` as const
|
|
26
27
|
export const AUTOMATION_IMAGE_GENERATION_ENTRYPOINT_PREFIX =
|
|
27
28
|
`${AUTOMATION_INVOCATION_RESERVED_ENTRYPOINT_PREFIX}generate-image:` as const
|
|
29
|
+
export const AUTOMATION_WEB_SCRAPE_ENTRYPOINT_PREFIX =
|
|
30
|
+
`${AUTOMATION_INVOCATION_RESERVED_ENTRYPOINT_PREFIX}scrape-web:` as const
|
|
28
31
|
export const CALLBACK_PROTECTION_QUERY_PARAMETER = "_axCallback"
|
|
29
32
|
export const AUTOMATION_LOG_MAX_ENTRIES = 1_000
|
|
30
33
|
export const AUTOMATION_OBSERVABILITY_MAX_FIELDS = 64
|
|
@@ -1045,6 +1048,35 @@ export type PlatformImageGenerationInput = z.output<
|
|
|
1045
1048
|
typeof platformImageGenerationInputSchema
|
|
1046
1049
|
>
|
|
1047
1050
|
|
|
1051
|
+
/** Browser controls accepted by the built-in web-scraping action. */
|
|
1052
|
+
export const webScrapeInputSchema =
|
|
1053
|
+
CLOUDFLARE_BROWSER_MARKDOWN_REQUEST_SCHEMA.safeExtend({
|
|
1054
|
+
cacheTtl: z.never().optional(),
|
|
1055
|
+
})
|
|
1056
|
+
|
|
1057
|
+
/** Internal terminal delivery emitted by a platform web-scraping job. */
|
|
1058
|
+
export const webScrapeCompletionSchema = z.object({
|
|
1059
|
+
key: z.string().min(1),
|
|
1060
|
+
outcome: z.discriminatedUnion("status", [
|
|
1061
|
+
z.object({ result: z.string(), status: z.literal("succeeded") }),
|
|
1062
|
+
z.object({ failure: automationErrorSchema, status: z.literal("failed") }),
|
|
1063
|
+
]),
|
|
1064
|
+
})
|
|
1065
|
+
|
|
1066
|
+
/** Starts a platform web scrape for one reserved internal entrypoint. */
|
|
1067
|
+
export const platformWebScrapeInputSchema = webScrapeInputSchema.safeExtend({
|
|
1068
|
+
entrypoint: z.string().startsWith(AUTOMATION_WEB_SCRAPE_ENTRYPOINT_PREFIX),
|
|
1069
|
+
})
|
|
1070
|
+
|
|
1071
|
+
/** Durable identity returned after a platform web scrape is queued. */
|
|
1072
|
+
export const platformWebScrapeStartSchema = z.object({ key: z.string().min(1) })
|
|
1073
|
+
|
|
1074
|
+
export type WebScrapeInput = z.output<typeof webScrapeInputSchema>
|
|
1075
|
+
export type WebScrapeCompletion = z.output<typeof webScrapeCompletionSchema>
|
|
1076
|
+
export type PlatformWebScrapeInput = z.output<
|
|
1077
|
+
typeof platformWebScrapeInputSchema
|
|
1078
|
+
>
|
|
1079
|
+
|
|
1048
1080
|
const PLATFORM_IMAGE_GENERATION_TRANSPORT_INPUT_SCHEMA =
|
|
1049
1081
|
platformImageGenerationInputSchema.omit({ prompt: true }).extend({
|
|
1050
1082
|
prompt: codecEnvelopeSchema,
|
|
@@ -1222,6 +1254,9 @@ export const runtimeContract = {
|
|
|
1222
1254
|
startImageGeneration: oc
|
|
1223
1255
|
.input(PLATFORM_IMAGE_GENERATION_TRANSPORT_INPUT_SCHEMA)
|
|
1224
1256
|
.output(platformImageGenerationStartSchema),
|
|
1257
|
+
startWebScrape: oc
|
|
1258
|
+
.input(platformWebScrapeInputSchema)
|
|
1259
|
+
.output(platformWebScrapeStartSchema),
|
|
1225
1260
|
createCallbackToken: oc
|
|
1226
1261
|
.input(z.object({ endpointKey: z.string().min(1) }))
|
|
1227
1262
|
.output(z.string()),
|