Skip to content

Commit 554d301

Browse files
committed
Add hosted Slack provider orchestration
1 parent 7df7375 commit 554d301

16 files changed

Lines changed: 4579 additions & 0 deletions

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/locality-slack/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,7 @@ reqwest = { version = "0.13", default-features = false, features = ["blocking",
1919
rustls = { version = "0.23", default-features = false, features = ["ring", "std", "tls12"] }
2020
serde = { version = "1.0", features = ["derive"] }
2121
serde_json = "1.0"
22+
tokio = { version = "1", features = ["macros", "rt", "sync", "time"] }
23+
24+
[dev-dependencies]
25+
tokio = { version = "1", features = ["test-util"] }
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text eol=lf
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[
2+
{
3+
"operation": "verify_installation"
4+
},
5+
{
6+
"operation": "conversations_info",
7+
"channel_id": "C08ENGINEER1"
8+
}
9+
]
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
[
2+
{
3+
"operation": "verify_installation"
4+
},
5+
{
6+
"operation": "conversations_info",
7+
"channel_id": "C08ENGINEER1"
8+
},
9+
{
10+
"operation": "conversations_history",
11+
"request": {
12+
"installation_id": "0198f3c2-7d4e-7a61-8b25-4f9c8d7e6a10",
13+
"team_id": "T08LOCALITY1",
14+
"channel_id": "C08ENGINEER1",
15+
"phase": "historical_history",
16+
"oldest": "1767225599.999999",
17+
"latest": "1780272000.000000",
18+
"inclusive": false,
19+
"cursor": null,
20+
"limit": 15
21+
}
22+
},
23+
{
24+
"operation": "conversations_history",
25+
"request": {
26+
"installation_id": "0198f3c2-7d4e-7a61-8b25-4f9c8d7e6a10",
27+
"team_id": "T08LOCALITY1",
28+
"channel_id": "C08ENGINEER1",
29+
"phase": "historical_history",
30+
"oldest": "1767225599.999999",
31+
"latest": "1780272000.000000",
32+
"inclusive": false,
33+
"cursor": "history-next",
34+
"limit": 15
35+
}
36+
}
37+
]
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[
2+
{
3+
"operation": "verify_installation"
4+
},
5+
{
6+
"operation": "conversations_info",
7+
"channel_id": "C08ENGINEER1"
8+
},
9+
{
10+
"operation": "conversations_history",
11+
"request": {
12+
"installation_id": "0198f3c2-7d4e-7a61-8b25-4f9c8d7e6a10",
13+
"team_id": "T08LOCALITY1",
14+
"channel_id": "C08ENGINEER1",
15+
"phase": "historical_history",
16+
"oldest": "1767225599.999999",
17+
"latest": "1780272000.000000",
18+
"inclusive": false,
19+
"cursor": null,
20+
"limit": 15
21+
}
22+
}
23+
]
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[
2+
{
3+
"operation": "verify_installation"
4+
}
5+
]
Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
[
2+
{
3+
"operation": "verify_installation"
4+
},
5+
{
6+
"operation": "conversations_info",
7+
"channel_id": "C08ENGINEER1"
8+
},
9+
{
10+
"operation": "conversations_history",
11+
"request": {
12+
"installation_id": "0198f3c2-7d4e-7a61-8b25-4f9c8d7e6a10",
13+
"team_id": "T08LOCALITY1",
14+
"channel_id": "C08ENGINEER1",
15+
"phase": "historical_history",
16+
"oldest": "1767225599.999999",
17+
"latest": "1780272000.000000",
18+
"inclusive": false,
19+
"cursor": null,
20+
"limit": 15
21+
}
22+
},
23+
{
24+
"operation": "files_info",
25+
"file_id": "F08PLAN0001",
26+
"channel_id": "C08ENGINEER1"
27+
},
28+
{
29+
"operation": "files_info",
30+
"file_id": "F08PLAN0002",
31+
"channel_id": "C08ENGINEER1"
32+
},
33+
{
34+
"operation": "users_info",
35+
"user_id": "U08ADA00001"
36+
},
37+
{
38+
"operation": "users_info",
39+
"user_id": "U08GRACE001"
40+
},
41+
{
42+
"operation": "conversations_history",
43+
"request": {
44+
"installation_id": "0198f3c2-7d4e-7a61-8b25-4f9c8d7e6a10",
45+
"team_id": "T08LOCALITY1",
46+
"channel_id": "C08ENGINEER1",
47+
"phase": "historical_history",
48+
"oldest": "1767225599.999999",
49+
"latest": "1780272000.000000",
50+
"inclusive": false,
51+
"cursor": "history-page-2",
52+
"limit": 15
53+
}
54+
},
55+
{
56+
"operation": "conversations_replies",
57+
"request": {
58+
"installation_id": "0198f3c2-7d4e-7a61-8b25-4f9c8d7e6a10",
59+
"team_id": "T08LOCALITY1",
60+
"channel_id": "C08ENGINEER1",
61+
"phase": "historical_replies",
62+
"root_message_id": "1780000000.000100",
63+
"latest": "1780272000.000000",
64+
"inclusive": false,
65+
"cursor": null,
66+
"limit": 15
67+
}
68+
},
69+
{
70+
"operation": "conversations_replies",
71+
"request": {
72+
"installation_id": "0198f3c2-7d4e-7a61-8b25-4f9c8d7e6a10",
73+
"team_id": "T08LOCALITY1",
74+
"channel_id": "C08ENGINEER1",
75+
"phase": "historical_replies",
76+
"root_message_id": "1780000000.000100",
77+
"latest": "1780272000.000000",
78+
"inclusive": false,
79+
"cursor": "reply-page-2",
80+
"limit": 15
81+
}
82+
},
83+
{
84+
"operation": "conversations_history",
85+
"request": {
86+
"installation_id": "0198f3c2-7d4e-7a61-8b25-4f9c8d7e6a10",
87+
"team_id": "T08LOCALITY1",
88+
"channel_id": "C08ENGINEER1",
89+
"phase": "catch_up_history",
90+
"oldest": "1779998399.999999",
91+
"latest": "1780358400.000000",
92+
"inclusive": false,
93+
"cursor": null,
94+
"limit": 15
95+
}
96+
},
97+
{
98+
"operation": "conversations_replies",
99+
"request": {
100+
"installation_id": "0198f3c2-7d4e-7a61-8b25-4f9c8d7e6a10",
101+
"team_id": "T08LOCALITY1",
102+
"channel_id": "C08ENGINEER1",
103+
"phase": "catch_up_replies",
104+
"root_message_id": "1780000000.000100",
105+
"latest": "1780358400.000000",
106+
"inclusive": false,
107+
"cursor": null,
108+
"limit": 15
109+
}
110+
},
111+
{
112+
"operation": "conversations_replies",
113+
"request": {
114+
"installation_id": "0198f3c2-7d4e-7a61-8b25-4f9c8d7e6a10",
115+
"team_id": "T08LOCALITY1",
116+
"channel_id": "C08ENGINEER1",
117+
"phase": "catch_up_replies",
118+
"root_message_id": "1780000000.000100",
119+
"latest": "1780358400.000000",
120+
"inclusive": false,
121+
"cursor": "reply-page-2",
122+
"limit": 15
123+
}
124+
}
125+
]
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
[
2+
{
3+
"operation": "verify_installation"
4+
},
5+
{
6+
"operation": "conversations_info",
7+
"channel_id": "C08ENGINEER1"
8+
},
9+
{
10+
"operation": "conversations_history",
11+
"request": {
12+
"installation_id": "0198f3c2-7d4e-7a61-8b25-4f9c8d7e6a10",
13+
"team_id": "T08LOCALITY1",
14+
"channel_id": "C08ENGINEER1",
15+
"phase": "catch_up_history",
16+
"oldest": "1780012799.999999",
17+
"latest": "1780358400.000000",
18+
"inclusive": false,
19+
"cursor": null,
20+
"limit": 15
21+
}
22+
},
23+
{
24+
"operation": "conversations_replies",
25+
"request": {
26+
"installation_id": "0198f3c2-7d4e-7a61-8b25-4f9c8d7e6a10",
27+
"team_id": "T08LOCALITY1",
28+
"channel_id": "C08ENGINEER1",
29+
"phase": "catch_up_replies",
30+
"root_message_id": "1780000000.000100",
31+
"latest": "1780358400.000000",
32+
"inclusive": false,
33+
"cursor": null,
34+
"limit": 15
35+
}
36+
}
37+
]
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
[
2+
{
3+
"operation": "verify_installation"
4+
},
5+
{
6+
"operation": "conversations_info",
7+
"channel_id": "C08ENGINEER1"
8+
},
9+
{
10+
"operation": "conversations_history",
11+
"request": {
12+
"installation_id": "0198f3c2-7d4e-7a61-8b25-4f9c8d7e6a10",
13+
"team_id": "T08LOCALITY1",
14+
"channel_id": "C08ENGINEER1",
15+
"phase": "historical_history",
16+
"oldest": "1767225599.999999",
17+
"latest": "1780272000.000000",
18+
"inclusive": false,
19+
"cursor": null,
20+
"limit": 15
21+
}
22+
},
23+
{
24+
"operation": "conversations_history",
25+
"request": {
26+
"installation_id": "0198f3c2-7d4e-7a61-8b25-4f9c8d7e6a10",
27+
"team_id": "T08LOCALITY1",
28+
"channel_id": "C08ENGINEER1",
29+
"phase": "historical_history",
30+
"oldest": "1767225599.999999",
31+
"latest": "1780272000.000000",
32+
"inclusive": false,
33+
"cursor": null,
34+
"limit": 15
35+
}
36+
}
37+
]

0 commit comments

Comments
 (0)