Skip to content

Commit 42bd890

Browse files
authored
Add admin APIs for managing automation platform apps (#1203)
1 parent f0f0812 commit 42bd890

File tree

58 files changed

+2345
-43
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+2345
-43
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"ok": false,
3+
"activities": [
4+
{
5+
"app_id": "A00000000",
6+
"level": "",
7+
"event_type": "",
8+
"source": "",
9+
"component_type": "",
10+
"component_id": "",
11+
"team_id": "",
12+
"enterprise_id": "E00000000",
13+
"payload": {
14+
"exec_outcome": "",
15+
"workflow_name": "",
16+
"function_name": "",
17+
"function_type": "",
18+
"function_id": "",
19+
"function_execution_id": "",
20+
"total_steps": 12345,
21+
"current_step": 12345,
22+
"actor": "W00000000",
23+
"error": "",
24+
"log": "",
25+
"type": "",
26+
"billing_reason": [
27+
""
28+
],
29+
"is_billing_excluded": false,
30+
"trigger": {
31+
"id": "",
32+
"type": "",
33+
"config": {
34+
"name": "",
35+
"description": ""
36+
},
37+
"trip_information": {
38+
"user_id": "W00000000",
39+
"channel_id": "C00000000"
40+
}
41+
}
42+
},
43+
"created": 12345,
44+
"trace_id": ""
45+
}
46+
],
47+
"response_metadata": {
48+
"next_cursor": ""
49+
},
50+
"error": "",
51+
"needed": "",
52+
"provided": ""
53+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"ok": false,
3+
"error": "",
4+
"response_metadata": {
5+
"messages": [
6+
""
7+
]
8+
},
9+
"needed": "",
10+
"provided": "",
11+
"configs": [
12+
{
13+
"app_id": "A00000000",
14+
"workflow_auth_strategy": "",
15+
"domain_restrictions": {
16+
"emails": [
17+
""
18+
],
19+
"urls": [
20+
""
21+
]
22+
}
23+
}
24+
]
25+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"ok": false,
3+
"error": "",
4+
"needed": "",
5+
"provided": ""
6+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"ok": false,
3+
"error": "",
4+
"response_metadata": {
5+
"messages": [
6+
""
7+
],
8+
"next_cursor": ""
9+
},
10+
"needed": "",
11+
"provided": "",
12+
"functions": [
13+
{
14+
"id": "",
15+
"callback_id": "",
16+
"title": "",
17+
"description": "",
18+
"type": "",
19+
"input_parameters": [
20+
{
21+
"type": "",
22+
"name": "",
23+
"title": "",
24+
"is_required": false,
25+
"description": ""
26+
}
27+
],
28+
"output_parameters": [
29+
{
30+
"type": "",
31+
"name": "",
32+
"title": "",
33+
"is_required": false,
34+
"description": ""
35+
}
36+
],
37+
"app_id": "A00000000",
38+
"date_created": 12345,
39+
"date_updated": 12345,
40+
"date_deleted": 12345
41+
}
42+
]
43+
}
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"ok": false,
3+
"permissions": {
4+
"Fn0000000000": {
5+
"distribution": {
6+
"type": "",
7+
"user_ids": [
8+
""
9+
]
10+
},
11+
"allowed_entities": {
12+
"type": "",
13+
"user_ids": [
14+
""
15+
]
16+
},
17+
"allowed_by_admin": {
18+
"type": "",
19+
"user_ids": [
20+
""
21+
]
22+
}
23+
},
24+
"Fn0000000000_": {
25+
"distribution": {
26+
"type": "",
27+
"user_ids": [
28+
""
29+
]
30+
},
31+
"allowed_entities": {
32+
"type": "",
33+
"user_ids": [
34+
""
35+
]
36+
},
37+
"allowed_by_admin": {
38+
"type": "",
39+
"user_ids": [
40+
""
41+
]
42+
}
43+
}
44+
},
45+
"errors": {},
46+
"error": "",
47+
"needed": "",
48+
"provided": "",
49+
"response_metadata": {
50+
"messages": [
51+
""
52+
]
53+
}
54+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"ok": false,
3+
"error": "",
4+
"response_metadata": {
5+
"messages": [
6+
""
7+
]
8+
},
9+
"needed": "",
10+
"provided": ""
11+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"ok": false,
3+
"error": "",
4+
"response_metadata": {
5+
"messages": [
6+
""
7+
]
8+
},
9+
"needed": "",
10+
"provided": "",
11+
"errors": [
12+
{
13+
"message": "",
14+
"user": "U00000000",
15+
"workflow": ""
16+
}
17+
]
18+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"ok": false,
3+
"error": "",
4+
"errors": [
5+
{
6+
"user": "W00000000",
7+
"workflow": "",
8+
"message": ""
9+
}
10+
],
11+
"needed": "",
12+
"provided": ""
13+
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"ok": false,
3+
"permissions": {
4+
"0000000000": {
5+
"complete": false,
6+
"who_can_run": {
7+
"permission_type": "",
8+
"user_ids": [
9+
""
10+
],
11+
"channel_ids": [
12+
""
13+
],
14+
"team_ids": [
15+
""
16+
],
17+
"org_ids": [
18+
""
19+
]
20+
}
21+
},
22+
"0000000000_": {
23+
"complete": false,
24+
"who_can_run": {
25+
"permission_type": "",
26+
"user_ids": [
27+
""
28+
],
29+
"channel_ids": [
30+
""
31+
],
32+
"team_ids": [
33+
""
34+
],
35+
"org_ids": [
36+
""
37+
]
38+
}
39+
}
40+
},
41+
"error": "",
42+
"needed": "",
43+
"provided": ""
44+
}
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
{
2+
"ok": false,
3+
"workflows": [
4+
{
5+
"id": "",
6+
"team_id": "E00000000",
7+
"workflow_function_id": "",
8+
"callback_id": "",
9+
"title": "",
10+
"description": "",
11+
"input_parameters": {
12+
"0000000000": {
13+
"type": "",
14+
"name": "",
15+
"title": "",
16+
"description": "",
17+
"is_required": false,
18+
"is_hidden": false
19+
},
20+
"0000000000_": {
21+
"type": "",
22+
"name": "",
23+
"title": "",
24+
"description": "",
25+
"is_required": false,
26+
"is_hidden": false
27+
}
28+
},
29+
"steps": [
30+
{
31+
"id": "0",
32+
"function_id": "",
33+
"inputs": {
34+
"0000000000": {
35+
"hidden": false,
36+
"locked": false
37+
},
38+
"0000000000_": {
39+
"hidden": false,
40+
"locked": false
41+
}
42+
},
43+
"is_pristine": false
44+
}
45+
],
46+
"collaborators": [
47+
"W00000000"
48+
],
49+
"icons": {
50+
"image_96": "https://www.example.com/",
51+
"image_192": "https://www.example.com/"
52+
},
53+
"is_published": false,
54+
"last_updated_by": "W00000000",
55+
"unpublished_change_count": 12345,
56+
"app_id": "A00000000",
57+
"source": "",
58+
"billing_type": "",
59+
"date_updated": 12345,
60+
"is_billable": false,
61+
"last_published_version_id": "",
62+
"last_published_date": "1234567890",
63+
"trigger_ids": [
64+
""
65+
],
66+
"is_sales_home_workflow": false
67+
}
68+
],
69+
"total_found": 12345,
70+
"error": "",
71+
"needed": "",
72+
"provided": "",
73+
"response_metadata": {
74+
"messages": [
75+
""
76+
]
77+
}
78+
}

0 commit comments

Comments
 (0)