Skip to content

Commit 261b6ea

Browse files
committed
Add remote-function generation patterns
1 parent a96b38c commit 261b6ea

File tree

12 files changed

+551
-56
lines changed

12 files changed

+551
-56
lines changed

json-logs/samples/api/apps.manifest.export.json

Lines changed: 121 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"ok": false,
33
"manifest": {
44
"_metadata": {
5-
"major_version": "",
6-
"minor_version": ""
5+
"major_version": 123,
6+
"minor_version": 123
77
},
88
"display_information": {
99
"name": "",
@@ -34,7 +34,9 @@
3434
],
3535
"org_deploy_enabled": false,
3636
"socket_mode_enabled": false,
37-
"token_rotation_enabled": false
37+
"token_rotation_enabled": false,
38+
"hermes_app_type": "",
39+
"function_runtime": ""
3840
},
3941
"features": {
4042
"app_home": {
@@ -78,7 +80,122 @@
7880
},
7981
"redirect_urls": [
8082
""
81-
]
83+
],
84+
"token_management_enabled": false
85+
},
86+
"functions": {
87+
"Fn0000000000": {
88+
"title": "",
89+
"description": "",
90+
"input_parameters": {
91+
"Fn0000000000": {
92+
"type": "",
93+
"name": "",
94+
"is_required": false,
95+
"description": "",
96+
"title": "",
97+
"hint": "",
98+
"minLength": 123,
99+
"maxLength": 123,
100+
"minimum": 123,
101+
"maximum": 123
102+
},
103+
"Fn0000000000_": {
104+
"type": "",
105+
"name": "",
106+
"is_required": false,
107+
"description": "",
108+
"title": "",
109+
"hint": "",
110+
"minLength": 123,
111+
"maxLength": 123,
112+
"minimum": 123,
113+
"maximum": 123
114+
}
115+
},
116+
"output_parameters": {
117+
"Fn0000000000": {
118+
"type": "",
119+
"name": "",
120+
"is_required": false,
121+
"description": "",
122+
"title": "",
123+
"hint": "",
124+
"minLength": 123,
125+
"maxLength": 123,
126+
"minimum": 123,
127+
"maximum": 123
128+
},
129+
"Fn0000000000_": {
130+
"type": "",
131+
"name": "",
132+
"is_required": false,
133+
"description": "",
134+
"title": "",
135+
"hint": "",
136+
"minLength": 123,
137+
"maxLength": 123,
138+
"minimum": 123,
139+
"maximum": 123
140+
}
141+
}
142+
},
143+
"Fn0000000000_": {
144+
"title": "",
145+
"description": "",
146+
"input_parameters": {
147+
"Fn0000000000": {
148+
"type": "",
149+
"name": "",
150+
"is_required": false,
151+
"description": "",
152+
"title": "",
153+
"hint": "",
154+
"minLength": 123,
155+
"maxLength": 123,
156+
"minimum": 123,
157+
"maximum": 123
158+
},
159+
"Fn0000000000_": {
160+
"type": "",
161+
"name": "",
162+
"is_required": false,
163+
"description": "",
164+
"title": "",
165+
"hint": "",
166+
"minLength": 123,
167+
"maxLength": 123,
168+
"minimum": 123,
169+
"maximum": 123
170+
}
171+
},
172+
"output_parameters": {
173+
"Fn0000000000": {
174+
"type": "",
175+
"name": "",
176+
"is_required": false,
177+
"description": "",
178+
"title": "",
179+
"hint": "",
180+
"minLength": 123,
181+
"maxLength": 123,
182+
"minimum": 123,
183+
"maximum": 123
184+
},
185+
"Fn0000000000_": {
186+
"type": "",
187+
"name": "",
188+
"is_required": false,
189+
"description": "",
190+
"title": "",
191+
"hint": "",
192+
"minLength": 123,
193+
"maxLength": 123,
194+
"minimum": 123,
195+
"maximum": 123
196+
}
197+
}
198+
}
82199
}
83200
},
84201
"error": "",

json-logs/samples/api/apps.manifest.validate.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
{
1313
"code": "",
1414
"message": "",
15-
"pointer": ""
15+
"pointer": "",
16+
"related_component": ""
1617
}
1718
]
1819
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.slack.api.methods.request.apps.manifest;
22

33
import com.slack.api.methods.SlackApiRequest;
4-
import com.slack.api.model.AppManifest;
4+
import com.slack.api.model.manifest.AppManifestParams;
55
import lombok.Builder;
66
import lombok.Data;
77

@@ -11,6 +11,6 @@ public class AppsManifestCreateRequest implements SlackApiRequest {
1111

1212
private String token;
1313

14-
private AppManifest manifest;
14+
private AppManifestParams manifest;
1515
private String manifestAsString;
1616
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.slack.api.methods.request.apps.manifest;
22

33
import com.slack.api.methods.SlackApiRequest;
4-
import com.slack.api.model.AppManifest;
4+
import com.slack.api.model.manifest.AppManifestParams;
55
import lombok.Builder;
66
import lombok.Data;
77

@@ -11,7 +11,7 @@ public class AppsManifestUpdateRequest implements SlackApiRequest {
1111

1212
private String token;
1313

14-
private AppManifest manifest;
14+
private AppManifestParams manifest;
1515
private String manifestAsString;
1616
private String appId;
1717
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.slack.api.methods.request.apps.manifest;
22

33
import com.slack.api.methods.SlackApiRequest;
4-
import com.slack.api.model.AppManifest;
4+
import com.slack.api.model.manifest.AppManifestParams;
55
import lombok.Builder;
66
import lombok.Data;
77

@@ -11,7 +11,7 @@ public class AppsManifestValidateRequest implements SlackApiRequest {
1111

1212
private String token;
1313

14-
private AppManifest manifest;
14+
private AppManifestParams manifest;
1515
private String manifestAsString;
1616
private String appId;
1717
}

slack-api-client/src/main/java/com/slack/api/methods/response/apps/manifest/AppsManifestExportResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.slack.api.methods.response.apps.manifest;
22

33
import com.slack.api.methods.SlackApiTextResponse;
4-
import com.slack.api.model.AppManifest;
4+
import com.slack.api.model.manifest.AppManifest;
55
import com.slack.api.model.ResponseMetadata;
66
import lombok.Data;
77

0 commit comments

Comments
 (0)