-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebhooks.json
280 lines (280 loc) · 11.2 KB
/
webhooks.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
{
"$schema": "https://spec.openapis.org/oas/3.1/schema/latest#/definitions/Schema",
"webhooks": {
"application.submitted": {
"post": {
"description": "Published when a participant submits an application to your event.",
"operationId": "application.submitted",
"requestBody": {
"content": {
"application/json": {
"example": {
"at": "2024-05-23T02:37:43Z",
"for": "wafflehacks-2024",
"object": {
"addressLine1": "999 Canada Place",
"addressLine2": null,
"addressLine3": null,
"administrativeArea": "British Columbia",
"country": "Canada",
"createdAt": "2024-05-16T02:37:43Z",
"dateOfBirth": "2000-10-15",
"devpostUrl": null,
"education": "UNDERGRADUATE_THREE_YEAR_PLUS",
"event": "wafflehacks-2024",
"flagged": false,
"gender": "NON_BINARY",
"graduationYear": 2026,
"hackathonsAttended": 2,
"locality": "Vancouver",
"major": "Computer Science",
"notes": "",
"participantId": 3,
"portfolioUrl": null,
"postalCode": "V6C 3T4",
"raceEthnicity": "OTHER",
"referrer": null,
"schoolId": "592dc687-6c47-40b1-9416-4e23d8228d5c",
"shareInformation": true,
"status": "PENDING",
"updatedAt": "2024-05-23T02:37:43Z",
"vcsUrl": "https://github.com/akrantz01"
},
"type": "application.submitted"
},
"schema": {
"properties": {
"at": {
"description": "When the webhook was sent",
"format": "date-time",
"type": "string"
},
"for": {
"description": "The event the webhook applies to",
"type": "string"
},
"object": {
"description": "The object the webhook applies to",
"properties": {
"addressLine1": {
"description": "The first line of the shipping address",
"type": "string"
},
"addressLine2": {
"description": "The second line of the shipping address",
"nullable": true,
"type": "string"
},
"addressLine3": {
"description": "The last line of the shipping address",
"nullable": true,
"type": "string"
},
"administrativeArea": {
"description": "The state/province/region of the shipping address",
"nullable": true,
"type": "string"
},
"country": {
"description": "The ISO code of the country the shipping address is located in",
"type": "string"
},
"createdAt": {
"description": "When the application was submitted",
"format": "date-time",
"type": "string"
},
"dateOfBirth": {
"description": "Participant birthday",
"format": "date",
"type": "string"
},
"devpostUrl": {
"description": "The URL to the participant's DevPost profile",
"format": "uri",
"nullable": true,
"type": "string"
},
"education": {
"description": "The highest level of education the participant has achieved/is working on",
"enum": [
"BELOW_SECONDARY",
"SECONDARY",
"UNDERGRADUATE_TWO_YEAR",
"UNDERGRADUATE_THREE_YEAR_PLUS",
"GRADUATE",
"BOOTCAMP",
"VOCATIONAL",
"OTHER",
"NON_STUDENT"
],
"type": "string"
},
"event": {
"description": "The slug of the event the application is for",
"type": "string"
},
"flagged": {
"description": "Whether the application needs extra review",
"type": "boolean"
},
"gender": {
"description": "The participant's gender",
"enum": [
"MALE",
"FEMALE",
"NON_BINARY",
"OTHER"
],
"type": "string"
},
"graduationYear": {
"description": "When the participant will graduate/graduated",
"format": "int32",
"type": "integer"
},
"hackathonsAttended": {
"description": "How many hackathons the participant has attended",
"format": "int32",
"type": "integer"
},
"locality": {
"description": "The city/town of the shipping address",
"nullable": true,
"type": "string"
},
"major": {
"description": "What the participant is studying",
"nullable": true,
"type": "string"
},
"notes": {
"description": "Additional organizer-only notes",
"type": "string"
},
"participantId": {
"description": "The ID of the participant that submitted the application",
"format": "int32",
"type": "integer"
},
"portfolioUrl": {
"description": "The URL to the participant's portfolio",
"format": "uri",
"nullable": true,
"type": "string"
},
"postalCode": {
"description": "The postal code of the shipping address",
"type": "string"
},
"raceEthnicity": {
"description": "The participant's race/ethnicity",
"enum": [
"ASIAN_INDIAN",
"BLACK",
"CHINESE",
"FILIPINO",
"GUAMANIAN",
"HISPANIC",
"JAPANESE",
"KOREAN",
"MIDDLE_EASTERN",
"NATIVE_AMERICAN",
"NATIVE_HAWAIIAN",
"SAMOAN",
"VIETNAMESE",
"WHITE",
"OTHER_ASIAN",
"OTHER_PACIFIC_ISLANDER",
"OTHER"
],
"type": "string"
},
"referrer": {
"description": "How the participant found the event",
"enum": [
"SEARCH",
"PEER",
"SOCIAL_MEDIA",
"BLOG",
"ADVERTISEMENT",
"STUDENT_ORGANIZATION",
"SCHOOL",
"OTHER"
],
"nullable": true,
"type": "string"
},
"schoolId": {
"description": "The school the participant attends",
"format": "uuid",
"nullable": true,
"type": "string"
},
"shareInformation": {
"description": "Whether the participant wishes to share information with sponsors",
"type": "boolean"
},
"status": {
"description": "The application's acceptance status",
"enum": [
"PENDING",
"WAITLISTED",
"REJECTED",
"ACCEPTED"
],
"type": "string"
},
"updatedAt": {
"description": "When the application was last modified",
"format": "date-time",
"type": "string"
},
"vcsUrl": {
"description": "The public VCS URL (i.e. GitHub, GitLab, BitBucket, etc.)",
"format": "uri",
"nullable": true,
"type": "string"
}
},
"required": [
"addressLine1",
"country",
"createdAt",
"dateOfBirth",
"education",
"event",
"flagged",
"gender",
"graduationYear",
"hackathonsAttended",
"notes",
"participantId",
"postalCode",
"raceEthnicity",
"shareInformation",
"status",
"updatedAt"
],
"type": "object"
},
"type": {
"description": "The type of webhook",
"type": "string"
}
},
"required": [
"at",
"for",
"object",
"type"
],
"type": "object"
}
}
}
}
}
}
}
}