@automate.ax/api-contract 0.124.0 → 0.126.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/events/apify.d.ts +6 -0
- package/dist/events/apify.js +16 -0
- package/dist/events/index.d.ts +35 -32
- package/dist/events/index.js +2 -0
- package/dist/events/notion.d.ts +32 -32
- package/dist/index.d.ts +35 -32
- package/package.json +3 -3
- package/src/events/apify.ts +18 -0
- package/src/events/index.ts +2 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
export declare const apifyEventsContract: {
|
|
3
|
+
apifyEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
4
|
+
sourceId: z.ZodString;
|
|
5
|
+
}, z.core.$loose>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
6
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { oc } from "@orpc/contract";
|
|
2
|
+
import * as z from "zod";
|
|
3
|
+
export const apifyEventsContract = {
|
|
4
|
+
apifyEvent: oc
|
|
5
|
+
.route({
|
|
6
|
+
method: "POST",
|
|
7
|
+
path: "/events/apify/{sourceId}",
|
|
8
|
+
operationId: "receiveApifyEvent",
|
|
9
|
+
summary: "Receive an Apify event",
|
|
10
|
+
description: "Receives and authenticates callbacks delivered by Apify webhooks.",
|
|
11
|
+
tags: ["Events"],
|
|
12
|
+
successStatus: 200,
|
|
13
|
+
})
|
|
14
|
+
.input(z.looseObject({ sourceId: z.string() }))
|
|
15
|
+
.output(z.void()),
|
|
16
|
+
};
|
package/dist/events/index.d.ts
CHANGED
|
@@ -1451,8 +1451,8 @@ export declare const eventsContract: {
|
|
|
1451
1451
|
}>;
|
|
1452
1452
|
}, import("zod/v4/core").$strip>;
|
|
1453
1453
|
updated_fields: import("zod").ZodArray<import("zod").ZodEnum<{
|
|
1454
|
-
name: "name";
|
|
1455
1454
|
filter: "filter";
|
|
1455
|
+
name: "name";
|
|
1456
1456
|
sorts: "sorts";
|
|
1457
1457
|
configuration: "configuration";
|
|
1458
1458
|
}>>;
|
|
@@ -1493,8 +1493,8 @@ export declare const eventsContract: {
|
|
|
1493
1493
|
workspace_name: import("zod").ZodString;
|
|
1494
1494
|
}, import("zod/v4/core").$catchall<import("zod").ZodJSONSchema>>], "type">, import("zod").ZodTransform<{
|
|
1495
1495
|
type: "comment.created";
|
|
1496
|
-
timestamp: string;
|
|
1497
1496
|
id: string;
|
|
1497
|
+
timestamp: string;
|
|
1498
1498
|
data: {
|
|
1499
1499
|
parent: {
|
|
1500
1500
|
id: string;
|
|
@@ -1525,8 +1525,8 @@ export declare const eventsContract: {
|
|
|
1525
1525
|
}[];
|
|
1526
1526
|
} | {
|
|
1527
1527
|
type: "comment.deleted";
|
|
1528
|
-
timestamp: string;
|
|
1529
1528
|
id: string;
|
|
1529
|
+
timestamp: string;
|
|
1530
1530
|
data: {
|
|
1531
1531
|
parent: {
|
|
1532
1532
|
id: string;
|
|
@@ -1557,8 +1557,8 @@ export declare const eventsContract: {
|
|
|
1557
1557
|
}[];
|
|
1558
1558
|
} | {
|
|
1559
1559
|
type: "comment.updated";
|
|
1560
|
-
timestamp: string;
|
|
1561
1560
|
id: string;
|
|
1561
|
+
timestamp: string;
|
|
1562
1562
|
data: {
|
|
1563
1563
|
parent: {
|
|
1564
1564
|
id: string;
|
|
@@ -1589,8 +1589,8 @@ export declare const eventsContract: {
|
|
|
1589
1589
|
}[];
|
|
1590
1590
|
} | {
|
|
1591
1591
|
type: "data_source.content_updated";
|
|
1592
|
-
timestamp: string;
|
|
1593
1592
|
id: string;
|
|
1593
|
+
timestamp: string;
|
|
1594
1594
|
data: {
|
|
1595
1595
|
parent: {
|
|
1596
1596
|
id: string;
|
|
@@ -1625,8 +1625,8 @@ export declare const eventsContract: {
|
|
|
1625
1625
|
}[];
|
|
1626
1626
|
} | {
|
|
1627
1627
|
type: "data_source.created";
|
|
1628
|
-
timestamp: string;
|
|
1629
1628
|
id: string;
|
|
1629
|
+
timestamp: string;
|
|
1630
1630
|
data: {
|
|
1631
1631
|
parent: {
|
|
1632
1632
|
id: string;
|
|
@@ -1657,8 +1657,8 @@ export declare const eventsContract: {
|
|
|
1657
1657
|
}[];
|
|
1658
1658
|
} | {
|
|
1659
1659
|
type: "data_source.deleted";
|
|
1660
|
-
timestamp: string;
|
|
1661
1660
|
id: string;
|
|
1661
|
+
timestamp: string;
|
|
1662
1662
|
data: {
|
|
1663
1663
|
parent: {
|
|
1664
1664
|
id: string;
|
|
@@ -1689,8 +1689,8 @@ export declare const eventsContract: {
|
|
|
1689
1689
|
}[];
|
|
1690
1690
|
} | {
|
|
1691
1691
|
type: "data_source.moved";
|
|
1692
|
-
timestamp: string;
|
|
1693
1692
|
id: string;
|
|
1693
|
+
timestamp: string;
|
|
1694
1694
|
data: {
|
|
1695
1695
|
parent: {
|
|
1696
1696
|
id: string;
|
|
@@ -1721,8 +1721,8 @@ export declare const eventsContract: {
|
|
|
1721
1721
|
}[];
|
|
1722
1722
|
} | {
|
|
1723
1723
|
type: "data_source.schema_updated";
|
|
1724
|
-
timestamp: string;
|
|
1725
1724
|
id: string;
|
|
1725
|
+
timestamp: string;
|
|
1726
1726
|
data: {
|
|
1727
1727
|
parent: {
|
|
1728
1728
|
id: string;
|
|
@@ -1758,8 +1758,8 @@ export declare const eventsContract: {
|
|
|
1758
1758
|
}[];
|
|
1759
1759
|
} | {
|
|
1760
1760
|
type: "data_source.undeleted";
|
|
1761
|
-
timestamp: string;
|
|
1762
1761
|
id: string;
|
|
1762
|
+
timestamp: string;
|
|
1763
1763
|
data: {
|
|
1764
1764
|
parent: {
|
|
1765
1765
|
id: string;
|
|
@@ -1790,8 +1790,8 @@ export declare const eventsContract: {
|
|
|
1790
1790
|
}[];
|
|
1791
1791
|
} | {
|
|
1792
1792
|
type: "database.created";
|
|
1793
|
-
timestamp: string;
|
|
1794
1793
|
id: string;
|
|
1794
|
+
timestamp: string;
|
|
1795
1795
|
data: {
|
|
1796
1796
|
parent: {
|
|
1797
1797
|
id: string;
|
|
@@ -1822,8 +1822,8 @@ export declare const eventsContract: {
|
|
|
1822
1822
|
}[];
|
|
1823
1823
|
} | {
|
|
1824
1824
|
type: "database.deleted";
|
|
1825
|
-
timestamp: string;
|
|
1826
1825
|
id: string;
|
|
1826
|
+
timestamp: string;
|
|
1827
1827
|
data: {
|
|
1828
1828
|
parent: {
|
|
1829
1829
|
id: string;
|
|
@@ -1854,8 +1854,8 @@ export declare const eventsContract: {
|
|
|
1854
1854
|
}[];
|
|
1855
1855
|
} | {
|
|
1856
1856
|
type: "database.moved";
|
|
1857
|
-
timestamp: string;
|
|
1858
1857
|
id: string;
|
|
1858
|
+
timestamp: string;
|
|
1859
1859
|
data: {
|
|
1860
1860
|
parent: {
|
|
1861
1861
|
id: string;
|
|
@@ -1886,8 +1886,8 @@ export declare const eventsContract: {
|
|
|
1886
1886
|
}[];
|
|
1887
1887
|
} | {
|
|
1888
1888
|
type: "database.undeleted";
|
|
1889
|
-
timestamp: string;
|
|
1890
1889
|
id: string;
|
|
1890
|
+
timestamp: string;
|
|
1891
1891
|
data: {
|
|
1892
1892
|
parent: {
|
|
1893
1893
|
id: string;
|
|
@@ -1918,8 +1918,8 @@ export declare const eventsContract: {
|
|
|
1918
1918
|
}[];
|
|
1919
1919
|
} | {
|
|
1920
1920
|
type: "file_upload.completed";
|
|
1921
|
-
timestamp: string;
|
|
1922
1921
|
id: string;
|
|
1922
|
+
timestamp: string;
|
|
1923
1923
|
workspaceId: string;
|
|
1924
1924
|
workspaceName: string;
|
|
1925
1925
|
subscriptionId: string;
|
|
@@ -1943,8 +1943,8 @@ export declare const eventsContract: {
|
|
|
1943
1943
|
}[];
|
|
1944
1944
|
} | {
|
|
1945
1945
|
type: "file_upload.created";
|
|
1946
|
-
timestamp: string;
|
|
1947
1946
|
id: string;
|
|
1947
|
+
timestamp: string;
|
|
1948
1948
|
workspaceId: string;
|
|
1949
1949
|
workspaceName: string;
|
|
1950
1950
|
subscriptionId: string;
|
|
@@ -1968,8 +1968,8 @@ export declare const eventsContract: {
|
|
|
1968
1968
|
}[];
|
|
1969
1969
|
} | {
|
|
1970
1970
|
type: "file_upload.expired";
|
|
1971
|
-
timestamp: string;
|
|
1972
1971
|
id: string;
|
|
1972
|
+
timestamp: string;
|
|
1973
1973
|
workspaceId: string;
|
|
1974
1974
|
workspaceName: string;
|
|
1975
1975
|
subscriptionId: string;
|
|
@@ -1993,8 +1993,8 @@ export declare const eventsContract: {
|
|
|
1993
1993
|
}[];
|
|
1994
1994
|
} | {
|
|
1995
1995
|
type: "file_upload.upload_failed";
|
|
1996
|
-
timestamp: string;
|
|
1997
1996
|
id: string;
|
|
1997
|
+
timestamp: string;
|
|
1998
1998
|
data: {
|
|
1999
1999
|
fileImportResult: {
|
|
2000
2000
|
type: "success";
|
|
@@ -2037,8 +2037,8 @@ export declare const eventsContract: {
|
|
|
2037
2037
|
}[];
|
|
2038
2038
|
} | {
|
|
2039
2039
|
type: "page.content_updated";
|
|
2040
|
-
timestamp: string;
|
|
2041
2040
|
id: string;
|
|
2041
|
+
timestamp: string;
|
|
2042
2042
|
data: {
|
|
2043
2043
|
parent: {
|
|
2044
2044
|
id: string;
|
|
@@ -2073,8 +2073,8 @@ export declare const eventsContract: {
|
|
|
2073
2073
|
}[];
|
|
2074
2074
|
} | {
|
|
2075
2075
|
type: "page.created";
|
|
2076
|
-
timestamp: string;
|
|
2077
2076
|
id: string;
|
|
2077
|
+
timestamp: string;
|
|
2078
2078
|
data: {
|
|
2079
2079
|
parent: {
|
|
2080
2080
|
id: string;
|
|
@@ -2105,8 +2105,8 @@ export declare const eventsContract: {
|
|
|
2105
2105
|
}[];
|
|
2106
2106
|
} | {
|
|
2107
2107
|
type: "page.deleted";
|
|
2108
|
-
timestamp: string;
|
|
2109
2108
|
id: string;
|
|
2109
|
+
timestamp: string;
|
|
2110
2110
|
data: {
|
|
2111
2111
|
parent: {
|
|
2112
2112
|
id: string;
|
|
@@ -2137,8 +2137,8 @@ export declare const eventsContract: {
|
|
|
2137
2137
|
}[];
|
|
2138
2138
|
} | {
|
|
2139
2139
|
type: "page.locked";
|
|
2140
|
-
timestamp: string;
|
|
2141
2140
|
id: string;
|
|
2141
|
+
timestamp: string;
|
|
2142
2142
|
data: {
|
|
2143
2143
|
parent: {
|
|
2144
2144
|
id: string;
|
|
@@ -2169,8 +2169,8 @@ export declare const eventsContract: {
|
|
|
2169
2169
|
}[];
|
|
2170
2170
|
} | {
|
|
2171
2171
|
type: "page.moved";
|
|
2172
|
-
timestamp: string;
|
|
2173
2172
|
id: string;
|
|
2173
|
+
timestamp: string;
|
|
2174
2174
|
data: {
|
|
2175
2175
|
parent: {
|
|
2176
2176
|
id: string;
|
|
@@ -2201,8 +2201,8 @@ export declare const eventsContract: {
|
|
|
2201
2201
|
}[];
|
|
2202
2202
|
} | {
|
|
2203
2203
|
type: "page.properties_updated";
|
|
2204
|
-
timestamp: string;
|
|
2205
2204
|
id: string;
|
|
2205
|
+
timestamp: string;
|
|
2206
2206
|
data: {
|
|
2207
2207
|
parent: {
|
|
2208
2208
|
id: string;
|
|
@@ -2234,8 +2234,8 @@ export declare const eventsContract: {
|
|
|
2234
2234
|
}[];
|
|
2235
2235
|
} | {
|
|
2236
2236
|
type: "page.transcription_block.transcript_deleted";
|
|
2237
|
-
timestamp: string;
|
|
2238
2237
|
id: string;
|
|
2238
|
+
timestamp: string;
|
|
2239
2239
|
data: {
|
|
2240
2240
|
target: {
|
|
2241
2241
|
id: string;
|
|
@@ -2266,8 +2266,8 @@ export declare const eventsContract: {
|
|
|
2266
2266
|
}[];
|
|
2267
2267
|
} | {
|
|
2268
2268
|
type: "page.undeleted";
|
|
2269
|
-
timestamp: string;
|
|
2270
2269
|
id: string;
|
|
2270
|
+
timestamp: string;
|
|
2271
2271
|
data: {
|
|
2272
2272
|
parent: {
|
|
2273
2273
|
id: string;
|
|
@@ -2298,8 +2298,8 @@ export declare const eventsContract: {
|
|
|
2298
2298
|
}[];
|
|
2299
2299
|
} | {
|
|
2300
2300
|
type: "page.unlocked";
|
|
2301
|
-
timestamp: string;
|
|
2302
2301
|
id: string;
|
|
2302
|
+
timestamp: string;
|
|
2303
2303
|
data: {
|
|
2304
2304
|
parent: {
|
|
2305
2305
|
id: string;
|
|
@@ -2330,8 +2330,8 @@ export declare const eventsContract: {
|
|
|
2330
2330
|
}[];
|
|
2331
2331
|
} | {
|
|
2332
2332
|
type: "view.created";
|
|
2333
|
-
timestamp: string;
|
|
2334
2333
|
id: string;
|
|
2334
|
+
timestamp: string;
|
|
2335
2335
|
data: {
|
|
2336
2336
|
parent: {
|
|
2337
2337
|
id: string;
|
|
@@ -2363,8 +2363,8 @@ export declare const eventsContract: {
|
|
|
2363
2363
|
}[];
|
|
2364
2364
|
} | {
|
|
2365
2365
|
type: "view.deleted";
|
|
2366
|
-
timestamp: string;
|
|
2367
2366
|
id: string;
|
|
2367
|
+
timestamp: string;
|
|
2368
2368
|
data: {
|
|
2369
2369
|
parent: {
|
|
2370
2370
|
id: string;
|
|
@@ -2395,15 +2395,15 @@ export declare const eventsContract: {
|
|
|
2395
2395
|
}[];
|
|
2396
2396
|
} | {
|
|
2397
2397
|
type: "view.updated";
|
|
2398
|
-
timestamp: string;
|
|
2399
2398
|
id: string;
|
|
2399
|
+
timestamp: string;
|
|
2400
2400
|
data: {
|
|
2401
2401
|
parent: {
|
|
2402
2402
|
id: string;
|
|
2403
2403
|
type: "team" | "page" | "space" | "agent" | "block" | "database";
|
|
2404
2404
|
dataSourceId?: string | undefined;
|
|
2405
2405
|
};
|
|
2406
|
-
updatedFields: ("
|
|
2406
|
+
updatedFields: ("filter" | "name" | "sorts" | "configuration")[];
|
|
2407
2407
|
};
|
|
2408
2408
|
workspaceId: string;
|
|
2409
2409
|
workspaceName: string;
|
|
@@ -3530,7 +3530,7 @@ export declare const eventsContract: {
|
|
|
3530
3530
|
type: "team" | "page" | "space" | "agent" | "block" | "database";
|
|
3531
3531
|
data_source_id?: string | undefined;
|
|
3532
3532
|
};
|
|
3533
|
-
updated_fields: ("
|
|
3533
|
+
updated_fields: ("filter" | "name" | "sorts" | "configuration")[];
|
|
3534
3534
|
};
|
|
3535
3535
|
entity: {
|
|
3536
3536
|
id: string;
|
|
@@ -3682,6 +3682,9 @@ export declare const eventsContract: {
|
|
|
3682
3682
|
events: import("zod").ZodPrefault<import("zod").ZodArray<import("zod").ZodJSONSchema>>;
|
|
3683
3683
|
sourceId: import("zod").ZodString;
|
|
3684
3684
|
}, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
3685
|
+
apifyEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
3686
|
+
sourceId: import("zod").ZodString;
|
|
3687
|
+
}, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
3685
3688
|
airtableEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
3686
3689
|
base: import("zod").ZodObject<{
|
|
3687
3690
|
id: import("zod").ZodString;
|
package/dist/events/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { airtableEventsContract } from "./airtable.js";
|
|
2
|
+
import { apifyEventsContract } from "./apify.js";
|
|
2
3
|
import { asanaEventsContract } from "./asana.js";
|
|
3
4
|
import { brevoEventsContract } from "./brevo.js";
|
|
4
5
|
import { convexEventsContract } from "./convex.js";
|
|
@@ -24,6 +25,7 @@ import { webflowEventsContract } from "./webflow.js";
|
|
|
24
25
|
import { whatsappEventsContract } from "./whatsapp.js";
|
|
25
26
|
export const eventsContract = {
|
|
26
27
|
...airtableEventsContract,
|
|
28
|
+
...apifyEventsContract,
|
|
27
29
|
...asanaEventsContract,
|
|
28
30
|
...brevoEventsContract,
|
|
29
31
|
...convexEventsContract,
|
package/dist/events/notion.d.ts
CHANGED
|
@@ -1410,8 +1410,8 @@ export declare const notionEventsContract: {
|
|
|
1410
1410
|
}>;
|
|
1411
1411
|
}, z.core.$strip>;
|
|
1412
1412
|
updated_fields: z.ZodArray<z.ZodEnum<{
|
|
1413
|
-
name: "name";
|
|
1414
1413
|
filter: "filter";
|
|
1414
|
+
name: "name";
|
|
1415
1415
|
sorts: "sorts";
|
|
1416
1416
|
configuration: "configuration";
|
|
1417
1417
|
}>>;
|
|
@@ -1452,8 +1452,8 @@ export declare const notionEventsContract: {
|
|
|
1452
1452
|
workspace_name: z.ZodString;
|
|
1453
1453
|
}, z.core.$catchall<z.ZodJSONSchema>>], "type">, z.ZodTransform<{
|
|
1454
1454
|
type: "comment.created";
|
|
1455
|
-
timestamp: string;
|
|
1456
1455
|
id: string;
|
|
1456
|
+
timestamp: string;
|
|
1457
1457
|
data: {
|
|
1458
1458
|
parent: {
|
|
1459
1459
|
id: string;
|
|
@@ -1484,8 +1484,8 @@ export declare const notionEventsContract: {
|
|
|
1484
1484
|
}[];
|
|
1485
1485
|
} | {
|
|
1486
1486
|
type: "comment.deleted";
|
|
1487
|
-
timestamp: string;
|
|
1488
1487
|
id: string;
|
|
1488
|
+
timestamp: string;
|
|
1489
1489
|
data: {
|
|
1490
1490
|
parent: {
|
|
1491
1491
|
id: string;
|
|
@@ -1516,8 +1516,8 @@ export declare const notionEventsContract: {
|
|
|
1516
1516
|
}[];
|
|
1517
1517
|
} | {
|
|
1518
1518
|
type: "comment.updated";
|
|
1519
|
-
timestamp: string;
|
|
1520
1519
|
id: string;
|
|
1520
|
+
timestamp: string;
|
|
1521
1521
|
data: {
|
|
1522
1522
|
parent: {
|
|
1523
1523
|
id: string;
|
|
@@ -1548,8 +1548,8 @@ export declare const notionEventsContract: {
|
|
|
1548
1548
|
}[];
|
|
1549
1549
|
} | {
|
|
1550
1550
|
type: "data_source.content_updated";
|
|
1551
|
-
timestamp: string;
|
|
1552
1551
|
id: string;
|
|
1552
|
+
timestamp: string;
|
|
1553
1553
|
data: {
|
|
1554
1554
|
parent: {
|
|
1555
1555
|
id: string;
|
|
@@ -1584,8 +1584,8 @@ export declare const notionEventsContract: {
|
|
|
1584
1584
|
}[];
|
|
1585
1585
|
} | {
|
|
1586
1586
|
type: "data_source.created";
|
|
1587
|
-
timestamp: string;
|
|
1588
1587
|
id: string;
|
|
1588
|
+
timestamp: string;
|
|
1589
1589
|
data: {
|
|
1590
1590
|
parent: {
|
|
1591
1591
|
id: string;
|
|
@@ -1616,8 +1616,8 @@ export declare const notionEventsContract: {
|
|
|
1616
1616
|
}[];
|
|
1617
1617
|
} | {
|
|
1618
1618
|
type: "data_source.deleted";
|
|
1619
|
-
timestamp: string;
|
|
1620
1619
|
id: string;
|
|
1620
|
+
timestamp: string;
|
|
1621
1621
|
data: {
|
|
1622
1622
|
parent: {
|
|
1623
1623
|
id: string;
|
|
@@ -1648,8 +1648,8 @@ export declare const notionEventsContract: {
|
|
|
1648
1648
|
}[];
|
|
1649
1649
|
} | {
|
|
1650
1650
|
type: "data_source.moved";
|
|
1651
|
-
timestamp: string;
|
|
1652
1651
|
id: string;
|
|
1652
|
+
timestamp: string;
|
|
1653
1653
|
data: {
|
|
1654
1654
|
parent: {
|
|
1655
1655
|
id: string;
|
|
@@ -1680,8 +1680,8 @@ export declare const notionEventsContract: {
|
|
|
1680
1680
|
}[];
|
|
1681
1681
|
} | {
|
|
1682
1682
|
type: "data_source.schema_updated";
|
|
1683
|
-
timestamp: string;
|
|
1684
1683
|
id: string;
|
|
1684
|
+
timestamp: string;
|
|
1685
1685
|
data: {
|
|
1686
1686
|
parent: {
|
|
1687
1687
|
id: string;
|
|
@@ -1717,8 +1717,8 @@ export declare const notionEventsContract: {
|
|
|
1717
1717
|
}[];
|
|
1718
1718
|
} | {
|
|
1719
1719
|
type: "data_source.undeleted";
|
|
1720
|
-
timestamp: string;
|
|
1721
1720
|
id: string;
|
|
1721
|
+
timestamp: string;
|
|
1722
1722
|
data: {
|
|
1723
1723
|
parent: {
|
|
1724
1724
|
id: string;
|
|
@@ -1749,8 +1749,8 @@ export declare const notionEventsContract: {
|
|
|
1749
1749
|
}[];
|
|
1750
1750
|
} | {
|
|
1751
1751
|
type: "database.created";
|
|
1752
|
-
timestamp: string;
|
|
1753
1752
|
id: string;
|
|
1753
|
+
timestamp: string;
|
|
1754
1754
|
data: {
|
|
1755
1755
|
parent: {
|
|
1756
1756
|
id: string;
|
|
@@ -1781,8 +1781,8 @@ export declare const notionEventsContract: {
|
|
|
1781
1781
|
}[];
|
|
1782
1782
|
} | {
|
|
1783
1783
|
type: "database.deleted";
|
|
1784
|
-
timestamp: string;
|
|
1785
1784
|
id: string;
|
|
1785
|
+
timestamp: string;
|
|
1786
1786
|
data: {
|
|
1787
1787
|
parent: {
|
|
1788
1788
|
id: string;
|
|
@@ -1813,8 +1813,8 @@ export declare const notionEventsContract: {
|
|
|
1813
1813
|
}[];
|
|
1814
1814
|
} | {
|
|
1815
1815
|
type: "database.moved";
|
|
1816
|
-
timestamp: string;
|
|
1817
1816
|
id: string;
|
|
1817
|
+
timestamp: string;
|
|
1818
1818
|
data: {
|
|
1819
1819
|
parent: {
|
|
1820
1820
|
id: string;
|
|
@@ -1845,8 +1845,8 @@ export declare const notionEventsContract: {
|
|
|
1845
1845
|
}[];
|
|
1846
1846
|
} | {
|
|
1847
1847
|
type: "database.undeleted";
|
|
1848
|
-
timestamp: string;
|
|
1849
1848
|
id: string;
|
|
1849
|
+
timestamp: string;
|
|
1850
1850
|
data: {
|
|
1851
1851
|
parent: {
|
|
1852
1852
|
id: string;
|
|
@@ -1877,8 +1877,8 @@ export declare const notionEventsContract: {
|
|
|
1877
1877
|
}[];
|
|
1878
1878
|
} | {
|
|
1879
1879
|
type: "file_upload.completed";
|
|
1880
|
-
timestamp: string;
|
|
1881
1880
|
id: string;
|
|
1881
|
+
timestamp: string;
|
|
1882
1882
|
workspaceId: string;
|
|
1883
1883
|
workspaceName: string;
|
|
1884
1884
|
subscriptionId: string;
|
|
@@ -1902,8 +1902,8 @@ export declare const notionEventsContract: {
|
|
|
1902
1902
|
}[];
|
|
1903
1903
|
} | {
|
|
1904
1904
|
type: "file_upload.created";
|
|
1905
|
-
timestamp: string;
|
|
1906
1905
|
id: string;
|
|
1906
|
+
timestamp: string;
|
|
1907
1907
|
workspaceId: string;
|
|
1908
1908
|
workspaceName: string;
|
|
1909
1909
|
subscriptionId: string;
|
|
@@ -1927,8 +1927,8 @@ export declare const notionEventsContract: {
|
|
|
1927
1927
|
}[];
|
|
1928
1928
|
} | {
|
|
1929
1929
|
type: "file_upload.expired";
|
|
1930
|
-
timestamp: string;
|
|
1931
1930
|
id: string;
|
|
1931
|
+
timestamp: string;
|
|
1932
1932
|
workspaceId: string;
|
|
1933
1933
|
workspaceName: string;
|
|
1934
1934
|
subscriptionId: string;
|
|
@@ -1952,8 +1952,8 @@ export declare const notionEventsContract: {
|
|
|
1952
1952
|
}[];
|
|
1953
1953
|
} | {
|
|
1954
1954
|
type: "file_upload.upload_failed";
|
|
1955
|
-
timestamp: string;
|
|
1956
1955
|
id: string;
|
|
1956
|
+
timestamp: string;
|
|
1957
1957
|
data: {
|
|
1958
1958
|
fileImportResult: {
|
|
1959
1959
|
type: "success";
|
|
@@ -1996,8 +1996,8 @@ export declare const notionEventsContract: {
|
|
|
1996
1996
|
}[];
|
|
1997
1997
|
} | {
|
|
1998
1998
|
type: "page.content_updated";
|
|
1999
|
-
timestamp: string;
|
|
2000
1999
|
id: string;
|
|
2000
|
+
timestamp: string;
|
|
2001
2001
|
data: {
|
|
2002
2002
|
parent: {
|
|
2003
2003
|
id: string;
|
|
@@ -2032,8 +2032,8 @@ export declare const notionEventsContract: {
|
|
|
2032
2032
|
}[];
|
|
2033
2033
|
} | {
|
|
2034
2034
|
type: "page.created";
|
|
2035
|
-
timestamp: string;
|
|
2036
2035
|
id: string;
|
|
2036
|
+
timestamp: string;
|
|
2037
2037
|
data: {
|
|
2038
2038
|
parent: {
|
|
2039
2039
|
id: string;
|
|
@@ -2064,8 +2064,8 @@ export declare const notionEventsContract: {
|
|
|
2064
2064
|
}[];
|
|
2065
2065
|
} | {
|
|
2066
2066
|
type: "page.deleted";
|
|
2067
|
-
timestamp: string;
|
|
2068
2067
|
id: string;
|
|
2068
|
+
timestamp: string;
|
|
2069
2069
|
data: {
|
|
2070
2070
|
parent: {
|
|
2071
2071
|
id: string;
|
|
@@ -2096,8 +2096,8 @@ export declare const notionEventsContract: {
|
|
|
2096
2096
|
}[];
|
|
2097
2097
|
} | {
|
|
2098
2098
|
type: "page.locked";
|
|
2099
|
-
timestamp: string;
|
|
2100
2099
|
id: string;
|
|
2100
|
+
timestamp: string;
|
|
2101
2101
|
data: {
|
|
2102
2102
|
parent: {
|
|
2103
2103
|
id: string;
|
|
@@ -2128,8 +2128,8 @@ export declare const notionEventsContract: {
|
|
|
2128
2128
|
}[];
|
|
2129
2129
|
} | {
|
|
2130
2130
|
type: "page.moved";
|
|
2131
|
-
timestamp: string;
|
|
2132
2131
|
id: string;
|
|
2132
|
+
timestamp: string;
|
|
2133
2133
|
data: {
|
|
2134
2134
|
parent: {
|
|
2135
2135
|
id: string;
|
|
@@ -2160,8 +2160,8 @@ export declare const notionEventsContract: {
|
|
|
2160
2160
|
}[];
|
|
2161
2161
|
} | {
|
|
2162
2162
|
type: "page.properties_updated";
|
|
2163
|
-
timestamp: string;
|
|
2164
2163
|
id: string;
|
|
2164
|
+
timestamp: string;
|
|
2165
2165
|
data: {
|
|
2166
2166
|
parent: {
|
|
2167
2167
|
id: string;
|
|
@@ -2193,8 +2193,8 @@ export declare const notionEventsContract: {
|
|
|
2193
2193
|
}[];
|
|
2194
2194
|
} | {
|
|
2195
2195
|
type: "page.transcription_block.transcript_deleted";
|
|
2196
|
-
timestamp: string;
|
|
2197
2196
|
id: string;
|
|
2197
|
+
timestamp: string;
|
|
2198
2198
|
data: {
|
|
2199
2199
|
target: {
|
|
2200
2200
|
id: string;
|
|
@@ -2225,8 +2225,8 @@ export declare const notionEventsContract: {
|
|
|
2225
2225
|
}[];
|
|
2226
2226
|
} | {
|
|
2227
2227
|
type: "page.undeleted";
|
|
2228
|
-
timestamp: string;
|
|
2229
2228
|
id: string;
|
|
2229
|
+
timestamp: string;
|
|
2230
2230
|
data: {
|
|
2231
2231
|
parent: {
|
|
2232
2232
|
id: string;
|
|
@@ -2257,8 +2257,8 @@ export declare const notionEventsContract: {
|
|
|
2257
2257
|
}[];
|
|
2258
2258
|
} | {
|
|
2259
2259
|
type: "page.unlocked";
|
|
2260
|
-
timestamp: string;
|
|
2261
2260
|
id: string;
|
|
2261
|
+
timestamp: string;
|
|
2262
2262
|
data: {
|
|
2263
2263
|
parent: {
|
|
2264
2264
|
id: string;
|
|
@@ -2289,8 +2289,8 @@ export declare const notionEventsContract: {
|
|
|
2289
2289
|
}[];
|
|
2290
2290
|
} | {
|
|
2291
2291
|
type: "view.created";
|
|
2292
|
-
timestamp: string;
|
|
2293
2292
|
id: string;
|
|
2293
|
+
timestamp: string;
|
|
2294
2294
|
data: {
|
|
2295
2295
|
parent: {
|
|
2296
2296
|
id: string;
|
|
@@ -2322,8 +2322,8 @@ export declare const notionEventsContract: {
|
|
|
2322
2322
|
}[];
|
|
2323
2323
|
} | {
|
|
2324
2324
|
type: "view.deleted";
|
|
2325
|
-
timestamp: string;
|
|
2326
2325
|
id: string;
|
|
2326
|
+
timestamp: string;
|
|
2327
2327
|
data: {
|
|
2328
2328
|
parent: {
|
|
2329
2329
|
id: string;
|
|
@@ -2354,15 +2354,15 @@ export declare const notionEventsContract: {
|
|
|
2354
2354
|
}[];
|
|
2355
2355
|
} | {
|
|
2356
2356
|
type: "view.updated";
|
|
2357
|
-
timestamp: string;
|
|
2358
2357
|
id: string;
|
|
2358
|
+
timestamp: string;
|
|
2359
2359
|
data: {
|
|
2360
2360
|
parent: {
|
|
2361
2361
|
id: string;
|
|
2362
2362
|
type: "team" | "page" | "space" | "agent" | "block" | "database";
|
|
2363
2363
|
dataSourceId?: string | undefined;
|
|
2364
2364
|
};
|
|
2365
|
-
updatedFields: ("
|
|
2365
|
+
updatedFields: ("filter" | "name" | "sorts" | "configuration")[];
|
|
2366
2366
|
};
|
|
2367
2367
|
workspaceId: string;
|
|
2368
2368
|
workspaceName: string;
|
|
@@ -3489,7 +3489,7 @@ export declare const notionEventsContract: {
|
|
|
3489
3489
|
type: "team" | "page" | "space" | "agent" | "block" | "database";
|
|
3490
3490
|
data_source_id?: string | undefined;
|
|
3491
3491
|
};
|
|
3492
|
-
updated_fields: ("
|
|
3492
|
+
updated_fields: ("filter" | "name" | "sorts" | "configuration")[];
|
|
3493
3493
|
};
|
|
3494
3494
|
entity: {
|
|
3495
3495
|
id: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -3717,8 +3717,8 @@ export declare const contract: {
|
|
|
3717
3717
|
}>;
|
|
3718
3718
|
}, import("zod/v4/core").$strip>;
|
|
3719
3719
|
updated_fields: import("zod").ZodArray<import("zod").ZodEnum<{
|
|
3720
|
-
name: "name";
|
|
3721
3720
|
filter: "filter";
|
|
3721
|
+
name: "name";
|
|
3722
3722
|
sorts: "sorts";
|
|
3723
3723
|
configuration: "configuration";
|
|
3724
3724
|
}>>;
|
|
@@ -3759,8 +3759,8 @@ export declare const contract: {
|
|
|
3759
3759
|
workspace_name: import("zod").ZodString;
|
|
3760
3760
|
}, import("zod/v4/core").$catchall<import("zod").ZodJSONSchema>>], "type">, import("zod").ZodTransform<{
|
|
3761
3761
|
type: "comment.created";
|
|
3762
|
-
timestamp: string;
|
|
3763
3762
|
id: string;
|
|
3763
|
+
timestamp: string;
|
|
3764
3764
|
data: {
|
|
3765
3765
|
parent: {
|
|
3766
3766
|
id: string;
|
|
@@ -3791,8 +3791,8 @@ export declare const contract: {
|
|
|
3791
3791
|
}[];
|
|
3792
3792
|
} | {
|
|
3793
3793
|
type: "comment.deleted";
|
|
3794
|
-
timestamp: string;
|
|
3795
3794
|
id: string;
|
|
3795
|
+
timestamp: string;
|
|
3796
3796
|
data: {
|
|
3797
3797
|
parent: {
|
|
3798
3798
|
id: string;
|
|
@@ -3823,8 +3823,8 @@ export declare const contract: {
|
|
|
3823
3823
|
}[];
|
|
3824
3824
|
} | {
|
|
3825
3825
|
type: "comment.updated";
|
|
3826
|
-
timestamp: string;
|
|
3827
3826
|
id: string;
|
|
3827
|
+
timestamp: string;
|
|
3828
3828
|
data: {
|
|
3829
3829
|
parent: {
|
|
3830
3830
|
id: string;
|
|
@@ -3855,8 +3855,8 @@ export declare const contract: {
|
|
|
3855
3855
|
}[];
|
|
3856
3856
|
} | {
|
|
3857
3857
|
type: "data_source.content_updated";
|
|
3858
|
-
timestamp: string;
|
|
3859
3858
|
id: string;
|
|
3859
|
+
timestamp: string;
|
|
3860
3860
|
data: {
|
|
3861
3861
|
parent: {
|
|
3862
3862
|
id: string;
|
|
@@ -3891,8 +3891,8 @@ export declare const contract: {
|
|
|
3891
3891
|
}[];
|
|
3892
3892
|
} | {
|
|
3893
3893
|
type: "data_source.created";
|
|
3894
|
-
timestamp: string;
|
|
3895
3894
|
id: string;
|
|
3895
|
+
timestamp: string;
|
|
3896
3896
|
data: {
|
|
3897
3897
|
parent: {
|
|
3898
3898
|
id: string;
|
|
@@ -3923,8 +3923,8 @@ export declare const contract: {
|
|
|
3923
3923
|
}[];
|
|
3924
3924
|
} | {
|
|
3925
3925
|
type: "data_source.deleted";
|
|
3926
|
-
timestamp: string;
|
|
3927
3926
|
id: string;
|
|
3927
|
+
timestamp: string;
|
|
3928
3928
|
data: {
|
|
3929
3929
|
parent: {
|
|
3930
3930
|
id: string;
|
|
@@ -3955,8 +3955,8 @@ export declare const contract: {
|
|
|
3955
3955
|
}[];
|
|
3956
3956
|
} | {
|
|
3957
3957
|
type: "data_source.moved";
|
|
3958
|
-
timestamp: string;
|
|
3959
3958
|
id: string;
|
|
3959
|
+
timestamp: string;
|
|
3960
3960
|
data: {
|
|
3961
3961
|
parent: {
|
|
3962
3962
|
id: string;
|
|
@@ -3987,8 +3987,8 @@ export declare const contract: {
|
|
|
3987
3987
|
}[];
|
|
3988
3988
|
} | {
|
|
3989
3989
|
type: "data_source.schema_updated";
|
|
3990
|
-
timestamp: string;
|
|
3991
3990
|
id: string;
|
|
3991
|
+
timestamp: string;
|
|
3992
3992
|
data: {
|
|
3993
3993
|
parent: {
|
|
3994
3994
|
id: string;
|
|
@@ -4024,8 +4024,8 @@ export declare const contract: {
|
|
|
4024
4024
|
}[];
|
|
4025
4025
|
} | {
|
|
4026
4026
|
type: "data_source.undeleted";
|
|
4027
|
-
timestamp: string;
|
|
4028
4027
|
id: string;
|
|
4028
|
+
timestamp: string;
|
|
4029
4029
|
data: {
|
|
4030
4030
|
parent: {
|
|
4031
4031
|
id: string;
|
|
@@ -4056,8 +4056,8 @@ export declare const contract: {
|
|
|
4056
4056
|
}[];
|
|
4057
4057
|
} | {
|
|
4058
4058
|
type: "database.created";
|
|
4059
|
-
timestamp: string;
|
|
4060
4059
|
id: string;
|
|
4060
|
+
timestamp: string;
|
|
4061
4061
|
data: {
|
|
4062
4062
|
parent: {
|
|
4063
4063
|
id: string;
|
|
@@ -4088,8 +4088,8 @@ export declare const contract: {
|
|
|
4088
4088
|
}[];
|
|
4089
4089
|
} | {
|
|
4090
4090
|
type: "database.deleted";
|
|
4091
|
-
timestamp: string;
|
|
4092
4091
|
id: string;
|
|
4092
|
+
timestamp: string;
|
|
4093
4093
|
data: {
|
|
4094
4094
|
parent: {
|
|
4095
4095
|
id: string;
|
|
@@ -4120,8 +4120,8 @@ export declare const contract: {
|
|
|
4120
4120
|
}[];
|
|
4121
4121
|
} | {
|
|
4122
4122
|
type: "database.moved";
|
|
4123
|
-
timestamp: string;
|
|
4124
4123
|
id: string;
|
|
4124
|
+
timestamp: string;
|
|
4125
4125
|
data: {
|
|
4126
4126
|
parent: {
|
|
4127
4127
|
id: string;
|
|
@@ -4152,8 +4152,8 @@ export declare const contract: {
|
|
|
4152
4152
|
}[];
|
|
4153
4153
|
} | {
|
|
4154
4154
|
type: "database.undeleted";
|
|
4155
|
-
timestamp: string;
|
|
4156
4155
|
id: string;
|
|
4156
|
+
timestamp: string;
|
|
4157
4157
|
data: {
|
|
4158
4158
|
parent: {
|
|
4159
4159
|
id: string;
|
|
@@ -4184,8 +4184,8 @@ export declare const contract: {
|
|
|
4184
4184
|
}[];
|
|
4185
4185
|
} | {
|
|
4186
4186
|
type: "file_upload.completed";
|
|
4187
|
-
timestamp: string;
|
|
4188
4187
|
id: string;
|
|
4188
|
+
timestamp: string;
|
|
4189
4189
|
workspaceId: string;
|
|
4190
4190
|
workspaceName: string;
|
|
4191
4191
|
subscriptionId: string;
|
|
@@ -4209,8 +4209,8 @@ export declare const contract: {
|
|
|
4209
4209
|
}[];
|
|
4210
4210
|
} | {
|
|
4211
4211
|
type: "file_upload.created";
|
|
4212
|
-
timestamp: string;
|
|
4213
4212
|
id: string;
|
|
4213
|
+
timestamp: string;
|
|
4214
4214
|
workspaceId: string;
|
|
4215
4215
|
workspaceName: string;
|
|
4216
4216
|
subscriptionId: string;
|
|
@@ -4234,8 +4234,8 @@ export declare const contract: {
|
|
|
4234
4234
|
}[];
|
|
4235
4235
|
} | {
|
|
4236
4236
|
type: "file_upload.expired";
|
|
4237
|
-
timestamp: string;
|
|
4238
4237
|
id: string;
|
|
4238
|
+
timestamp: string;
|
|
4239
4239
|
workspaceId: string;
|
|
4240
4240
|
workspaceName: string;
|
|
4241
4241
|
subscriptionId: string;
|
|
@@ -4259,8 +4259,8 @@ export declare const contract: {
|
|
|
4259
4259
|
}[];
|
|
4260
4260
|
} | {
|
|
4261
4261
|
type: "file_upload.upload_failed";
|
|
4262
|
-
timestamp: string;
|
|
4263
4262
|
id: string;
|
|
4263
|
+
timestamp: string;
|
|
4264
4264
|
data: {
|
|
4265
4265
|
fileImportResult: {
|
|
4266
4266
|
type: "success";
|
|
@@ -4303,8 +4303,8 @@ export declare const contract: {
|
|
|
4303
4303
|
}[];
|
|
4304
4304
|
} | {
|
|
4305
4305
|
type: "page.content_updated";
|
|
4306
|
-
timestamp: string;
|
|
4307
4306
|
id: string;
|
|
4307
|
+
timestamp: string;
|
|
4308
4308
|
data: {
|
|
4309
4309
|
parent: {
|
|
4310
4310
|
id: string;
|
|
@@ -4339,8 +4339,8 @@ export declare const contract: {
|
|
|
4339
4339
|
}[];
|
|
4340
4340
|
} | {
|
|
4341
4341
|
type: "page.created";
|
|
4342
|
-
timestamp: string;
|
|
4343
4342
|
id: string;
|
|
4343
|
+
timestamp: string;
|
|
4344
4344
|
data: {
|
|
4345
4345
|
parent: {
|
|
4346
4346
|
id: string;
|
|
@@ -4371,8 +4371,8 @@ export declare const contract: {
|
|
|
4371
4371
|
}[];
|
|
4372
4372
|
} | {
|
|
4373
4373
|
type: "page.deleted";
|
|
4374
|
-
timestamp: string;
|
|
4375
4374
|
id: string;
|
|
4375
|
+
timestamp: string;
|
|
4376
4376
|
data: {
|
|
4377
4377
|
parent: {
|
|
4378
4378
|
id: string;
|
|
@@ -4403,8 +4403,8 @@ export declare const contract: {
|
|
|
4403
4403
|
}[];
|
|
4404
4404
|
} | {
|
|
4405
4405
|
type: "page.locked";
|
|
4406
|
-
timestamp: string;
|
|
4407
4406
|
id: string;
|
|
4407
|
+
timestamp: string;
|
|
4408
4408
|
data: {
|
|
4409
4409
|
parent: {
|
|
4410
4410
|
id: string;
|
|
@@ -4435,8 +4435,8 @@ export declare const contract: {
|
|
|
4435
4435
|
}[];
|
|
4436
4436
|
} | {
|
|
4437
4437
|
type: "page.moved";
|
|
4438
|
-
timestamp: string;
|
|
4439
4438
|
id: string;
|
|
4439
|
+
timestamp: string;
|
|
4440
4440
|
data: {
|
|
4441
4441
|
parent: {
|
|
4442
4442
|
id: string;
|
|
@@ -4467,8 +4467,8 @@ export declare const contract: {
|
|
|
4467
4467
|
}[];
|
|
4468
4468
|
} | {
|
|
4469
4469
|
type: "page.properties_updated";
|
|
4470
|
-
timestamp: string;
|
|
4471
4470
|
id: string;
|
|
4471
|
+
timestamp: string;
|
|
4472
4472
|
data: {
|
|
4473
4473
|
parent: {
|
|
4474
4474
|
id: string;
|
|
@@ -4500,8 +4500,8 @@ export declare const contract: {
|
|
|
4500
4500
|
}[];
|
|
4501
4501
|
} | {
|
|
4502
4502
|
type: "page.transcription_block.transcript_deleted";
|
|
4503
|
-
timestamp: string;
|
|
4504
4503
|
id: string;
|
|
4504
|
+
timestamp: string;
|
|
4505
4505
|
data: {
|
|
4506
4506
|
target: {
|
|
4507
4507
|
id: string;
|
|
@@ -4532,8 +4532,8 @@ export declare const contract: {
|
|
|
4532
4532
|
}[];
|
|
4533
4533
|
} | {
|
|
4534
4534
|
type: "page.undeleted";
|
|
4535
|
-
timestamp: string;
|
|
4536
4535
|
id: string;
|
|
4536
|
+
timestamp: string;
|
|
4537
4537
|
data: {
|
|
4538
4538
|
parent: {
|
|
4539
4539
|
id: string;
|
|
@@ -4564,8 +4564,8 @@ export declare const contract: {
|
|
|
4564
4564
|
}[];
|
|
4565
4565
|
} | {
|
|
4566
4566
|
type: "page.unlocked";
|
|
4567
|
-
timestamp: string;
|
|
4568
4567
|
id: string;
|
|
4568
|
+
timestamp: string;
|
|
4569
4569
|
data: {
|
|
4570
4570
|
parent: {
|
|
4571
4571
|
id: string;
|
|
@@ -4596,8 +4596,8 @@ export declare const contract: {
|
|
|
4596
4596
|
}[];
|
|
4597
4597
|
} | {
|
|
4598
4598
|
type: "view.created";
|
|
4599
|
-
timestamp: string;
|
|
4600
4599
|
id: string;
|
|
4600
|
+
timestamp: string;
|
|
4601
4601
|
data: {
|
|
4602
4602
|
parent: {
|
|
4603
4603
|
id: string;
|
|
@@ -4629,8 +4629,8 @@ export declare const contract: {
|
|
|
4629
4629
|
}[];
|
|
4630
4630
|
} | {
|
|
4631
4631
|
type: "view.deleted";
|
|
4632
|
-
timestamp: string;
|
|
4633
4632
|
id: string;
|
|
4633
|
+
timestamp: string;
|
|
4634
4634
|
data: {
|
|
4635
4635
|
parent: {
|
|
4636
4636
|
id: string;
|
|
@@ -4661,15 +4661,15 @@ export declare const contract: {
|
|
|
4661
4661
|
}[];
|
|
4662
4662
|
} | {
|
|
4663
4663
|
type: "view.updated";
|
|
4664
|
-
timestamp: string;
|
|
4665
4664
|
id: string;
|
|
4665
|
+
timestamp: string;
|
|
4666
4666
|
data: {
|
|
4667
4667
|
parent: {
|
|
4668
4668
|
id: string;
|
|
4669
4669
|
type: "team" | "page" | "space" | "agent" | "block" | "database";
|
|
4670
4670
|
dataSourceId?: string | undefined;
|
|
4671
4671
|
};
|
|
4672
|
-
updatedFields: ("
|
|
4672
|
+
updatedFields: ("filter" | "name" | "sorts" | "configuration")[];
|
|
4673
4673
|
};
|
|
4674
4674
|
workspaceId: string;
|
|
4675
4675
|
workspaceName: string;
|
|
@@ -5796,7 +5796,7 @@ export declare const contract: {
|
|
|
5796
5796
|
type: "team" | "page" | "space" | "agent" | "block" | "database";
|
|
5797
5797
|
data_source_id?: string | undefined;
|
|
5798
5798
|
};
|
|
5799
|
-
updated_fields: ("
|
|
5799
|
+
updated_fields: ("filter" | "name" | "sorts" | "configuration")[];
|
|
5800
5800
|
};
|
|
5801
5801
|
entity: {
|
|
5802
5802
|
id: string;
|
|
@@ -5948,6 +5948,9 @@ export declare const contract: {
|
|
|
5948
5948
|
events: import("zod").ZodPrefault<import("zod").ZodArray<import("zod").ZodJSONSchema>>;
|
|
5949
5949
|
sourceId: import("zod").ZodString;
|
|
5950
5950
|
}, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
5951
|
+
apifyEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
5952
|
+
sourceId: import("zod").ZodString;
|
|
5953
|
+
}, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
5951
5954
|
airtableEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
5952
5955
|
base: import("zod").ZodObject<{
|
|
5953
5956
|
id: import("zod").ZodString;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automate.ax/api-contract",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.126.0",
|
|
4
4
|
"description": "Public oRPC contract for the Automate.ax API.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@ai-sdk/gateway": "4.0.46",
|
|
34
|
-
"@automate.ax/codec": "0.
|
|
35
|
-
"@automate.ax/integration-contracts": "0.
|
|
34
|
+
"@automate.ax/codec": "0.126.0",
|
|
35
|
+
"@automate.ax/integration-contracts": "0.126.0",
|
|
36
36
|
"@orpc/contract": "1.15.0",
|
|
37
37
|
"fast-json-stable-stringify": "^2.1.0",
|
|
38
38
|
"zod": "^4.3.6"
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { oc } from "@orpc/contract"
|
|
2
|
+
import * as z from "zod"
|
|
3
|
+
|
|
4
|
+
export const apifyEventsContract = {
|
|
5
|
+
apifyEvent: oc
|
|
6
|
+
.route({
|
|
7
|
+
method: "POST",
|
|
8
|
+
path: "/events/apify/{sourceId}",
|
|
9
|
+
operationId: "receiveApifyEvent",
|
|
10
|
+
summary: "Receive an Apify event",
|
|
11
|
+
description:
|
|
12
|
+
"Receives and authenticates callbacks delivered by Apify webhooks.",
|
|
13
|
+
tags: ["Events"],
|
|
14
|
+
successStatus: 200,
|
|
15
|
+
})
|
|
16
|
+
.input(z.looseObject({ sourceId: z.string() }))
|
|
17
|
+
.output(z.void()),
|
|
18
|
+
}
|
package/src/events/index.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { airtableEventsContract } from "./airtable"
|
|
2
|
+
import { apifyEventsContract } from "./apify"
|
|
2
3
|
import { asanaEventsContract } from "./asana"
|
|
3
4
|
import { brevoEventsContract } from "./brevo"
|
|
4
5
|
import { convexEventsContract } from "./convex"
|
|
@@ -25,6 +26,7 @@ import { whatsappEventsContract } from "./whatsapp"
|
|
|
25
26
|
|
|
26
27
|
export const eventsContract = {
|
|
27
28
|
...airtableEventsContract,
|
|
29
|
+
...apifyEventsContract,
|
|
28
30
|
...asanaEventsContract,
|
|
29
31
|
...brevoEventsContract,
|
|
30
32
|
...convexEventsContract,
|