@abyss-project/tools 1.0.1 → 1.0.5
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/dist/api/abyss.admin.api.d.ts +0 -3
- package/dist/api/abyss.admin.api.js +1 -13
- package/dist/api/abyss.admin.api.js.map +1 -1
- package/dist/api/index.d.ts +1 -0
- package/dist/api/index.js +1 -0
- package/dist/api/index.js.map +1 -1
- package/dist/api/monitor.api.d.ts +2 -0
- package/dist/api/monitor.api.js +9 -0
- package/dist/api/monitor.api.js.map +1 -0
- package/dist/index.d.ts +4 -3
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/types/interface/api/responses/index.d.ts +1 -0
- package/dist/types/interface/api/responses/index.js +1 -0
- package/dist/types/interface/api/responses/index.js.map +1 -1
- package/dist/types/interface/api/responses/monitor.response.d.ts +7 -0
- package/dist/types/interface/api/responses/monitor.response.js +3 -0
- package/dist/types/interface/api/responses/monitor.response.js.map +1 -0
- package/dist/types/interface/api/responses/recent.response.d.ts +1 -0
- package/package.json +52 -57
- package/src/api/abyss.admin.api.ts +0 -18
- package/src/api/index.ts +3 -1
- package/src/api/monitor.api.ts +6 -0
- package/src/api/rcb.api.ts +829 -829
- package/src/index.ts +7 -6
- package/src/types/enum/pdf-operation.enum.ts +98 -98
- package/src/types/enum/rcb-bank.enum.ts +137 -137
- package/src/types/interface/api/requests/rcb.request.ts +267 -267
- package/src/types/interface/api/responses/index.ts +1 -0
- package/src/types/interface/api/responses/monitor.response.ts +8 -0
- package/src/types/interface/api/responses/rcb.response.ts +399 -399
- package/src/types/interface/api/responses/recent.response.ts +2 -0
- package/src/types/interface/models/rcb.dto.ts +267 -267
- package/src/utils/rcb-webhook.utils.ts +30 -30
- package/src/api/atlas-page-content.api.ts +0 -0
|
@@ -1,267 +1,267 @@
|
|
|
1
|
-
// ──────────────────────────────────────────────
|
|
2
|
-
// RCB API requests.
|
|
3
|
-
// ──────────────────────────────────────────────
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
RcbExtractionMode,
|
|
7
|
-
RcbFeedbackIssueType,
|
|
8
|
-
RcbFeedbackStatus,
|
|
9
|
-
RcbProcessingMode,
|
|
10
|
-
IRcbBankHint,
|
|
11
|
-
} from '../../models/rcb.dto';
|
|
12
|
-
|
|
13
|
-
// ─── EXTRACT ─────────────────────────────────
|
|
14
|
-
|
|
15
|
-
export interface IExtractRcbBody {
|
|
16
|
-
/** Inline PDF buffer — multipart upload only. SDK helpers wrap this. */
|
|
17
|
-
pdf?: Buffer | Uint8Array;
|
|
18
|
-
storage_file_id?: string;
|
|
19
|
-
mode: RcbExtractionMode;
|
|
20
|
-
hint?: IRcbBankHint;
|
|
21
|
-
template_id?: string;
|
|
22
|
-
template?: Record<string, unknown>;
|
|
23
|
-
pdf_filename?: string;
|
|
24
|
-
user_external_id?: string;
|
|
25
|
-
user_metadata?: Record<string, unknown>;
|
|
26
|
-
archive?: boolean;
|
|
27
|
-
force?: boolean;
|
|
28
|
-
processing?: RcbProcessingMode;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export interface IExtractBulkRcbBody {
|
|
32
|
-
items: Array<{
|
|
33
|
-
storage_file_id?: string;
|
|
34
|
-
pdf_base64?: string;
|
|
35
|
-
mode: RcbExtractionMode;
|
|
36
|
-
hint?: IRcbBankHint;
|
|
37
|
-
template_id?: string;
|
|
38
|
-
template?: Record<string, unknown>;
|
|
39
|
-
pdf_filename?: string;
|
|
40
|
-
user_external_id?: string;
|
|
41
|
-
user_metadata?: Record<string, unknown>;
|
|
42
|
-
archive?: boolean;
|
|
43
|
-
force?: boolean;
|
|
44
|
-
}>;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
// ─── DETECT ──────────────────────────────────
|
|
48
|
-
|
|
49
|
-
export interface IDetectBulkRcbBody {
|
|
50
|
-
items: Array<{ pdf_base64: string; pdf_filename?: string }>;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
// ─── FILES ───────────────────────────────────
|
|
54
|
-
|
|
55
|
-
export interface IListFilesRcbQuery {
|
|
56
|
-
hash?: string;
|
|
57
|
-
external_id?: string;
|
|
58
|
-
application_file_id?: string;
|
|
59
|
-
bank?: string;
|
|
60
|
-
from?: string;
|
|
61
|
-
to?: string;
|
|
62
|
-
limit?: number;
|
|
63
|
-
offset?: number;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export interface IGetFileRcbParams {
|
|
67
|
-
fileId: string;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export interface IPatchFileRcbBody {
|
|
71
|
-
user_external_id?: string | null;
|
|
72
|
-
user_metadata?: Record<string, unknown> | null;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
// ─── EXTRACTIONS ─────────────────────────────
|
|
76
|
-
|
|
77
|
-
export interface IGetExtractionRcbParams {
|
|
78
|
-
extractionId: string;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export interface IPatchExtractionRcbBody {
|
|
82
|
-
tags?: string[] | null;
|
|
83
|
-
note?: string | null;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export interface ISearchExtractionRecordsRcbQuery {
|
|
87
|
-
q?: string;
|
|
88
|
-
amount_min?: number;
|
|
89
|
-
amount_max?: number;
|
|
90
|
-
sign?: 'debit' | 'credit';
|
|
91
|
-
date_from?: string;
|
|
92
|
-
date_to?: string;
|
|
93
|
-
sort?: 'date' | 'amount' | 'description';
|
|
94
|
-
sort_dir?: 'asc' | 'desc';
|
|
95
|
-
limit?: number;
|
|
96
|
-
offset?: number;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
export interface IExportExtractionRcbQuery {
|
|
100
|
-
format: 'csv' | 'json';
|
|
101
|
-
delimiter?: ',' | ';' | '\t';
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export interface IAsyncExportExtractionRcbBody {
|
|
105
|
-
format: 'csv' | 'json';
|
|
106
|
-
delimiter?: ',' | ';' | '\t';
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
// ─── TEMPLATES ───────────────────────────────
|
|
110
|
-
|
|
111
|
-
export interface ICreateTemplateRcbBody {
|
|
112
|
-
name: string;
|
|
113
|
-
description?: string;
|
|
114
|
-
template_json: Record<string, unknown>;
|
|
115
|
-
comment?: string;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
export interface IUpdateTemplateRcbBody {
|
|
119
|
-
template_json: Record<string, unknown>;
|
|
120
|
-
comment?: string;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
export interface IPatchTemplateMetaRcbBody {
|
|
124
|
-
name?: string;
|
|
125
|
-
description?: string | null;
|
|
126
|
-
is_active?: boolean;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
// ─── FEEDBACK ────────────────────────────────
|
|
130
|
-
|
|
131
|
-
export interface ICreateFeedbackRcbBody {
|
|
132
|
-
extraction_id: string;
|
|
133
|
-
issue_type: RcbFeedbackIssueType;
|
|
134
|
-
description?: string;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
export interface IPatchFeedbackRcbBody {
|
|
138
|
-
status: RcbFeedbackStatus;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
export interface IListFeedbackRcbQuery {
|
|
142
|
-
extraction_id?: string;
|
|
143
|
-
status?: RcbFeedbackStatus;
|
|
144
|
-
issue_type?: RcbFeedbackIssueType;
|
|
145
|
-
limit?: number;
|
|
146
|
-
offset?: number;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
// ─── USAGE ───────────────────────────────────
|
|
150
|
-
|
|
151
|
-
export interface IListUsageRcbQuery {
|
|
152
|
-
application_id?: string;
|
|
153
|
-
event_type?: string;
|
|
154
|
-
from?: string;
|
|
155
|
-
to?: string;
|
|
156
|
-
limit?: number;
|
|
157
|
-
offset?: number;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
export interface ISummaryUsageRcbQuery {
|
|
161
|
-
from?: string;
|
|
162
|
-
to?: string;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
// ─── WEBHOOK DELIVERIES ─────────────────────
|
|
166
|
-
|
|
167
|
-
export interface IListWebhookDeliveriesRcbQuery {
|
|
168
|
-
job_id?: string;
|
|
169
|
-
event?: string;
|
|
170
|
-
delivered?: boolean;
|
|
171
|
-
from?: string;
|
|
172
|
-
to?: string;
|
|
173
|
-
limit?: number;
|
|
174
|
-
offset?: number;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
export interface IReplayWebhookDeliveryRcbBody {
|
|
178
|
-
url?: string;
|
|
179
|
-
secret?: string;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
// ─── SHARE ───────────────────────────────────
|
|
183
|
-
|
|
184
|
-
export interface IMintShareExtractionRcbBody {
|
|
185
|
-
expires_in_days?: number;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
// ─── ADMIN: CATALOGUE ────────────────────────
|
|
189
|
-
|
|
190
|
-
export interface IUpsertBankVersionAdminRcbBody {
|
|
191
|
-
bank: string;
|
|
192
|
-
version: string;
|
|
193
|
-
valid_from?: string | null;
|
|
194
|
-
valid_to?: string | null;
|
|
195
|
-
detector_json: Record<string, unknown>;
|
|
196
|
-
parser_kind: string;
|
|
197
|
-
config_json: Record<string, unknown>;
|
|
198
|
-
is_active?: boolean;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
export interface IToggleBankVersionActiveAdminRcbBody {
|
|
202
|
-
is_active: boolean;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
export interface IUpsertQuotaAdminRcbBody {
|
|
206
|
-
tier?: string;
|
|
207
|
-
monthly_extract_cap?: number | null;
|
|
208
|
-
monthly_extracted_cap?: number | null;
|
|
209
|
-
monthly_bytes_cap?: number | null;
|
|
210
|
-
queue_only_above_count?: number | null;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
export interface IDetectorReplayAdminRcbBody {
|
|
214
|
-
detected_bank?: string;
|
|
215
|
-
from?: string;
|
|
216
|
-
to?: string;
|
|
217
|
-
limit?: number;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
export interface IListRequestLogAdminRcbQuery {
|
|
221
|
-
since_ms?: number;
|
|
222
|
-
status_min?: number;
|
|
223
|
-
status_max?: number;
|
|
224
|
-
user_id?: string;
|
|
225
|
-
path_prefix?: string;
|
|
226
|
-
limit?: number;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
// ─── WEBHOOK SUBSCRIPTIONS ──────────────────
|
|
230
|
-
|
|
231
|
-
import type { RcbWebhookEvent } from '../../models/rcb.dto';
|
|
232
|
-
|
|
233
|
-
export interface IRcbWebhookScopeQuery {
|
|
234
|
-
organization_id?: string;
|
|
235
|
-
project_id?: string;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
export interface IPaginateRcbWebhookQuery extends IRcbWebhookScopeQuery {
|
|
239
|
-
name?: string;
|
|
240
|
-
event?: RcbWebhookEvent;
|
|
241
|
-
isEnabled?: boolean;
|
|
242
|
-
page?: number;
|
|
243
|
-
limit?: number;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
export interface ICreateRcbWebhookBody {
|
|
247
|
-
webhookUrl: string;
|
|
248
|
-
name?: string;
|
|
249
|
-
description?: string;
|
|
250
|
-
isEnabled?: boolean;
|
|
251
|
-
scopes: RcbWebhookEvent[];
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
export interface IUpdateRcbWebhookBody {
|
|
255
|
-
webhookUrl?: string;
|
|
256
|
-
name?: string;
|
|
257
|
-
description?: string;
|
|
258
|
-
isEnabled?: boolean;
|
|
259
|
-
scopes?: RcbWebhookEvent[];
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
// ─── SHARED FILES (content_share-backed) ────
|
|
263
|
-
|
|
264
|
-
export interface IListSharedFilesRcbQuery extends IRcbWebhookScopeQuery {
|
|
265
|
-
limit?: number;
|
|
266
|
-
offset?: number;
|
|
267
|
-
}
|
|
1
|
+
// ──────────────────────────────────────────────
|
|
2
|
+
// RCB API requests.
|
|
3
|
+
// ──────────────────────────────────────────────
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
RcbExtractionMode,
|
|
7
|
+
RcbFeedbackIssueType,
|
|
8
|
+
RcbFeedbackStatus,
|
|
9
|
+
RcbProcessingMode,
|
|
10
|
+
IRcbBankHint,
|
|
11
|
+
} from '../../models/rcb.dto';
|
|
12
|
+
|
|
13
|
+
// ─── EXTRACT ─────────────────────────────────
|
|
14
|
+
|
|
15
|
+
export interface IExtractRcbBody {
|
|
16
|
+
/** Inline PDF buffer — multipart upload only. SDK helpers wrap this. */
|
|
17
|
+
pdf?: Buffer | Uint8Array;
|
|
18
|
+
storage_file_id?: string;
|
|
19
|
+
mode: RcbExtractionMode;
|
|
20
|
+
hint?: IRcbBankHint;
|
|
21
|
+
template_id?: string;
|
|
22
|
+
template?: Record<string, unknown>;
|
|
23
|
+
pdf_filename?: string;
|
|
24
|
+
user_external_id?: string;
|
|
25
|
+
user_metadata?: Record<string, unknown>;
|
|
26
|
+
archive?: boolean;
|
|
27
|
+
force?: boolean;
|
|
28
|
+
processing?: RcbProcessingMode;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface IExtractBulkRcbBody {
|
|
32
|
+
items: Array<{
|
|
33
|
+
storage_file_id?: string;
|
|
34
|
+
pdf_base64?: string;
|
|
35
|
+
mode: RcbExtractionMode;
|
|
36
|
+
hint?: IRcbBankHint;
|
|
37
|
+
template_id?: string;
|
|
38
|
+
template?: Record<string, unknown>;
|
|
39
|
+
pdf_filename?: string;
|
|
40
|
+
user_external_id?: string;
|
|
41
|
+
user_metadata?: Record<string, unknown>;
|
|
42
|
+
archive?: boolean;
|
|
43
|
+
force?: boolean;
|
|
44
|
+
}>;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// ─── DETECT ──────────────────────────────────
|
|
48
|
+
|
|
49
|
+
export interface IDetectBulkRcbBody {
|
|
50
|
+
items: Array<{ pdf_base64: string; pdf_filename?: string }>;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// ─── FILES ───────────────────────────────────
|
|
54
|
+
|
|
55
|
+
export interface IListFilesRcbQuery {
|
|
56
|
+
hash?: string;
|
|
57
|
+
external_id?: string;
|
|
58
|
+
application_file_id?: string;
|
|
59
|
+
bank?: string;
|
|
60
|
+
from?: string;
|
|
61
|
+
to?: string;
|
|
62
|
+
limit?: number;
|
|
63
|
+
offset?: number;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface IGetFileRcbParams {
|
|
67
|
+
fileId: string;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export interface IPatchFileRcbBody {
|
|
71
|
+
user_external_id?: string | null;
|
|
72
|
+
user_metadata?: Record<string, unknown> | null;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// ─── EXTRACTIONS ─────────────────────────────
|
|
76
|
+
|
|
77
|
+
export interface IGetExtractionRcbParams {
|
|
78
|
+
extractionId: string;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export interface IPatchExtractionRcbBody {
|
|
82
|
+
tags?: string[] | null;
|
|
83
|
+
note?: string | null;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface ISearchExtractionRecordsRcbQuery {
|
|
87
|
+
q?: string;
|
|
88
|
+
amount_min?: number;
|
|
89
|
+
amount_max?: number;
|
|
90
|
+
sign?: 'debit' | 'credit';
|
|
91
|
+
date_from?: string;
|
|
92
|
+
date_to?: string;
|
|
93
|
+
sort?: 'date' | 'amount' | 'description';
|
|
94
|
+
sort_dir?: 'asc' | 'desc';
|
|
95
|
+
limit?: number;
|
|
96
|
+
offset?: number;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export interface IExportExtractionRcbQuery {
|
|
100
|
+
format: 'csv' | 'json';
|
|
101
|
+
delimiter?: ',' | ';' | '\t';
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export interface IAsyncExportExtractionRcbBody {
|
|
105
|
+
format: 'csv' | 'json';
|
|
106
|
+
delimiter?: ',' | ';' | '\t';
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
// ─── TEMPLATES ───────────────────────────────
|
|
110
|
+
|
|
111
|
+
export interface ICreateTemplateRcbBody {
|
|
112
|
+
name: string;
|
|
113
|
+
description?: string;
|
|
114
|
+
template_json: Record<string, unknown>;
|
|
115
|
+
comment?: string;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export interface IUpdateTemplateRcbBody {
|
|
119
|
+
template_json: Record<string, unknown>;
|
|
120
|
+
comment?: string;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export interface IPatchTemplateMetaRcbBody {
|
|
124
|
+
name?: string;
|
|
125
|
+
description?: string | null;
|
|
126
|
+
is_active?: boolean;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// ─── FEEDBACK ────────────────────────────────
|
|
130
|
+
|
|
131
|
+
export interface ICreateFeedbackRcbBody {
|
|
132
|
+
extraction_id: string;
|
|
133
|
+
issue_type: RcbFeedbackIssueType;
|
|
134
|
+
description?: string;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export interface IPatchFeedbackRcbBody {
|
|
138
|
+
status: RcbFeedbackStatus;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export interface IListFeedbackRcbQuery {
|
|
142
|
+
extraction_id?: string;
|
|
143
|
+
status?: RcbFeedbackStatus;
|
|
144
|
+
issue_type?: RcbFeedbackIssueType;
|
|
145
|
+
limit?: number;
|
|
146
|
+
offset?: number;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
// ─── USAGE ───────────────────────────────────
|
|
150
|
+
|
|
151
|
+
export interface IListUsageRcbQuery {
|
|
152
|
+
application_id?: string;
|
|
153
|
+
event_type?: string;
|
|
154
|
+
from?: string;
|
|
155
|
+
to?: string;
|
|
156
|
+
limit?: number;
|
|
157
|
+
offset?: number;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export interface ISummaryUsageRcbQuery {
|
|
161
|
+
from?: string;
|
|
162
|
+
to?: string;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
// ─── WEBHOOK DELIVERIES ─────────────────────
|
|
166
|
+
|
|
167
|
+
export interface IListWebhookDeliveriesRcbQuery {
|
|
168
|
+
job_id?: string;
|
|
169
|
+
event?: string;
|
|
170
|
+
delivered?: boolean;
|
|
171
|
+
from?: string;
|
|
172
|
+
to?: string;
|
|
173
|
+
limit?: number;
|
|
174
|
+
offset?: number;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export interface IReplayWebhookDeliveryRcbBody {
|
|
178
|
+
url?: string;
|
|
179
|
+
secret?: string;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
// ─── SHARE ───────────────────────────────────
|
|
183
|
+
|
|
184
|
+
export interface IMintShareExtractionRcbBody {
|
|
185
|
+
expires_in_days?: number;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
// ─── ADMIN: CATALOGUE ────────────────────────
|
|
189
|
+
|
|
190
|
+
export interface IUpsertBankVersionAdminRcbBody {
|
|
191
|
+
bank: string;
|
|
192
|
+
version: string;
|
|
193
|
+
valid_from?: string | null;
|
|
194
|
+
valid_to?: string | null;
|
|
195
|
+
detector_json: Record<string, unknown>;
|
|
196
|
+
parser_kind: string;
|
|
197
|
+
config_json: Record<string, unknown>;
|
|
198
|
+
is_active?: boolean;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export interface IToggleBankVersionActiveAdminRcbBody {
|
|
202
|
+
is_active: boolean;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export interface IUpsertQuotaAdminRcbBody {
|
|
206
|
+
tier?: string;
|
|
207
|
+
monthly_extract_cap?: number | null;
|
|
208
|
+
monthly_extracted_cap?: number | null;
|
|
209
|
+
monthly_bytes_cap?: number | null;
|
|
210
|
+
queue_only_above_count?: number | null;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export interface IDetectorReplayAdminRcbBody {
|
|
214
|
+
detected_bank?: string;
|
|
215
|
+
from?: string;
|
|
216
|
+
to?: string;
|
|
217
|
+
limit?: number;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export interface IListRequestLogAdminRcbQuery {
|
|
221
|
+
since_ms?: number;
|
|
222
|
+
status_min?: number;
|
|
223
|
+
status_max?: number;
|
|
224
|
+
user_id?: string;
|
|
225
|
+
path_prefix?: string;
|
|
226
|
+
limit?: number;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
// ─── WEBHOOK SUBSCRIPTIONS ──────────────────
|
|
230
|
+
|
|
231
|
+
import type { RcbWebhookEvent } from '../../models/rcb.dto';
|
|
232
|
+
|
|
233
|
+
export interface IRcbWebhookScopeQuery {
|
|
234
|
+
organization_id?: string;
|
|
235
|
+
project_id?: string;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export interface IPaginateRcbWebhookQuery extends IRcbWebhookScopeQuery {
|
|
239
|
+
name?: string;
|
|
240
|
+
event?: RcbWebhookEvent;
|
|
241
|
+
isEnabled?: boolean;
|
|
242
|
+
page?: number;
|
|
243
|
+
limit?: number;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
export interface ICreateRcbWebhookBody {
|
|
247
|
+
webhookUrl: string;
|
|
248
|
+
name?: string;
|
|
249
|
+
description?: string;
|
|
250
|
+
isEnabled?: boolean;
|
|
251
|
+
scopes: RcbWebhookEvent[];
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
export interface IUpdateRcbWebhookBody {
|
|
255
|
+
webhookUrl?: string;
|
|
256
|
+
name?: string;
|
|
257
|
+
description?: string;
|
|
258
|
+
isEnabled?: boolean;
|
|
259
|
+
scopes?: RcbWebhookEvent[];
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
// ─── SHARED FILES (content_share-backed) ────
|
|
263
|
+
|
|
264
|
+
export interface IListSharedFilesRcbQuery extends IRcbWebhookScopeQuery {
|
|
265
|
+
limit?: number;
|
|
266
|
+
offset?: number;
|
|
267
|
+
}
|