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