@open-mercato/webhooks 0.6.7-develop.6726.1.983ae8a07e → 0.6.7-develop.6749.1.6b54c56dfe
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/.turbo/turbo-build.log +1 -1
- package/dist/modules/webhooks/api/inbound/[endpointId]/route.js +113 -4
- package/dist/modules/webhooks/api/inbound/[endpointId]/route.js.map +3 -3
- package/dist/modules/webhooks/data/entities.js +101 -1
- package/dist/modules/webhooks/data/entities.js.map +2 -2
- package/dist/modules/webhooks/encryption.js +7 -0
- package/dist/modules/webhooks/encryption.js.map +2 -2
- package/dist/modules/webhooks/events.js +2 -0
- package/dist/modules/webhooks/events.js.map +2 -2
- package/dist/modules/webhooks/generators.js +57 -0
- package/dist/modules/webhooks/generators.js.map +7 -0
- package/dist/modules/webhooks/lib/inbound-dispatch.js +105 -0
- package/dist/modules/webhooks/lib/inbound-dispatch.js.map +7 -0
- package/dist/modules/webhooks/lib/inbound-registry.js +76 -0
- package/dist/modules/webhooks/lib/inbound-registry.js.map +7 -0
- package/dist/modules/webhooks/lib/module-webhook-registry.js +12 -0
- package/dist/modules/webhooks/lib/module-webhook-registry.js.map +7 -0
- package/dist/modules/webhooks/lib/queue.js +47 -0
- package/dist/modules/webhooks/lib/queue.js.map +2 -2
- package/dist/modules/webhooks/migrations/Migration20260617141327_webhooks.js +16 -0
- package/dist/modules/webhooks/migrations/Migration20260617141327_webhooks.js.map +7 -0
- package/dist/modules/webhooks/workers/inbound-dispatch.js +29 -0
- package/dist/modules/webhooks/workers/inbound-dispatch.js.map +7 -0
- package/generated/entities/inbound_endpoint_config_entity/index.ts +8 -0
- package/generated/entities/webhook_ingestion_entity/index.ts +16 -0
- package/generated/entities.ids.generated.ts +3 -1
- package/generated/entity-fields-registry.ts +28 -0
- package/package.json +6 -6
- package/src/modules/webhooks/api/inbound/[endpointId]/__tests__/route.unify.test.ts +108 -0
- package/src/modules/webhooks/api/inbound/[endpointId]/route.ts +136 -4
- package/src/modules/webhooks/data/entities.ts +84 -0
- package/src/modules/webhooks/encryption.ts +7 -0
- package/src/modules/webhooks/events.ts +2 -0
- package/src/modules/webhooks/generators.ts +57 -0
- package/src/modules/webhooks/lib/__tests__/inbound-dispatch.test.ts +186 -0
- package/src/modules/webhooks/lib/__tests__/inbound-registry.test.ts +102 -0
- package/src/modules/webhooks/lib/__tests__/module-webhook-registry.test.ts +53 -0
- package/src/modules/webhooks/lib/inbound-dispatch.ts +147 -0
- package/src/modules/webhooks/lib/inbound-registry.ts +92 -0
- package/src/modules/webhooks/lib/module-webhook-registry.ts +33 -0
- package/src/modules/webhooks/lib/queue.ts +60 -0
- package/src/modules/webhooks/migrations/.snapshot-open-mercato.json +907 -338
- package/src/modules/webhooks/migrations/Migration20260617141327_webhooks.ts +16 -0
- package/src/modules/webhooks/workers/inbound-dispatch.ts +31 -0
|
@@ -1,113 +1,104 @@
|
|
|
1
1
|
{
|
|
2
|
+
"name": "public",
|
|
2
3
|
"namespaces": [
|
|
3
4
|
"public"
|
|
4
5
|
],
|
|
5
|
-
"name": "public",
|
|
6
6
|
"tables": [
|
|
7
7
|
{
|
|
8
|
+
"name": "webhook_deliveries",
|
|
9
|
+
"schema": "public",
|
|
8
10
|
"columns": {
|
|
9
|
-
"
|
|
10
|
-
"name": "
|
|
11
|
-
"type": "
|
|
11
|
+
"attempt_number": {
|
|
12
|
+
"name": "attempt_number",
|
|
13
|
+
"type": "int",
|
|
12
14
|
"unsigned": false,
|
|
13
15
|
"autoincrement": false,
|
|
14
|
-
"primary":
|
|
16
|
+
"primary": false,
|
|
15
17
|
"nullable": false,
|
|
16
18
|
"unique": false,
|
|
17
19
|
"length": null,
|
|
18
20
|
"precision": null,
|
|
19
21
|
"scale": null,
|
|
20
|
-
"default": "
|
|
22
|
+
"default": "0",
|
|
21
23
|
"comment": null,
|
|
24
|
+
"collation": null,
|
|
22
25
|
"enumItems": [],
|
|
23
|
-
"mappedType": "
|
|
26
|
+
"mappedType": "integer"
|
|
24
27
|
},
|
|
25
|
-
"
|
|
26
|
-
"name": "
|
|
27
|
-
"type": "
|
|
28
|
+
"created_at": {
|
|
29
|
+
"name": "created_at",
|
|
30
|
+
"type": "timestamptz(6)",
|
|
28
31
|
"unsigned": false,
|
|
29
32
|
"autoincrement": false,
|
|
30
33
|
"primary": false,
|
|
31
34
|
"nullable": false,
|
|
32
35
|
"unique": false,
|
|
33
|
-
"length":
|
|
36
|
+
"length": 6,
|
|
34
37
|
"precision": null,
|
|
35
38
|
"scale": null,
|
|
36
39
|
"default": null,
|
|
37
40
|
"comment": null,
|
|
41
|
+
"collation": null,
|
|
38
42
|
"enumItems": [],
|
|
39
|
-
"mappedType": "
|
|
43
|
+
"mappedType": "datetime"
|
|
40
44
|
},
|
|
41
|
-
"
|
|
42
|
-
"name": "
|
|
43
|
-
"type": "
|
|
45
|
+
"delivered_at": {
|
|
46
|
+
"name": "delivered_at",
|
|
47
|
+
"type": "timestamptz(6)",
|
|
44
48
|
"unsigned": false,
|
|
45
49
|
"autoincrement": false,
|
|
46
50
|
"primary": false,
|
|
47
|
-
"nullable":
|
|
51
|
+
"nullable": true,
|
|
48
52
|
"unique": false,
|
|
49
|
-
"length":
|
|
53
|
+
"length": 6,
|
|
50
54
|
"precision": null,
|
|
51
55
|
"scale": null,
|
|
52
56
|
"default": null,
|
|
53
57
|
"comment": null,
|
|
58
|
+
"collation": null,
|
|
54
59
|
"enumItems": [],
|
|
55
|
-
"mappedType": "
|
|
60
|
+
"mappedType": "datetime"
|
|
56
61
|
},
|
|
57
|
-
"
|
|
58
|
-
"name": "
|
|
59
|
-
"type": "
|
|
62
|
+
"duration_ms": {
|
|
63
|
+
"name": "duration_ms",
|
|
64
|
+
"type": "int",
|
|
60
65
|
"unsigned": false,
|
|
61
66
|
"autoincrement": false,
|
|
62
67
|
"primary": false,
|
|
63
|
-
"nullable":
|
|
68
|
+
"nullable": true,
|
|
64
69
|
"unique": false,
|
|
65
70
|
"length": null,
|
|
66
71
|
"precision": null,
|
|
67
72
|
"scale": null,
|
|
68
73
|
"default": null,
|
|
69
74
|
"comment": null,
|
|
75
|
+
"collation": null,
|
|
70
76
|
"enumItems": [],
|
|
71
|
-
"mappedType": "
|
|
77
|
+
"mappedType": "integer"
|
|
72
78
|
},
|
|
73
|
-
"
|
|
74
|
-
"name": "
|
|
75
|
-
"type": "
|
|
79
|
+
"enqueued_at": {
|
|
80
|
+
"name": "enqueued_at",
|
|
81
|
+
"type": "timestamptz(6)",
|
|
76
82
|
"unsigned": false,
|
|
77
83
|
"autoincrement": false,
|
|
78
84
|
"primary": false,
|
|
79
85
|
"nullable": false,
|
|
80
86
|
"unique": false,
|
|
81
|
-
"length":
|
|
87
|
+
"length": 6,
|
|
82
88
|
"precision": null,
|
|
83
89
|
"scale": null,
|
|
84
90
|
"default": null,
|
|
85
91
|
"comment": null,
|
|
92
|
+
"collation": null,
|
|
86
93
|
"enumItems": [],
|
|
87
|
-
"mappedType": "
|
|
94
|
+
"mappedType": "datetime"
|
|
88
95
|
},
|
|
89
|
-
"
|
|
90
|
-
"name": "
|
|
96
|
+
"error_message": {
|
|
97
|
+
"name": "error_message",
|
|
91
98
|
"type": "text",
|
|
92
99
|
"unsigned": false,
|
|
93
100
|
"autoincrement": false,
|
|
94
101
|
"primary": false,
|
|
95
|
-
"nullable": false,
|
|
96
|
-
"unique": false,
|
|
97
|
-
"length": null,
|
|
98
|
-
"precision": null,
|
|
99
|
-
"scale": null,
|
|
100
|
-
"default": "'pending'",
|
|
101
|
-
"comment": null,
|
|
102
|
-
"enumItems": [],
|
|
103
|
-
"mappedType": "text"
|
|
104
|
-
},
|
|
105
|
-
"response_status": {
|
|
106
|
-
"name": "response_status",
|
|
107
|
-
"type": "int",
|
|
108
|
-
"unsigned": false,
|
|
109
|
-
"autoincrement": false,
|
|
110
|
-
"primary": false,
|
|
111
102
|
"nullable": true,
|
|
112
103
|
"unique": false,
|
|
113
104
|
"length": null,
|
|
@@ -115,59 +106,63 @@
|
|
|
115
106
|
"scale": null,
|
|
116
107
|
"default": null,
|
|
117
108
|
"comment": null,
|
|
109
|
+
"collation": null,
|
|
118
110
|
"enumItems": [],
|
|
119
|
-
"mappedType": "
|
|
111
|
+
"mappedType": "text"
|
|
120
112
|
},
|
|
121
|
-
"
|
|
122
|
-
"name": "
|
|
113
|
+
"event_type": {
|
|
114
|
+
"name": "event_type",
|
|
123
115
|
"type": "text",
|
|
124
116
|
"unsigned": false,
|
|
125
117
|
"autoincrement": false,
|
|
126
118
|
"primary": false,
|
|
127
|
-
"nullable":
|
|
119
|
+
"nullable": false,
|
|
128
120
|
"unique": false,
|
|
129
121
|
"length": null,
|
|
130
122
|
"precision": null,
|
|
131
123
|
"scale": null,
|
|
132
124
|
"default": null,
|
|
133
125
|
"comment": null,
|
|
126
|
+
"collation": null,
|
|
134
127
|
"enumItems": [],
|
|
135
128
|
"mappedType": "text"
|
|
136
129
|
},
|
|
137
|
-
"
|
|
138
|
-
"name": "
|
|
139
|
-
"type": "
|
|
130
|
+
"id": {
|
|
131
|
+
"name": "id",
|
|
132
|
+
"type": "uuid",
|
|
140
133
|
"unsigned": false,
|
|
141
134
|
"autoincrement": false,
|
|
142
|
-
"primary":
|
|
143
|
-
"nullable":
|
|
135
|
+
"primary": true,
|
|
136
|
+
"nullable": false,
|
|
144
137
|
"unique": false,
|
|
145
138
|
"length": null,
|
|
146
139
|
"precision": null,
|
|
147
140
|
"scale": null,
|
|
148
|
-
"default":
|
|
141
|
+
"default": "gen_random_uuid()",
|
|
149
142
|
"comment": null,
|
|
143
|
+
"collation": null,
|
|
150
144
|
"enumItems": [],
|
|
151
|
-
"mappedType": "
|
|
145
|
+
"mappedType": "uuid"
|
|
152
146
|
},
|
|
153
|
-
"
|
|
154
|
-
"name": "
|
|
155
|
-
"type": "
|
|
147
|
+
"last_attempt_at": {
|
|
148
|
+
"name": "last_attempt_at",
|
|
149
|
+
"type": "timestamptz(6)",
|
|
156
150
|
"unsigned": false,
|
|
157
151
|
"autoincrement": false,
|
|
158
152
|
"primary": false,
|
|
159
153
|
"nullable": true,
|
|
160
154
|
"unique": false,
|
|
161
|
-
"length":
|
|
155
|
+
"length": 6,
|
|
162
156
|
"precision": null,
|
|
163
157
|
"scale": null,
|
|
164
158
|
"default": null,
|
|
165
159
|
"comment": null,
|
|
160
|
+
"collation": null,
|
|
166
161
|
"enumItems": [],
|
|
167
|
-
"mappedType": "
|
|
162
|
+
"mappedType": "datetime"
|
|
168
163
|
},
|
|
169
|
-
"
|
|
170
|
-
"name": "
|
|
164
|
+
"max_attempts": {
|
|
165
|
+
"name": "max_attempts",
|
|
171
166
|
"type": "int",
|
|
172
167
|
"unsigned": false,
|
|
173
168
|
"autoincrement": false,
|
|
@@ -177,14 +172,15 @@
|
|
|
177
172
|
"length": null,
|
|
178
173
|
"precision": null,
|
|
179
174
|
"scale": null,
|
|
180
|
-
"default": "
|
|
175
|
+
"default": "10",
|
|
181
176
|
"comment": null,
|
|
177
|
+
"collation": null,
|
|
182
178
|
"enumItems": [],
|
|
183
179
|
"mappedType": "integer"
|
|
184
180
|
},
|
|
185
|
-
"
|
|
186
|
-
"name": "
|
|
187
|
-
"type": "
|
|
181
|
+
"message_id": {
|
|
182
|
+
"name": "message_id",
|
|
183
|
+
"type": "text",
|
|
188
184
|
"unsigned": false,
|
|
189
185
|
"autoincrement": false,
|
|
190
186
|
"primary": false,
|
|
@@ -193,14 +189,15 @@
|
|
|
193
189
|
"length": null,
|
|
194
190
|
"precision": null,
|
|
195
191
|
"scale": null,
|
|
196
|
-
"default":
|
|
192
|
+
"default": null,
|
|
197
193
|
"comment": null,
|
|
194
|
+
"collation": null,
|
|
198
195
|
"enumItems": [],
|
|
199
|
-
"mappedType": "
|
|
196
|
+
"mappedType": "text"
|
|
200
197
|
},
|
|
201
198
|
"next_retry_at": {
|
|
202
199
|
"name": "next_retry_at",
|
|
203
|
-
"type": "timestamptz",
|
|
200
|
+
"type": "timestamptz(6)",
|
|
204
201
|
"unsigned": false,
|
|
205
202
|
"autoincrement": false,
|
|
206
203
|
"primary": false,
|
|
@@ -211,28 +208,30 @@
|
|
|
211
208
|
"scale": null,
|
|
212
209
|
"default": null,
|
|
213
210
|
"comment": null,
|
|
211
|
+
"collation": null,
|
|
214
212
|
"enumItems": [],
|
|
215
213
|
"mappedType": "datetime"
|
|
216
214
|
},
|
|
217
|
-
"
|
|
218
|
-
"name": "
|
|
219
|
-
"type": "
|
|
215
|
+
"organization_id": {
|
|
216
|
+
"name": "organization_id",
|
|
217
|
+
"type": "uuid",
|
|
220
218
|
"unsigned": false,
|
|
221
219
|
"autoincrement": false,
|
|
222
220
|
"primary": false,
|
|
223
|
-
"nullable":
|
|
221
|
+
"nullable": false,
|
|
224
222
|
"unique": false,
|
|
225
223
|
"length": null,
|
|
226
224
|
"precision": null,
|
|
227
225
|
"scale": null,
|
|
228
226
|
"default": null,
|
|
229
227
|
"comment": null,
|
|
228
|
+
"collation": null,
|
|
230
229
|
"enumItems": [],
|
|
231
|
-
"mappedType": "
|
|
230
|
+
"mappedType": "uuid"
|
|
232
231
|
},
|
|
233
|
-
"
|
|
234
|
-
"name": "
|
|
235
|
-
"type": "
|
|
232
|
+
"payload": {
|
|
233
|
+
"name": "payload",
|
|
234
|
+
"type": "jsonb",
|
|
236
235
|
"unsigned": false,
|
|
237
236
|
"autoincrement": false,
|
|
238
237
|
"primary": false,
|
|
@@ -243,60 +242,81 @@
|
|
|
243
242
|
"scale": null,
|
|
244
243
|
"default": null,
|
|
245
244
|
"comment": null,
|
|
245
|
+
"collation": null,
|
|
246
246
|
"enumItems": [],
|
|
247
|
-
"mappedType": "
|
|
247
|
+
"mappedType": "json"
|
|
248
248
|
},
|
|
249
|
-
"
|
|
250
|
-
"name": "
|
|
251
|
-
"type": "
|
|
249
|
+
"response_body": {
|
|
250
|
+
"name": "response_body",
|
|
251
|
+
"type": "text",
|
|
252
252
|
"unsigned": false,
|
|
253
253
|
"autoincrement": false,
|
|
254
254
|
"primary": false,
|
|
255
|
-
"nullable":
|
|
255
|
+
"nullable": true,
|
|
256
256
|
"unique": false,
|
|
257
|
-
"length":
|
|
257
|
+
"length": null,
|
|
258
258
|
"precision": null,
|
|
259
259
|
"scale": null,
|
|
260
260
|
"default": null,
|
|
261
261
|
"comment": null,
|
|
262
|
+
"collation": null,
|
|
262
263
|
"enumItems": [],
|
|
263
|
-
"mappedType": "
|
|
264
|
+
"mappedType": "text"
|
|
264
265
|
},
|
|
265
|
-
"
|
|
266
|
-
"name": "
|
|
267
|
-
"type": "
|
|
266
|
+
"response_headers": {
|
|
267
|
+
"name": "response_headers",
|
|
268
|
+
"type": "jsonb",
|
|
268
269
|
"unsigned": false,
|
|
269
270
|
"autoincrement": false,
|
|
270
271
|
"primary": false,
|
|
271
272
|
"nullable": true,
|
|
272
273
|
"unique": false,
|
|
273
|
-
"length":
|
|
274
|
+
"length": null,
|
|
274
275
|
"precision": null,
|
|
275
276
|
"scale": null,
|
|
276
277
|
"default": null,
|
|
277
278
|
"comment": null,
|
|
279
|
+
"collation": null,
|
|
278
280
|
"enumItems": [],
|
|
279
|
-
"mappedType": "
|
|
281
|
+
"mappedType": "json"
|
|
280
282
|
},
|
|
281
|
-
"
|
|
282
|
-
"name": "
|
|
283
|
-
"type": "
|
|
283
|
+
"response_status": {
|
|
284
|
+
"name": "response_status",
|
|
285
|
+
"type": "int",
|
|
284
286
|
"unsigned": false,
|
|
285
287
|
"autoincrement": false,
|
|
286
288
|
"primary": false,
|
|
287
289
|
"nullable": true,
|
|
288
290
|
"unique": false,
|
|
289
|
-
"length":
|
|
291
|
+
"length": null,
|
|
290
292
|
"precision": null,
|
|
291
293
|
"scale": null,
|
|
292
294
|
"default": null,
|
|
293
295
|
"comment": null,
|
|
296
|
+
"collation": null,
|
|
294
297
|
"enumItems": [],
|
|
295
|
-
"mappedType": "
|
|
298
|
+
"mappedType": "integer"
|
|
296
299
|
},
|
|
297
|
-
"
|
|
298
|
-
"name": "
|
|
299
|
-
"type": "
|
|
300
|
+
"status": {
|
|
301
|
+
"name": "status",
|
|
302
|
+
"type": "text",
|
|
303
|
+
"unsigned": false,
|
|
304
|
+
"autoincrement": false,
|
|
305
|
+
"primary": false,
|
|
306
|
+
"nullable": false,
|
|
307
|
+
"unique": false,
|
|
308
|
+
"length": null,
|
|
309
|
+
"precision": null,
|
|
310
|
+
"scale": null,
|
|
311
|
+
"default": "'pending'",
|
|
312
|
+
"comment": null,
|
|
313
|
+
"collation": null,
|
|
314
|
+
"enumItems": [],
|
|
315
|
+
"mappedType": "text"
|
|
316
|
+
},
|
|
317
|
+
"target_url": {
|
|
318
|
+
"name": "target_url",
|
|
319
|
+
"type": "text",
|
|
300
320
|
"unsigned": false,
|
|
301
321
|
"autoincrement": false,
|
|
302
322
|
"primary": false,
|
|
@@ -307,8 +327,9 @@
|
|
|
307
327
|
"scale": null,
|
|
308
328
|
"default": null,
|
|
309
329
|
"comment": null,
|
|
330
|
+
"collation": null,
|
|
310
331
|
"enumItems": [],
|
|
311
|
-
"mappedType": "
|
|
332
|
+
"mappedType": "text"
|
|
312
333
|
},
|
|
313
334
|
"tenant_id": {
|
|
314
335
|
"name": "tenant_id",
|
|
@@ -323,12 +344,13 @@
|
|
|
323
344
|
"scale": null,
|
|
324
345
|
"default": null,
|
|
325
346
|
"comment": null,
|
|
347
|
+
"collation": null,
|
|
326
348
|
"enumItems": [],
|
|
327
349
|
"mappedType": "uuid"
|
|
328
350
|
},
|
|
329
|
-
"
|
|
330
|
-
"name": "
|
|
331
|
-
"type": "timestamptz",
|
|
351
|
+
"updated_at": {
|
|
352
|
+
"name": "updated_at",
|
|
353
|
+
"type": "timestamptz(6)",
|
|
332
354
|
"unsigned": false,
|
|
333
355
|
"autoincrement": false,
|
|
334
356
|
"primary": false,
|
|
@@ -339,125 +361,491 @@
|
|
|
339
361
|
"scale": null,
|
|
340
362
|
"default": null,
|
|
341
363
|
"comment": null,
|
|
364
|
+
"collation": null,
|
|
342
365
|
"enumItems": [],
|
|
343
366
|
"mappedType": "datetime"
|
|
344
367
|
},
|
|
345
|
-
"
|
|
346
|
-
"name": "
|
|
347
|
-
"type": "
|
|
368
|
+
"webhook_id": {
|
|
369
|
+
"name": "webhook_id",
|
|
370
|
+
"type": "uuid",
|
|
348
371
|
"unsigned": false,
|
|
349
372
|
"autoincrement": false,
|
|
350
373
|
"primary": false,
|
|
351
374
|
"nullable": false,
|
|
352
375
|
"unique": false,
|
|
353
|
-
"length":
|
|
376
|
+
"length": null,
|
|
354
377
|
"precision": null,
|
|
355
378
|
"scale": null,
|
|
356
379
|
"default": null,
|
|
357
380
|
"comment": null,
|
|
381
|
+
"collation": null,
|
|
358
382
|
"enumItems": [],
|
|
359
|
-
"mappedType": "
|
|
383
|
+
"mappedType": "uuid"
|
|
360
384
|
}
|
|
361
385
|
},
|
|
362
|
-
"name": "webhook_deliveries",
|
|
363
|
-
"schema": "public",
|
|
364
386
|
"indexes": [
|
|
365
387
|
{
|
|
366
|
-
"keyName": "webhook_deliveries_event_type_organization_id_index",
|
|
367
388
|
"columnNames": [
|
|
368
389
|
"event_type",
|
|
369
390
|
"organization_id"
|
|
370
391
|
],
|
|
371
392
|
"composite": true,
|
|
372
393
|
"constraint": false,
|
|
394
|
+
"keyName": "webhook_deliveries_event_type_organization_id_index",
|
|
373
395
|
"primary": false,
|
|
374
396
|
"unique": false
|
|
375
397
|
},
|
|
376
398
|
{
|
|
377
|
-
"keyName": "webhook_deliveries_webhook_id_created_at_index",
|
|
378
399
|
"columnNames": [
|
|
379
|
-
"
|
|
400
|
+
"organization_id",
|
|
401
|
+
"tenant_id",
|
|
380
402
|
"created_at"
|
|
381
403
|
],
|
|
382
404
|
"composite": true,
|
|
383
405
|
"constraint": false,
|
|
406
|
+
"keyName": "webhook_deliveries_organization_id_tenant_id_created_at_index",
|
|
384
407
|
"primary": false,
|
|
385
408
|
"unique": false
|
|
386
409
|
},
|
|
387
410
|
{
|
|
388
|
-
"keyName": "webhook_deliveries_organization_id_tenant_id_created_at_index",
|
|
389
411
|
"columnNames": [
|
|
390
|
-
"
|
|
391
|
-
|
|
412
|
+
"id"
|
|
413
|
+
],
|
|
414
|
+
"composite": false,
|
|
415
|
+
"constraint": true,
|
|
416
|
+
"keyName": "webhook_deliveries_pkey",
|
|
417
|
+
"primary": true,
|
|
418
|
+
"unique": true
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
"columnNames": [
|
|
422
|
+
"webhook_id",
|
|
392
423
|
"created_at"
|
|
393
424
|
],
|
|
394
425
|
"composite": true,
|
|
395
426
|
"constraint": false,
|
|
427
|
+
"keyName": "webhook_deliveries_webhook_id_created_at_index",
|
|
396
428
|
"primary": false,
|
|
397
429
|
"unique": false
|
|
398
430
|
},
|
|
399
431
|
{
|
|
400
|
-
"keyName": "webhook_deliveries_webhook_id_status_index",
|
|
401
432
|
"columnNames": [
|
|
402
433
|
"webhook_id",
|
|
403
434
|
"status"
|
|
404
435
|
],
|
|
405
436
|
"composite": true,
|
|
406
437
|
"constraint": false,
|
|
438
|
+
"keyName": "webhook_deliveries_webhook_id_status_index",
|
|
407
439
|
"primary": false,
|
|
408
440
|
"unique": false
|
|
409
|
-
},
|
|
410
|
-
{
|
|
411
|
-
"keyName": "webhook_deliveries_pkey",
|
|
412
|
-
"columnNames": [
|
|
413
|
-
"id"
|
|
414
|
-
],
|
|
415
|
-
"composite": false,
|
|
416
|
-
"constraint": true,
|
|
417
|
-
"primary": true,
|
|
418
|
-
"unique": true
|
|
419
441
|
}
|
|
420
442
|
],
|
|
421
443
|
"checks": [],
|
|
444
|
+
"triggers": [],
|
|
422
445
|
"foreignKeys": {},
|
|
423
|
-
"
|
|
446
|
+
"comment": null
|
|
424
447
|
},
|
|
425
448
|
{
|
|
449
|
+
"name": "webhook_inbound_configs",
|
|
450
|
+
"schema": "public",
|
|
426
451
|
"columns": {
|
|
427
|
-
"
|
|
428
|
-
"name": "
|
|
429
|
-
"type": "
|
|
452
|
+
"created_at": {
|
|
453
|
+
"name": "created_at",
|
|
454
|
+
"type": "timestamptz(6)",
|
|
430
455
|
"unsigned": false,
|
|
431
456
|
"autoincrement": false,
|
|
432
|
-
"primary":
|
|
457
|
+
"primary": false,
|
|
433
458
|
"nullable": false,
|
|
434
459
|
"unique": false,
|
|
435
|
-
"length":
|
|
460
|
+
"length": 6,
|
|
436
461
|
"precision": null,
|
|
437
462
|
"scale": null,
|
|
438
|
-
"default":
|
|
463
|
+
"default": null,
|
|
439
464
|
"comment": null,
|
|
465
|
+
"collation": null,
|
|
440
466
|
"enumItems": [],
|
|
441
|
-
"mappedType": "
|
|
467
|
+
"mappedType": "datetime"
|
|
442
468
|
},
|
|
443
|
-
"
|
|
444
|
-
"name": "
|
|
469
|
+
"id": {
|
|
470
|
+
"name": "id",
|
|
471
|
+
"type": "uuid",
|
|
472
|
+
"unsigned": false,
|
|
473
|
+
"autoincrement": false,
|
|
474
|
+
"primary": true,
|
|
475
|
+
"nullable": false,
|
|
476
|
+
"unique": false,
|
|
477
|
+
"length": null,
|
|
478
|
+
"precision": null,
|
|
479
|
+
"scale": null,
|
|
480
|
+
"default": "gen_random_uuid()",
|
|
481
|
+
"comment": null,
|
|
482
|
+
"collation": null,
|
|
483
|
+
"enumItems": [],
|
|
484
|
+
"mappedType": "uuid"
|
|
485
|
+
},
|
|
486
|
+
"integration_id": {
|
|
487
|
+
"name": "integration_id",
|
|
488
|
+
"type": "text",
|
|
489
|
+
"unsigned": false,
|
|
490
|
+
"autoincrement": false,
|
|
491
|
+
"primary": false,
|
|
492
|
+
"nullable": true,
|
|
493
|
+
"unique": false,
|
|
494
|
+
"length": null,
|
|
495
|
+
"precision": null,
|
|
496
|
+
"scale": null,
|
|
497
|
+
"default": null,
|
|
498
|
+
"comment": null,
|
|
499
|
+
"collation": null,
|
|
500
|
+
"enumItems": [],
|
|
501
|
+
"mappedType": "text"
|
|
502
|
+
},
|
|
503
|
+
"is_active": {
|
|
504
|
+
"name": "is_active",
|
|
505
|
+
"type": "boolean",
|
|
506
|
+
"unsigned": false,
|
|
507
|
+
"autoincrement": false,
|
|
508
|
+
"primary": false,
|
|
509
|
+
"nullable": false,
|
|
510
|
+
"unique": false,
|
|
511
|
+
"length": null,
|
|
512
|
+
"precision": null,
|
|
513
|
+
"scale": null,
|
|
514
|
+
"default": "true",
|
|
515
|
+
"comment": null,
|
|
516
|
+
"collation": null,
|
|
517
|
+
"enumItems": [],
|
|
518
|
+
"mappedType": "boolean"
|
|
519
|
+
},
|
|
520
|
+
"organization_id": {
|
|
521
|
+
"name": "organization_id",
|
|
522
|
+
"type": "uuid",
|
|
523
|
+
"unsigned": false,
|
|
524
|
+
"autoincrement": false,
|
|
525
|
+
"primary": false,
|
|
526
|
+
"nullable": false,
|
|
527
|
+
"unique": false,
|
|
528
|
+
"length": null,
|
|
529
|
+
"precision": null,
|
|
530
|
+
"scale": null,
|
|
531
|
+
"default": null,
|
|
532
|
+
"comment": null,
|
|
533
|
+
"collation": null,
|
|
534
|
+
"enumItems": [],
|
|
535
|
+
"mappedType": "uuid"
|
|
536
|
+
},
|
|
537
|
+
"source_key": {
|
|
538
|
+
"name": "source_key",
|
|
539
|
+
"type": "text",
|
|
540
|
+
"unsigned": false,
|
|
541
|
+
"autoincrement": false,
|
|
542
|
+
"primary": false,
|
|
543
|
+
"nullable": false,
|
|
544
|
+
"unique": true,
|
|
545
|
+
"length": null,
|
|
546
|
+
"precision": null,
|
|
547
|
+
"scale": null,
|
|
548
|
+
"default": null,
|
|
549
|
+
"comment": null,
|
|
550
|
+
"collation": null,
|
|
551
|
+
"enumItems": [],
|
|
552
|
+
"mappedType": "text"
|
|
553
|
+
},
|
|
554
|
+
"tenant_id": {
|
|
555
|
+
"name": "tenant_id",
|
|
556
|
+
"type": "uuid",
|
|
557
|
+
"unsigned": false,
|
|
558
|
+
"autoincrement": false,
|
|
559
|
+
"primary": false,
|
|
560
|
+
"nullable": false,
|
|
561
|
+
"unique": false,
|
|
562
|
+
"length": null,
|
|
563
|
+
"precision": null,
|
|
564
|
+
"scale": null,
|
|
565
|
+
"default": null,
|
|
566
|
+
"comment": null,
|
|
567
|
+
"collation": null,
|
|
568
|
+
"enumItems": [],
|
|
569
|
+
"mappedType": "uuid"
|
|
570
|
+
},
|
|
571
|
+
"updated_at": {
|
|
572
|
+
"name": "updated_at",
|
|
573
|
+
"type": "timestamptz(6)",
|
|
574
|
+
"unsigned": false,
|
|
575
|
+
"autoincrement": false,
|
|
576
|
+
"primary": false,
|
|
577
|
+
"nullable": false,
|
|
578
|
+
"unique": false,
|
|
579
|
+
"length": 6,
|
|
580
|
+
"precision": null,
|
|
581
|
+
"scale": null,
|
|
582
|
+
"default": null,
|
|
583
|
+
"comment": null,
|
|
584
|
+
"collation": null,
|
|
585
|
+
"enumItems": [],
|
|
586
|
+
"mappedType": "datetime"
|
|
587
|
+
}
|
|
588
|
+
},
|
|
589
|
+
"indexes": [
|
|
590
|
+
{
|
|
591
|
+
"columnNames": [
|
|
592
|
+
"id"
|
|
593
|
+
],
|
|
594
|
+
"composite": false,
|
|
595
|
+
"constraint": true,
|
|
596
|
+
"keyName": "webhook_inbound_configs_pkey",
|
|
597
|
+
"primary": true,
|
|
598
|
+
"unique": true
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
"columnNames": [
|
|
602
|
+
"source_key",
|
|
603
|
+
"is_active"
|
|
604
|
+
],
|
|
605
|
+
"composite": true,
|
|
606
|
+
"constraint": false,
|
|
607
|
+
"keyName": "webhook_inbound_configs_source_key_is_active_index",
|
|
608
|
+
"primary": false,
|
|
609
|
+
"unique": false
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
"columnNames": [
|
|
613
|
+
"source_key",
|
|
614
|
+
"organization_id",
|
|
615
|
+
"tenant_id"
|
|
616
|
+
],
|
|
617
|
+
"composite": true,
|
|
618
|
+
"constraint": true,
|
|
619
|
+
"keyName": "webhook_inbound_configs_source_scope_unique",
|
|
620
|
+
"primary": false,
|
|
621
|
+
"unique": true
|
|
622
|
+
}
|
|
623
|
+
],
|
|
624
|
+
"checks": [],
|
|
625
|
+
"triggers": [],
|
|
626
|
+
"foreignKeys": {},
|
|
627
|
+
"comment": null
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
"name": "webhook_inbound_receipts",
|
|
631
|
+
"schema": "public",
|
|
632
|
+
"columns": {
|
|
633
|
+
"created_at": {
|
|
634
|
+
"name": "created_at",
|
|
635
|
+
"type": "timestamptz(6)",
|
|
636
|
+
"unsigned": false,
|
|
637
|
+
"autoincrement": false,
|
|
638
|
+
"primary": false,
|
|
639
|
+
"nullable": false,
|
|
640
|
+
"unique": false,
|
|
641
|
+
"length": 6,
|
|
642
|
+
"precision": null,
|
|
643
|
+
"scale": null,
|
|
644
|
+
"default": null,
|
|
645
|
+
"comment": null,
|
|
646
|
+
"collation": null,
|
|
647
|
+
"enumItems": [],
|
|
648
|
+
"mappedType": "datetime"
|
|
649
|
+
},
|
|
650
|
+
"endpoint_id": {
|
|
651
|
+
"name": "endpoint_id",
|
|
652
|
+
"type": "text",
|
|
653
|
+
"unsigned": false,
|
|
654
|
+
"autoincrement": false,
|
|
655
|
+
"primary": false,
|
|
656
|
+
"nullable": false,
|
|
657
|
+
"unique": true,
|
|
658
|
+
"length": null,
|
|
659
|
+
"precision": null,
|
|
660
|
+
"scale": null,
|
|
661
|
+
"default": null,
|
|
662
|
+
"comment": null,
|
|
663
|
+
"collation": null,
|
|
664
|
+
"enumItems": [],
|
|
665
|
+
"mappedType": "text"
|
|
666
|
+
},
|
|
667
|
+
"event_type": {
|
|
668
|
+
"name": "event_type",
|
|
669
|
+
"type": "text",
|
|
670
|
+
"unsigned": false,
|
|
671
|
+
"autoincrement": false,
|
|
672
|
+
"primary": false,
|
|
673
|
+
"nullable": true,
|
|
674
|
+
"unique": false,
|
|
675
|
+
"length": null,
|
|
676
|
+
"precision": null,
|
|
677
|
+
"scale": null,
|
|
678
|
+
"default": null,
|
|
679
|
+
"comment": null,
|
|
680
|
+
"collation": null,
|
|
681
|
+
"enumItems": [],
|
|
682
|
+
"mappedType": "text"
|
|
683
|
+
},
|
|
684
|
+
"id": {
|
|
685
|
+
"name": "id",
|
|
686
|
+
"type": "uuid",
|
|
687
|
+
"unsigned": false,
|
|
688
|
+
"autoincrement": false,
|
|
689
|
+
"primary": true,
|
|
690
|
+
"nullable": false,
|
|
691
|
+
"unique": false,
|
|
692
|
+
"length": null,
|
|
693
|
+
"precision": null,
|
|
694
|
+
"scale": null,
|
|
695
|
+
"default": "gen_random_uuid()",
|
|
696
|
+
"comment": null,
|
|
697
|
+
"collation": null,
|
|
698
|
+
"enumItems": [],
|
|
699
|
+
"mappedType": "uuid"
|
|
700
|
+
},
|
|
701
|
+
"message_id": {
|
|
702
|
+
"name": "message_id",
|
|
445
703
|
"type": "text",
|
|
446
704
|
"unsigned": false,
|
|
447
705
|
"autoincrement": false,
|
|
448
706
|
"primary": false,
|
|
449
|
-
"nullable": false,
|
|
707
|
+
"nullable": false,
|
|
708
|
+
"unique": false,
|
|
709
|
+
"length": null,
|
|
710
|
+
"precision": null,
|
|
711
|
+
"scale": null,
|
|
712
|
+
"default": null,
|
|
713
|
+
"comment": null,
|
|
714
|
+
"collation": null,
|
|
715
|
+
"enumItems": [],
|
|
716
|
+
"mappedType": "text"
|
|
717
|
+
},
|
|
718
|
+
"organization_id": {
|
|
719
|
+
"name": "organization_id",
|
|
720
|
+
"type": "uuid",
|
|
721
|
+
"unsigned": false,
|
|
722
|
+
"autoincrement": false,
|
|
723
|
+
"primary": false,
|
|
724
|
+
"nullable": true,
|
|
725
|
+
"unique": false,
|
|
726
|
+
"length": null,
|
|
727
|
+
"precision": null,
|
|
728
|
+
"scale": null,
|
|
729
|
+
"default": null,
|
|
730
|
+
"comment": null,
|
|
731
|
+
"collation": null,
|
|
732
|
+
"enumItems": [],
|
|
733
|
+
"mappedType": "uuid"
|
|
734
|
+
},
|
|
735
|
+
"provider_key": {
|
|
736
|
+
"name": "provider_key",
|
|
737
|
+
"type": "text",
|
|
738
|
+
"unsigned": false,
|
|
739
|
+
"autoincrement": false,
|
|
740
|
+
"primary": false,
|
|
741
|
+
"nullable": false,
|
|
742
|
+
"unique": false,
|
|
743
|
+
"length": null,
|
|
744
|
+
"precision": null,
|
|
745
|
+
"scale": null,
|
|
746
|
+
"default": null,
|
|
747
|
+
"comment": null,
|
|
748
|
+
"collation": null,
|
|
749
|
+
"enumItems": [],
|
|
750
|
+
"mappedType": "text"
|
|
751
|
+
},
|
|
752
|
+
"tenant_id": {
|
|
753
|
+
"name": "tenant_id",
|
|
754
|
+
"type": "uuid",
|
|
755
|
+
"unsigned": false,
|
|
756
|
+
"autoincrement": false,
|
|
757
|
+
"primary": false,
|
|
758
|
+
"nullable": true,
|
|
759
|
+
"unique": false,
|
|
760
|
+
"length": null,
|
|
761
|
+
"precision": null,
|
|
762
|
+
"scale": null,
|
|
763
|
+
"default": null,
|
|
764
|
+
"comment": null,
|
|
765
|
+
"collation": null,
|
|
766
|
+
"enumItems": [],
|
|
767
|
+
"mappedType": "uuid"
|
|
768
|
+
}
|
|
769
|
+
},
|
|
770
|
+
"indexes": [
|
|
771
|
+
{
|
|
772
|
+
"columnNames": [
|
|
773
|
+
"endpoint_id",
|
|
774
|
+
"message_id"
|
|
775
|
+
],
|
|
776
|
+
"composite": true,
|
|
777
|
+
"constraint": true,
|
|
778
|
+
"keyName": "webhook_inbound_receipts_endpoint_message_unique",
|
|
779
|
+
"primary": false,
|
|
780
|
+
"unique": true
|
|
781
|
+
},
|
|
782
|
+
{
|
|
783
|
+
"columnNames": [
|
|
784
|
+
"id"
|
|
785
|
+
],
|
|
786
|
+
"composite": false,
|
|
787
|
+
"constraint": true,
|
|
788
|
+
"keyName": "webhook_inbound_receipts_pkey",
|
|
789
|
+
"primary": true,
|
|
790
|
+
"unique": true
|
|
791
|
+
},
|
|
792
|
+
{
|
|
793
|
+
"columnNames": [
|
|
794
|
+
"provider_key",
|
|
795
|
+
"created_at"
|
|
796
|
+
],
|
|
797
|
+
"composite": true,
|
|
798
|
+
"constraint": false,
|
|
799
|
+
"keyName": "webhook_inbound_receipts_provider_key_created_at_index",
|
|
800
|
+
"primary": false,
|
|
801
|
+
"unique": false
|
|
802
|
+
}
|
|
803
|
+
],
|
|
804
|
+
"checks": [],
|
|
805
|
+
"triggers": [],
|
|
806
|
+
"foreignKeys": {},
|
|
807
|
+
"comment": null
|
|
808
|
+
},
|
|
809
|
+
{
|
|
810
|
+
"name": "webhook_ingestions",
|
|
811
|
+
"schema": "public",
|
|
812
|
+
"columns": {
|
|
813
|
+
"created_at": {
|
|
814
|
+
"name": "created_at",
|
|
815
|
+
"type": "timestamptz(6)",
|
|
816
|
+
"unsigned": false,
|
|
817
|
+
"autoincrement": false,
|
|
818
|
+
"primary": false,
|
|
819
|
+
"nullable": false,
|
|
820
|
+
"unique": false,
|
|
821
|
+
"length": 6,
|
|
822
|
+
"precision": null,
|
|
823
|
+
"scale": null,
|
|
824
|
+
"default": null,
|
|
825
|
+
"comment": null,
|
|
826
|
+
"collation": null,
|
|
827
|
+
"enumItems": [],
|
|
828
|
+
"mappedType": "datetime"
|
|
829
|
+
},
|
|
830
|
+
"duration_ms": {
|
|
831
|
+
"name": "duration_ms",
|
|
832
|
+
"type": "int",
|
|
833
|
+
"unsigned": false,
|
|
834
|
+
"autoincrement": false,
|
|
835
|
+
"primary": false,
|
|
836
|
+
"nullable": true,
|
|
450
837
|
"unique": false,
|
|
451
838
|
"length": null,
|
|
452
839
|
"precision": null,
|
|
453
840
|
"scale": null,
|
|
454
841
|
"default": null,
|
|
455
842
|
"comment": null,
|
|
843
|
+
"collation": null,
|
|
456
844
|
"enumItems": [],
|
|
457
|
-
"mappedType": "
|
|
845
|
+
"mappedType": "integer"
|
|
458
846
|
},
|
|
459
|
-
"
|
|
460
|
-
"name": "
|
|
847
|
+
"error_message": {
|
|
848
|
+
"name": "error_message",
|
|
461
849
|
"type": "text",
|
|
462
850
|
"unsigned": false,
|
|
463
851
|
"autoincrement": false,
|
|
@@ -469,11 +857,12 @@
|
|
|
469
857
|
"scale": null,
|
|
470
858
|
"default": null,
|
|
471
859
|
"comment": null,
|
|
860
|
+
"collation": null,
|
|
472
861
|
"enumItems": [],
|
|
473
862
|
"mappedType": "text"
|
|
474
863
|
},
|
|
475
|
-
"
|
|
476
|
-
"name": "
|
|
864
|
+
"event_type": {
|
|
865
|
+
"name": "event_type",
|
|
477
866
|
"type": "text",
|
|
478
867
|
"unsigned": false,
|
|
479
868
|
"autoincrement": false,
|
|
@@ -485,28 +874,47 @@
|
|
|
485
874
|
"scale": null,
|
|
486
875
|
"default": null,
|
|
487
876
|
"comment": null,
|
|
877
|
+
"collation": null,
|
|
488
878
|
"enumItems": [],
|
|
489
879
|
"mappedType": "text"
|
|
490
880
|
},
|
|
491
|
-
"
|
|
492
|
-
"name": "
|
|
881
|
+
"external_message_id": {
|
|
882
|
+
"name": "external_message_id",
|
|
493
883
|
"type": "text",
|
|
494
884
|
"unsigned": false,
|
|
495
885
|
"autoincrement": false,
|
|
496
886
|
"primary": false,
|
|
497
|
-
"nullable":
|
|
887
|
+
"nullable": true,
|
|
498
888
|
"unique": false,
|
|
499
889
|
"length": null,
|
|
500
890
|
"precision": null,
|
|
501
891
|
"scale": null,
|
|
502
892
|
"default": null,
|
|
503
893
|
"comment": null,
|
|
894
|
+
"collation": null,
|
|
504
895
|
"enumItems": [],
|
|
505
896
|
"mappedType": "text"
|
|
506
897
|
},
|
|
507
|
-
"
|
|
508
|
-
"name": "
|
|
509
|
-
"type": "
|
|
898
|
+
"handler_count": {
|
|
899
|
+
"name": "handler_count",
|
|
900
|
+
"type": "int",
|
|
901
|
+
"unsigned": false,
|
|
902
|
+
"autoincrement": false,
|
|
903
|
+
"primary": false,
|
|
904
|
+
"nullable": false,
|
|
905
|
+
"unique": false,
|
|
906
|
+
"length": null,
|
|
907
|
+
"precision": null,
|
|
908
|
+
"scale": null,
|
|
909
|
+
"default": "0",
|
|
910
|
+
"comment": null,
|
|
911
|
+
"collation": null,
|
|
912
|
+
"enumItems": [],
|
|
913
|
+
"mappedType": "integer"
|
|
914
|
+
},
|
|
915
|
+
"handler_results": {
|
|
916
|
+
"name": "handler_results",
|
|
917
|
+
"type": "jsonb",
|
|
510
918
|
"unsigned": false,
|
|
511
919
|
"autoincrement": false,
|
|
512
920
|
"primary": false,
|
|
@@ -517,27 +925,63 @@
|
|
|
517
925
|
"scale": null,
|
|
518
926
|
"default": null,
|
|
519
927
|
"comment": null,
|
|
928
|
+
"collation": null,
|
|
520
929
|
"enumItems": [],
|
|
521
|
-
"mappedType": "
|
|
930
|
+
"mappedType": "json"
|
|
522
931
|
},
|
|
523
|
-
"
|
|
524
|
-
"name": "
|
|
525
|
-
"type": "
|
|
932
|
+
"headers": {
|
|
933
|
+
"name": "headers",
|
|
934
|
+
"type": "jsonb",
|
|
526
935
|
"unsigned": false,
|
|
527
936
|
"autoincrement": false,
|
|
528
937
|
"primary": false,
|
|
529
938
|
"nullable": true,
|
|
530
939
|
"unique": false,
|
|
531
|
-
"length":
|
|
940
|
+
"length": null,
|
|
532
941
|
"precision": null,
|
|
533
942
|
"scale": null,
|
|
534
943
|
"default": null,
|
|
535
944
|
"comment": null,
|
|
945
|
+
"collation": null,
|
|
536
946
|
"enumItems": [],
|
|
537
|
-
"mappedType": "
|
|
947
|
+
"mappedType": "json"
|
|
538
948
|
},
|
|
539
|
-
"
|
|
540
|
-
"name": "
|
|
949
|
+
"id": {
|
|
950
|
+
"name": "id",
|
|
951
|
+
"type": "uuid",
|
|
952
|
+
"unsigned": false,
|
|
953
|
+
"autoincrement": false,
|
|
954
|
+
"primary": true,
|
|
955
|
+
"nullable": false,
|
|
956
|
+
"unique": false,
|
|
957
|
+
"length": null,
|
|
958
|
+
"precision": null,
|
|
959
|
+
"scale": null,
|
|
960
|
+
"default": "gen_random_uuid()",
|
|
961
|
+
"comment": null,
|
|
962
|
+
"collation": null,
|
|
963
|
+
"enumItems": [],
|
|
964
|
+
"mappedType": "uuid"
|
|
965
|
+
},
|
|
966
|
+
"organization_id": {
|
|
967
|
+
"name": "organization_id",
|
|
968
|
+
"type": "uuid",
|
|
969
|
+
"unsigned": false,
|
|
970
|
+
"autoincrement": false,
|
|
971
|
+
"primary": false,
|
|
972
|
+
"nullable": false,
|
|
973
|
+
"unique": false,
|
|
974
|
+
"length": null,
|
|
975
|
+
"precision": null,
|
|
976
|
+
"scale": null,
|
|
977
|
+
"default": null,
|
|
978
|
+
"comment": null,
|
|
979
|
+
"collation": null,
|
|
980
|
+
"enumItems": [],
|
|
981
|
+
"mappedType": "uuid"
|
|
982
|
+
},
|
|
983
|
+
"payload": {
|
|
984
|
+
"name": "payload",
|
|
541
985
|
"type": "jsonb",
|
|
542
986
|
"unsigned": false,
|
|
543
987
|
"autoincrement": false,
|
|
@@ -549,11 +993,29 @@
|
|
|
549
993
|
"scale": null,
|
|
550
994
|
"default": null,
|
|
551
995
|
"comment": null,
|
|
996
|
+
"collation": null,
|
|
552
997
|
"enumItems": [],
|
|
553
998
|
"mappedType": "json"
|
|
554
999
|
},
|
|
555
|
-
"
|
|
556
|
-
"name": "
|
|
1000
|
+
"processed_at": {
|
|
1001
|
+
"name": "processed_at",
|
|
1002
|
+
"type": "timestamptz(6)",
|
|
1003
|
+
"unsigned": false,
|
|
1004
|
+
"autoincrement": false,
|
|
1005
|
+
"primary": false,
|
|
1006
|
+
"nullable": true,
|
|
1007
|
+
"unique": false,
|
|
1008
|
+
"length": 6,
|
|
1009
|
+
"precision": null,
|
|
1010
|
+
"scale": null,
|
|
1011
|
+
"default": null,
|
|
1012
|
+
"comment": null,
|
|
1013
|
+
"collation": null,
|
|
1014
|
+
"enumItems": [],
|
|
1015
|
+
"mappedType": "datetime"
|
|
1016
|
+
},
|
|
1017
|
+
"source_key": {
|
|
1018
|
+
"name": "source_key",
|
|
557
1019
|
"type": "text",
|
|
558
1020
|
"unsigned": false,
|
|
559
1021
|
"autoincrement": false,
|
|
@@ -563,30 +1025,122 @@
|
|
|
563
1025
|
"length": null,
|
|
564
1026
|
"precision": null,
|
|
565
1027
|
"scale": null,
|
|
566
|
-
"default":
|
|
1028
|
+
"default": null,
|
|
567
1029
|
"comment": null,
|
|
1030
|
+
"collation": null,
|
|
568
1031
|
"enumItems": [],
|
|
569
1032
|
"mappedType": "text"
|
|
570
1033
|
},
|
|
571
|
-
"
|
|
572
|
-
"name": "
|
|
573
|
-
"type": "
|
|
1034
|
+
"status": {
|
|
1035
|
+
"name": "status",
|
|
1036
|
+
"type": "text",
|
|
574
1037
|
"unsigned": false,
|
|
575
1038
|
"autoincrement": false,
|
|
576
1039
|
"primary": false,
|
|
577
|
-
"nullable":
|
|
1040
|
+
"nullable": false,
|
|
1041
|
+
"unique": false,
|
|
1042
|
+
"length": null,
|
|
1043
|
+
"precision": null,
|
|
1044
|
+
"scale": null,
|
|
1045
|
+
"default": "'received'",
|
|
1046
|
+
"comment": null,
|
|
1047
|
+
"collation": null,
|
|
1048
|
+
"enumItems": [],
|
|
1049
|
+
"mappedType": "text"
|
|
1050
|
+
},
|
|
1051
|
+
"tenant_id": {
|
|
1052
|
+
"name": "tenant_id",
|
|
1053
|
+
"type": "uuid",
|
|
1054
|
+
"unsigned": false,
|
|
1055
|
+
"autoincrement": false,
|
|
1056
|
+
"primary": false,
|
|
1057
|
+
"nullable": false,
|
|
578
1058
|
"unique": false,
|
|
579
1059
|
"length": null,
|
|
580
1060
|
"precision": null,
|
|
581
1061
|
"scale": null,
|
|
582
1062
|
"default": null,
|
|
583
1063
|
"comment": null,
|
|
1064
|
+
"collation": null,
|
|
584
1065
|
"enumItems": [],
|
|
585
|
-
"mappedType": "
|
|
1066
|
+
"mappedType": "uuid"
|
|
586
1067
|
},
|
|
587
|
-
"
|
|
588
|
-
"name": "
|
|
589
|
-
"type": "
|
|
1068
|
+
"updated_at": {
|
|
1069
|
+
"name": "updated_at",
|
|
1070
|
+
"type": "timestamptz(6)",
|
|
1071
|
+
"unsigned": false,
|
|
1072
|
+
"autoincrement": false,
|
|
1073
|
+
"primary": false,
|
|
1074
|
+
"nullable": false,
|
|
1075
|
+
"unique": false,
|
|
1076
|
+
"length": 6,
|
|
1077
|
+
"precision": null,
|
|
1078
|
+
"scale": null,
|
|
1079
|
+
"default": null,
|
|
1080
|
+
"comment": null,
|
|
1081
|
+
"collation": null,
|
|
1082
|
+
"enumItems": [],
|
|
1083
|
+
"mappedType": "datetime"
|
|
1084
|
+
}
|
|
1085
|
+
},
|
|
1086
|
+
"indexes": [
|
|
1087
|
+
{
|
|
1088
|
+
"columnNames": [
|
|
1089
|
+
"external_message_id"
|
|
1090
|
+
],
|
|
1091
|
+
"composite": false,
|
|
1092
|
+
"constraint": false,
|
|
1093
|
+
"keyName": "webhook_ingestions_external_message_id_index",
|
|
1094
|
+
"primary": false,
|
|
1095
|
+
"unique": false
|
|
1096
|
+
},
|
|
1097
|
+
{
|
|
1098
|
+
"columnNames": [
|
|
1099
|
+
"organization_id",
|
|
1100
|
+
"tenant_id",
|
|
1101
|
+
"created_at"
|
|
1102
|
+
],
|
|
1103
|
+
"composite": true,
|
|
1104
|
+
"constraint": false,
|
|
1105
|
+
"keyName": "webhook_ingestions_organization_id_tenant_id_created_at_index",
|
|
1106
|
+
"primary": false,
|
|
1107
|
+
"unique": false
|
|
1108
|
+
},
|
|
1109
|
+
{
|
|
1110
|
+
"columnNames": [
|
|
1111
|
+
"id"
|
|
1112
|
+
],
|
|
1113
|
+
"composite": false,
|
|
1114
|
+
"constraint": true,
|
|
1115
|
+
"keyName": "webhook_ingestions_pkey",
|
|
1116
|
+
"primary": true,
|
|
1117
|
+
"unique": true
|
|
1118
|
+
},
|
|
1119
|
+
{
|
|
1120
|
+
"columnNames": [
|
|
1121
|
+
"source_key",
|
|
1122
|
+
"status",
|
|
1123
|
+
"created_at"
|
|
1124
|
+
],
|
|
1125
|
+
"composite": true,
|
|
1126
|
+
"constraint": false,
|
|
1127
|
+
"keyName": "webhook_ingestions_source_key_status_created_at_index",
|
|
1128
|
+
"primary": false,
|
|
1129
|
+
"unique": false
|
|
1130
|
+
}
|
|
1131
|
+
],
|
|
1132
|
+
"checks": [],
|
|
1133
|
+
"triggers": [],
|
|
1134
|
+
"foreignKeys": {},
|
|
1135
|
+
"comment": null
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
"name": "webhooks",
|
|
1139
|
+
"schema": "public",
|
|
1140
|
+
"columns": {
|
|
1141
|
+
"auto_disable_threshold": {
|
|
1142
|
+
"name": "auto_disable_threshold",
|
|
1143
|
+
"type": "int",
|
|
590
1144
|
"unsigned": false,
|
|
591
1145
|
"autoincrement": false,
|
|
592
1146
|
"primary": false,
|
|
@@ -595,14 +1149,15 @@
|
|
|
595
1149
|
"length": null,
|
|
596
1150
|
"precision": null,
|
|
597
1151
|
"scale": null,
|
|
598
|
-
"default": "
|
|
1152
|
+
"default": "100",
|
|
599
1153
|
"comment": null,
|
|
1154
|
+
"collation": null,
|
|
600
1155
|
"enumItems": [],
|
|
601
|
-
"mappedType": "
|
|
1156
|
+
"mappedType": "integer"
|
|
602
1157
|
},
|
|
603
|
-
"
|
|
604
|
-
"name": "
|
|
605
|
-
"type": "
|
|
1158
|
+
"consecutive_failures": {
|
|
1159
|
+
"name": "consecutive_failures",
|
|
1160
|
+
"type": "int",
|
|
606
1161
|
"unsigned": false,
|
|
607
1162
|
"autoincrement": false,
|
|
608
1163
|
"primary": false,
|
|
@@ -611,13 +1166,31 @@
|
|
|
611
1166
|
"length": null,
|
|
612
1167
|
"precision": null,
|
|
613
1168
|
"scale": null,
|
|
614
|
-
"default": "
|
|
1169
|
+
"default": "0",
|
|
615
1170
|
"comment": null,
|
|
1171
|
+
"collation": null,
|
|
616
1172
|
"enumItems": [],
|
|
617
|
-
"mappedType": "
|
|
1173
|
+
"mappedType": "integer"
|
|
618
1174
|
},
|
|
619
|
-
"
|
|
620
|
-
"name": "
|
|
1175
|
+
"created_at": {
|
|
1176
|
+
"name": "created_at",
|
|
1177
|
+
"type": "timestamptz(6)",
|
|
1178
|
+
"unsigned": false,
|
|
1179
|
+
"autoincrement": false,
|
|
1180
|
+
"primary": false,
|
|
1181
|
+
"nullable": false,
|
|
1182
|
+
"unique": false,
|
|
1183
|
+
"length": 6,
|
|
1184
|
+
"precision": null,
|
|
1185
|
+
"scale": null,
|
|
1186
|
+
"default": null,
|
|
1187
|
+
"comment": null,
|
|
1188
|
+
"collation": null,
|
|
1189
|
+
"enumItems": [],
|
|
1190
|
+
"mappedType": "datetime"
|
|
1191
|
+
},
|
|
1192
|
+
"custom_headers": {
|
|
1193
|
+
"name": "custom_headers",
|
|
621
1194
|
"type": "jsonb",
|
|
622
1195
|
"unsigned": false,
|
|
623
1196
|
"autoincrement": false,
|
|
@@ -629,12 +1202,30 @@
|
|
|
629
1202
|
"scale": null,
|
|
630
1203
|
"default": null,
|
|
631
1204
|
"comment": null,
|
|
1205
|
+
"collation": null,
|
|
632
1206
|
"enumItems": [],
|
|
633
1207
|
"mappedType": "json"
|
|
634
1208
|
},
|
|
635
|
-
"
|
|
636
|
-
"name": "
|
|
637
|
-
"type": "
|
|
1209
|
+
"deleted_at": {
|
|
1210
|
+
"name": "deleted_at",
|
|
1211
|
+
"type": "timestamptz(6)",
|
|
1212
|
+
"unsigned": false,
|
|
1213
|
+
"autoincrement": false,
|
|
1214
|
+
"primary": false,
|
|
1215
|
+
"nullable": true,
|
|
1216
|
+
"unique": false,
|
|
1217
|
+
"length": 6,
|
|
1218
|
+
"precision": null,
|
|
1219
|
+
"scale": null,
|
|
1220
|
+
"default": null,
|
|
1221
|
+
"comment": null,
|
|
1222
|
+
"collation": null,
|
|
1223
|
+
"enumItems": [],
|
|
1224
|
+
"mappedType": "datetime"
|
|
1225
|
+
},
|
|
1226
|
+
"delivery_strategy": {
|
|
1227
|
+
"name": "delivery_strategy",
|
|
1228
|
+
"type": "text",
|
|
638
1229
|
"unsigned": false,
|
|
639
1230
|
"autoincrement": false,
|
|
640
1231
|
"primary": false,
|
|
@@ -643,30 +1234,32 @@
|
|
|
643
1234
|
"length": null,
|
|
644
1235
|
"precision": null,
|
|
645
1236
|
"scale": null,
|
|
646
|
-
"default": "
|
|
1237
|
+
"default": "'http'",
|
|
647
1238
|
"comment": null,
|
|
1239
|
+
"collation": null,
|
|
648
1240
|
"enumItems": [],
|
|
649
|
-
"mappedType": "
|
|
1241
|
+
"mappedType": "text"
|
|
650
1242
|
},
|
|
651
|
-
"
|
|
652
|
-
"name": "
|
|
653
|
-
"type": "
|
|
1243
|
+
"description": {
|
|
1244
|
+
"name": "description",
|
|
1245
|
+
"type": "text",
|
|
654
1246
|
"unsigned": false,
|
|
655
1247
|
"autoincrement": false,
|
|
656
1248
|
"primary": false,
|
|
657
|
-
"nullable":
|
|
1249
|
+
"nullable": true,
|
|
658
1250
|
"unique": false,
|
|
659
1251
|
"length": null,
|
|
660
1252
|
"precision": null,
|
|
661
1253
|
"scale": null,
|
|
662
|
-
"default":
|
|
1254
|
+
"default": null,
|
|
663
1255
|
"comment": null,
|
|
1256
|
+
"collation": null,
|
|
664
1257
|
"enumItems": [],
|
|
665
|
-
"mappedType": "
|
|
1258
|
+
"mappedType": "text"
|
|
666
1259
|
},
|
|
667
|
-
"
|
|
668
|
-
"name": "
|
|
669
|
-
"type": "
|
|
1260
|
+
"http_method": {
|
|
1261
|
+
"name": "http_method",
|
|
1262
|
+
"type": "text",
|
|
670
1263
|
"unsigned": false,
|
|
671
1264
|
"autoincrement": false,
|
|
672
1265
|
"primary": false,
|
|
@@ -675,62 +1268,66 @@
|
|
|
675
1268
|
"length": null,
|
|
676
1269
|
"precision": null,
|
|
677
1270
|
"scale": null,
|
|
678
|
-
"default": "
|
|
1271
|
+
"default": "'POST'",
|
|
679
1272
|
"comment": null,
|
|
1273
|
+
"collation": null,
|
|
680
1274
|
"enumItems": [],
|
|
681
|
-
"mappedType": "
|
|
1275
|
+
"mappedType": "text"
|
|
682
1276
|
},
|
|
683
|
-
"
|
|
684
|
-
"name": "
|
|
685
|
-
"type": "
|
|
1277
|
+
"id": {
|
|
1278
|
+
"name": "id",
|
|
1279
|
+
"type": "uuid",
|
|
686
1280
|
"unsigned": false,
|
|
687
1281
|
"autoincrement": false,
|
|
688
|
-
"primary":
|
|
1282
|
+
"primary": true,
|
|
689
1283
|
"nullable": false,
|
|
690
1284
|
"unique": false,
|
|
691
1285
|
"length": null,
|
|
692
1286
|
"precision": null,
|
|
693
1287
|
"scale": null,
|
|
694
|
-
"default": "
|
|
1288
|
+
"default": "gen_random_uuid()",
|
|
695
1289
|
"comment": null,
|
|
1290
|
+
"collation": null,
|
|
696
1291
|
"enumItems": [],
|
|
697
|
-
"mappedType": "
|
|
1292
|
+
"mappedType": "uuid"
|
|
698
1293
|
},
|
|
699
|
-
"
|
|
700
|
-
"name": "
|
|
701
|
-
"type": "
|
|
1294
|
+
"integration_id": {
|
|
1295
|
+
"name": "integration_id",
|
|
1296
|
+
"type": "text",
|
|
702
1297
|
"unsigned": false,
|
|
703
1298
|
"autoincrement": false,
|
|
704
1299
|
"primary": false,
|
|
705
|
-
"nullable":
|
|
1300
|
+
"nullable": true,
|
|
706
1301
|
"unique": false,
|
|
707
1302
|
"length": null,
|
|
708
1303
|
"precision": null,
|
|
709
1304
|
"scale": null,
|
|
710
|
-
"default":
|
|
1305
|
+
"default": null,
|
|
711
1306
|
"comment": null,
|
|
1307
|
+
"collation": null,
|
|
712
1308
|
"enumItems": [],
|
|
713
|
-
"mappedType": "
|
|
1309
|
+
"mappedType": "text"
|
|
714
1310
|
},
|
|
715
|
-
"
|
|
716
|
-
"name": "
|
|
717
|
-
"type": "
|
|
1311
|
+
"is_active": {
|
|
1312
|
+
"name": "is_active",
|
|
1313
|
+
"type": "boolean",
|
|
718
1314
|
"unsigned": false,
|
|
719
1315
|
"autoincrement": false,
|
|
720
1316
|
"primary": false,
|
|
721
|
-
"nullable":
|
|
1317
|
+
"nullable": false,
|
|
722
1318
|
"unique": false,
|
|
723
|
-
"length":
|
|
1319
|
+
"length": null,
|
|
724
1320
|
"precision": null,
|
|
725
1321
|
"scale": null,
|
|
726
|
-
"default":
|
|
1322
|
+
"default": "true",
|
|
727
1323
|
"comment": null,
|
|
1324
|
+
"collation": null,
|
|
728
1325
|
"enumItems": [],
|
|
729
|
-
"mappedType": "
|
|
1326
|
+
"mappedType": "boolean"
|
|
730
1327
|
},
|
|
731
1328
|
"last_failure_at": {
|
|
732
1329
|
"name": "last_failure_at",
|
|
733
|
-
"type": "timestamptz",
|
|
1330
|
+
"type": "timestamptz(6)",
|
|
734
1331
|
"unsigned": false,
|
|
735
1332
|
"autoincrement": false,
|
|
736
1333
|
"primary": false,
|
|
@@ -741,28 +1338,30 @@
|
|
|
741
1338
|
"scale": null,
|
|
742
1339
|
"default": null,
|
|
743
1340
|
"comment": null,
|
|
1341
|
+
"collation": null,
|
|
744
1342
|
"enumItems": [],
|
|
745
1343
|
"mappedType": "datetime"
|
|
746
1344
|
},
|
|
747
|
-
"
|
|
748
|
-
"name": "
|
|
749
|
-
"type": "
|
|
1345
|
+
"last_success_at": {
|
|
1346
|
+
"name": "last_success_at",
|
|
1347
|
+
"type": "timestamptz(6)",
|
|
750
1348
|
"unsigned": false,
|
|
751
1349
|
"autoincrement": false,
|
|
752
1350
|
"primary": false,
|
|
753
1351
|
"nullable": true,
|
|
754
1352
|
"unique": false,
|
|
755
|
-
"length":
|
|
1353
|
+
"length": 6,
|
|
756
1354
|
"precision": null,
|
|
757
1355
|
"scale": null,
|
|
758
1356
|
"default": null,
|
|
759
1357
|
"comment": null,
|
|
1358
|
+
"collation": null,
|
|
760
1359
|
"enumItems": [],
|
|
761
|
-
"mappedType": "
|
|
1360
|
+
"mappedType": "datetime"
|
|
762
1361
|
},
|
|
763
|
-
"
|
|
764
|
-
"name": "
|
|
765
|
-
"type": "
|
|
1362
|
+
"max_retries": {
|
|
1363
|
+
"name": "max_retries",
|
|
1364
|
+
"type": "int",
|
|
766
1365
|
"unsigned": false,
|
|
767
1366
|
"autoincrement": false,
|
|
768
1367
|
"primary": false,
|
|
@@ -771,14 +1370,15 @@
|
|
|
771
1370
|
"length": null,
|
|
772
1371
|
"precision": null,
|
|
773
1372
|
"scale": null,
|
|
774
|
-
"default":
|
|
1373
|
+
"default": "10",
|
|
775
1374
|
"comment": null,
|
|
1375
|
+
"collation": null,
|
|
776
1376
|
"enumItems": [],
|
|
777
|
-
"mappedType": "
|
|
1377
|
+
"mappedType": "integer"
|
|
778
1378
|
},
|
|
779
|
-
"
|
|
780
|
-
"name": "
|
|
781
|
-
"type": "
|
|
1379
|
+
"name": {
|
|
1380
|
+
"name": "name",
|
|
1381
|
+
"type": "text",
|
|
782
1382
|
"unsigned": false,
|
|
783
1383
|
"autoincrement": false,
|
|
784
1384
|
"primary": false,
|
|
@@ -789,44 +1389,47 @@
|
|
|
789
1389
|
"scale": null,
|
|
790
1390
|
"default": null,
|
|
791
1391
|
"comment": null,
|
|
1392
|
+
"collation": null,
|
|
792
1393
|
"enumItems": [],
|
|
793
|
-
"mappedType": "
|
|
1394
|
+
"mappedType": "text"
|
|
794
1395
|
},
|
|
795
|
-
"
|
|
796
|
-
"name": "
|
|
797
|
-
"type": "
|
|
1396
|
+
"organization_id": {
|
|
1397
|
+
"name": "organization_id",
|
|
1398
|
+
"type": "uuid",
|
|
798
1399
|
"unsigned": false,
|
|
799
1400
|
"autoincrement": false,
|
|
800
1401
|
"primary": false,
|
|
801
1402
|
"nullable": false,
|
|
802
1403
|
"unique": false,
|
|
803
|
-
"length":
|
|
1404
|
+
"length": null,
|
|
804
1405
|
"precision": null,
|
|
805
1406
|
"scale": null,
|
|
806
1407
|
"default": null,
|
|
807
1408
|
"comment": null,
|
|
1409
|
+
"collation": null,
|
|
808
1410
|
"enumItems": [],
|
|
809
|
-
"mappedType": "
|
|
1411
|
+
"mappedType": "uuid"
|
|
810
1412
|
},
|
|
811
|
-
"
|
|
812
|
-
"name": "
|
|
813
|
-
"type": "
|
|
1413
|
+
"previous_secret": {
|
|
1414
|
+
"name": "previous_secret",
|
|
1415
|
+
"type": "text",
|
|
814
1416
|
"unsigned": false,
|
|
815
1417
|
"autoincrement": false,
|
|
816
1418
|
"primary": false,
|
|
817
|
-
"nullable":
|
|
1419
|
+
"nullable": true,
|
|
818
1420
|
"unique": false,
|
|
819
|
-
"length":
|
|
1421
|
+
"length": null,
|
|
820
1422
|
"precision": null,
|
|
821
1423
|
"scale": null,
|
|
822
1424
|
"default": null,
|
|
823
1425
|
"comment": null,
|
|
1426
|
+
"collation": null,
|
|
824
1427
|
"enumItems": [],
|
|
825
|
-
"mappedType": "
|
|
1428
|
+
"mappedType": "text"
|
|
826
1429
|
},
|
|
827
|
-
"
|
|
828
|
-
"name": "
|
|
829
|
-
"type": "timestamptz",
|
|
1430
|
+
"previous_secret_set_at": {
|
|
1431
|
+
"name": "previous_secret_set_at",
|
|
1432
|
+
"type": "timestamptz(6)",
|
|
830
1433
|
"unsigned": false,
|
|
831
1434
|
"autoincrement": false,
|
|
832
1435
|
"primary": false,
|
|
@@ -837,72 +1440,29 @@
|
|
|
837
1440
|
"scale": null,
|
|
838
1441
|
"default": null,
|
|
839
1442
|
"comment": null,
|
|
1443
|
+
"collation": null,
|
|
840
1444
|
"enumItems": [],
|
|
841
1445
|
"mappedType": "datetime"
|
|
842
|
-
}
|
|
843
|
-
},
|
|
844
|
-
"name": "webhooks",
|
|
845
|
-
"schema": "public",
|
|
846
|
-
"indexes": [
|
|
847
|
-
{
|
|
848
|
-
"keyName": "webhooks_organization_id_tenant_id_deleted_at_index",
|
|
849
|
-
"columnNames": [
|
|
850
|
-
"organization_id",
|
|
851
|
-
"tenant_id",
|
|
852
|
-
"deleted_at"
|
|
853
|
-
],
|
|
854
|
-
"composite": true,
|
|
855
|
-
"constraint": false,
|
|
856
|
-
"primary": false,
|
|
857
|
-
"unique": false
|
|
858
|
-
},
|
|
859
|
-
{
|
|
860
|
-
"keyName": "webhooks_organization_id_tenant_id_is_active_index",
|
|
861
|
-
"columnNames": [
|
|
862
|
-
"organization_id",
|
|
863
|
-
"tenant_id",
|
|
864
|
-
"is_active"
|
|
865
|
-
],
|
|
866
|
-
"composite": true,
|
|
867
|
-
"constraint": false,
|
|
868
|
-
"primary": false,
|
|
869
|
-
"unique": false
|
|
870
1446
|
},
|
|
871
|
-
{
|
|
872
|
-
"
|
|
873
|
-
"
|
|
874
|
-
"id"
|
|
875
|
-
],
|
|
876
|
-
"composite": false,
|
|
877
|
-
"constraint": true,
|
|
878
|
-
"primary": true,
|
|
879
|
-
"unique": true
|
|
880
|
-
}
|
|
881
|
-
],
|
|
882
|
-
"checks": [],
|
|
883
|
-
"foreignKeys": {},
|
|
884
|
-
"nativeEnums": {}
|
|
885
|
-
},
|
|
886
|
-
{
|
|
887
|
-
"columns": {
|
|
888
|
-
"id": {
|
|
889
|
-
"name": "id",
|
|
890
|
-
"type": "uuid",
|
|
1447
|
+
"rate_limit_per_minute": {
|
|
1448
|
+
"name": "rate_limit_per_minute",
|
|
1449
|
+
"type": "int",
|
|
891
1450
|
"unsigned": false,
|
|
892
1451
|
"autoincrement": false,
|
|
893
|
-
"primary":
|
|
1452
|
+
"primary": false,
|
|
894
1453
|
"nullable": false,
|
|
895
1454
|
"unique": false,
|
|
896
1455
|
"length": null,
|
|
897
1456
|
"precision": null,
|
|
898
1457
|
"scale": null,
|
|
899
|
-
"default": "
|
|
1458
|
+
"default": "0",
|
|
900
1459
|
"comment": null,
|
|
1460
|
+
"collation": null,
|
|
901
1461
|
"enumItems": [],
|
|
902
|
-
"mappedType": "
|
|
1462
|
+
"mappedType": "integer"
|
|
903
1463
|
},
|
|
904
|
-
"
|
|
905
|
-
"name": "
|
|
1464
|
+
"secret": {
|
|
1465
|
+
"name": "secret",
|
|
906
1466
|
"type": "text",
|
|
907
1467
|
"unsigned": false,
|
|
908
1468
|
"autoincrement": false,
|
|
@@ -914,28 +1474,30 @@
|
|
|
914
1474
|
"scale": null,
|
|
915
1475
|
"default": null,
|
|
916
1476
|
"comment": null,
|
|
1477
|
+
"collation": null,
|
|
917
1478
|
"enumItems": [],
|
|
918
1479
|
"mappedType": "text"
|
|
919
1480
|
},
|
|
920
|
-
"
|
|
921
|
-
"name": "
|
|
922
|
-
"type": "
|
|
1481
|
+
"strategy_config": {
|
|
1482
|
+
"name": "strategy_config",
|
|
1483
|
+
"type": "jsonb",
|
|
923
1484
|
"unsigned": false,
|
|
924
1485
|
"autoincrement": false,
|
|
925
1486
|
"primary": false,
|
|
926
|
-
"nullable":
|
|
1487
|
+
"nullable": true,
|
|
927
1488
|
"unique": false,
|
|
928
1489
|
"length": null,
|
|
929
1490
|
"precision": null,
|
|
930
1491
|
"scale": null,
|
|
931
1492
|
"default": null,
|
|
932
1493
|
"comment": null,
|
|
1494
|
+
"collation": null,
|
|
933
1495
|
"enumItems": [],
|
|
934
|
-
"mappedType": "
|
|
1496
|
+
"mappedType": "json"
|
|
935
1497
|
},
|
|
936
|
-
"
|
|
937
|
-
"name": "
|
|
938
|
-
"type": "
|
|
1498
|
+
"subscribed_events": {
|
|
1499
|
+
"name": "subscribed_events",
|
|
1500
|
+
"type": "jsonb",
|
|
939
1501
|
"unsigned": false,
|
|
940
1502
|
"autoincrement": false,
|
|
941
1503
|
"primary": false,
|
|
@@ -946,114 +1508,121 @@
|
|
|
946
1508
|
"scale": null,
|
|
947
1509
|
"default": null,
|
|
948
1510
|
"comment": null,
|
|
1511
|
+
"collation": null,
|
|
949
1512
|
"enumItems": [],
|
|
950
|
-
"mappedType": "
|
|
1513
|
+
"mappedType": "json"
|
|
951
1514
|
},
|
|
952
|
-
"
|
|
953
|
-
"name": "
|
|
954
|
-
"type": "
|
|
1515
|
+
"tenant_id": {
|
|
1516
|
+
"name": "tenant_id",
|
|
1517
|
+
"type": "uuid",
|
|
955
1518
|
"unsigned": false,
|
|
956
1519
|
"autoincrement": false,
|
|
957
1520
|
"primary": false,
|
|
958
|
-
"nullable":
|
|
1521
|
+
"nullable": false,
|
|
959
1522
|
"unique": false,
|
|
960
1523
|
"length": null,
|
|
961
1524
|
"precision": null,
|
|
962
1525
|
"scale": null,
|
|
963
1526
|
"default": null,
|
|
964
1527
|
"comment": null,
|
|
1528
|
+
"collation": null,
|
|
965
1529
|
"enumItems": [],
|
|
966
|
-
"mappedType": "
|
|
1530
|
+
"mappedType": "uuid"
|
|
967
1531
|
},
|
|
968
|
-
"
|
|
969
|
-
"name": "
|
|
970
|
-
"type": "
|
|
1532
|
+
"timeout_ms": {
|
|
1533
|
+
"name": "timeout_ms",
|
|
1534
|
+
"type": "int",
|
|
971
1535
|
"unsigned": false,
|
|
972
1536
|
"autoincrement": false,
|
|
973
1537
|
"primary": false,
|
|
974
|
-
"nullable":
|
|
1538
|
+
"nullable": false,
|
|
975
1539
|
"unique": false,
|
|
976
1540
|
"length": null,
|
|
977
1541
|
"precision": null,
|
|
978
1542
|
"scale": null,
|
|
979
|
-
"default":
|
|
1543
|
+
"default": "15000",
|
|
980
1544
|
"comment": null,
|
|
1545
|
+
"collation": null,
|
|
981
1546
|
"enumItems": [],
|
|
982
|
-
"mappedType": "
|
|
1547
|
+
"mappedType": "integer"
|
|
983
1548
|
},
|
|
984
|
-
"
|
|
985
|
-
"name": "
|
|
986
|
-
"type": "
|
|
1549
|
+
"updated_at": {
|
|
1550
|
+
"name": "updated_at",
|
|
1551
|
+
"type": "timestamptz(6)",
|
|
987
1552
|
"unsigned": false,
|
|
988
1553
|
"autoincrement": false,
|
|
989
1554
|
"primary": false,
|
|
990
|
-
"nullable":
|
|
1555
|
+
"nullable": false,
|
|
991
1556
|
"unique": false,
|
|
992
|
-
"length":
|
|
1557
|
+
"length": 6,
|
|
993
1558
|
"precision": null,
|
|
994
1559
|
"scale": null,
|
|
995
1560
|
"default": null,
|
|
996
1561
|
"comment": null,
|
|
1562
|
+
"collation": null,
|
|
997
1563
|
"enumItems": [],
|
|
998
|
-
"mappedType": "
|
|
1564
|
+
"mappedType": "datetime"
|
|
999
1565
|
},
|
|
1000
|
-
"
|
|
1001
|
-
"name": "
|
|
1002
|
-
"type": "
|
|
1566
|
+
"url": {
|
|
1567
|
+
"name": "url",
|
|
1568
|
+
"type": "text",
|
|
1003
1569
|
"unsigned": false,
|
|
1004
1570
|
"autoincrement": false,
|
|
1005
1571
|
"primary": false,
|
|
1006
1572
|
"nullable": false,
|
|
1007
1573
|
"unique": false,
|
|
1008
|
-
"length":
|
|
1574
|
+
"length": null,
|
|
1009
1575
|
"precision": null,
|
|
1010
1576
|
"scale": null,
|
|
1011
1577
|
"default": null,
|
|
1012
1578
|
"comment": null,
|
|
1579
|
+
"collation": null,
|
|
1013
1580
|
"enumItems": [],
|
|
1014
|
-
"mappedType": "
|
|
1581
|
+
"mappedType": "text"
|
|
1015
1582
|
}
|
|
1016
1583
|
},
|
|
1017
|
-
"name": "webhook_inbound_receipts",
|
|
1018
|
-
"schema": "public",
|
|
1019
1584
|
"indexes": [
|
|
1020
1585
|
{
|
|
1021
|
-
"keyName": "webhook_inbound_receipts_provider_key_created_at_index",
|
|
1022
1586
|
"columnNames": [
|
|
1023
|
-
"
|
|
1024
|
-
"
|
|
1587
|
+
"organization_id",
|
|
1588
|
+
"tenant_id",
|
|
1589
|
+
"deleted_at"
|
|
1025
1590
|
],
|
|
1026
1591
|
"composite": true,
|
|
1027
1592
|
"constraint": false,
|
|
1593
|
+
"keyName": "webhooks_organization_id_tenant_id_deleted_at_index",
|
|
1028
1594
|
"primary": false,
|
|
1029
1595
|
"unique": false
|
|
1030
1596
|
},
|
|
1031
1597
|
{
|
|
1032
|
-
"keyName": "webhook_inbound_receipts_endpoint_message_unique",
|
|
1033
1598
|
"columnNames": [
|
|
1034
|
-
"
|
|
1035
|
-
"
|
|
1599
|
+
"organization_id",
|
|
1600
|
+
"tenant_id",
|
|
1601
|
+
"is_active"
|
|
1036
1602
|
],
|
|
1037
1603
|
"composite": true,
|
|
1038
|
-
"constraint":
|
|
1604
|
+
"constraint": false,
|
|
1605
|
+
"keyName": "webhooks_organization_id_tenant_id_is_active_index",
|
|
1039
1606
|
"primary": false,
|
|
1040
|
-
"unique":
|
|
1607
|
+
"unique": false
|
|
1041
1608
|
},
|
|
1042
1609
|
{
|
|
1043
|
-
"keyName": "webhook_inbound_receipts_pkey",
|
|
1044
1610
|
"columnNames": [
|
|
1045
1611
|
"id"
|
|
1046
1612
|
],
|
|
1047
1613
|
"composite": false,
|
|
1048
1614
|
"constraint": true,
|
|
1615
|
+
"keyName": "webhooks_pkey",
|
|
1049
1616
|
"primary": true,
|
|
1050
1617
|
"unique": true
|
|
1051
1618
|
}
|
|
1052
1619
|
],
|
|
1053
1620
|
"checks": [],
|
|
1621
|
+
"triggers": [],
|
|
1054
1622
|
"foreignKeys": {},
|
|
1055
|
-
"
|
|
1623
|
+
"comment": null
|
|
1056
1624
|
}
|
|
1057
1625
|
],
|
|
1626
|
+
"views": [],
|
|
1058
1627
|
"nativeEnums": {}
|
|
1059
|
-
}
|
|
1628
|
+
}
|