@stackone/connect-sdk 2.87.1 → 2.89.0
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/index.cjs +6 -6
- package/dist/index.d.cts +6 -1638
- package/dist/index.d.mts +6 -1638
- package/dist/index.mjs +6 -6
- package/package.json +1 -1
- /package/dist/{chunk-Cfxk5zVN.mjs → chunk-BhWHdk3m.mjs} +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -1,1641 +1,10 @@
|
|
|
1
|
-
import { t as __name } from "./chunk-
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
1
|
+
import { t as __name } from "./chunk-BhWHdk3m.mjs";
|
|
2
|
+
import { z } from "@stackone/utils";
|
|
3
|
+
import { Account, Action, AuthType, AuthenticationField, AuthenticationNotice, Block, BlockContext, Category, Checkpoint, Connector, ConnectorDocumentation, Cursor, CursorPaginationConfig, DataSyncConfig, DeltaTokenIncrementalConfig, EventToEmit, FlowType, IncrementalConfig, Input, InputLocation, OffsetPaginationConfig, PagePaginationConfig, PaginationConfig, ReleaseStage, Settings, Source, SourceType, Step, StepFunctionName, StepFunctionParams, StepFunctionsFactory, StreamType, SupportConfig, TestActionConfig, TimeFilterIncrementalConfig, TransportType, WebhookSetupPhase, WebhookSetupPhaseKind } from "@stackone/core";
|
|
4
|
+
import { HttpMethod, IHttpClient } from "@stackone/transport";
|
|
5
|
+
import { ILogger } from "@stackone/logger";
|
|
6
|
+
import { IOlapClient } from "@stackone/olap";
|
|
6
7
|
|
|
7
|
-
//#region ../logger/src/types.d.ts
|
|
8
|
-
interface ILogger {
|
|
9
|
-
debug({
|
|
10
|
-
category,
|
|
11
|
-
message,
|
|
12
|
-
traceId,
|
|
13
|
-
context
|
|
14
|
-
}: {
|
|
15
|
-
category?: string;
|
|
16
|
-
message: string;
|
|
17
|
-
traceId?: string;
|
|
18
|
-
context?: Record<string, unknown>;
|
|
19
|
-
}): void;
|
|
20
|
-
info({
|
|
21
|
-
category,
|
|
22
|
-
message,
|
|
23
|
-
traceId,
|
|
24
|
-
context
|
|
25
|
-
}: {
|
|
26
|
-
category?: string;
|
|
27
|
-
message: string;
|
|
28
|
-
traceId?: string;
|
|
29
|
-
context?: Record<string, unknown>;
|
|
30
|
-
}): void;
|
|
31
|
-
warning({
|
|
32
|
-
category,
|
|
33
|
-
message,
|
|
34
|
-
traceId,
|
|
35
|
-
error,
|
|
36
|
-
code,
|
|
37
|
-
context
|
|
38
|
-
}: {
|
|
39
|
-
category?: string;
|
|
40
|
-
message: string;
|
|
41
|
-
traceId?: string;
|
|
42
|
-
error?: LogError;
|
|
43
|
-
code?: string;
|
|
44
|
-
context?: Record<string, unknown>;
|
|
45
|
-
}): void;
|
|
46
|
-
error({
|
|
47
|
-
category,
|
|
48
|
-
message,
|
|
49
|
-
traceId,
|
|
50
|
-
error,
|
|
51
|
-
code,
|
|
52
|
-
context
|
|
53
|
-
}: {
|
|
54
|
-
category?: string;
|
|
55
|
-
message: string;
|
|
56
|
-
traceId?: string;
|
|
57
|
-
error?: LogError;
|
|
58
|
-
code: string;
|
|
59
|
-
context?: Record<string, unknown>;
|
|
60
|
-
}): void;
|
|
61
|
-
}
|
|
62
|
-
type LogError = Error & {
|
|
63
|
-
response?: {
|
|
64
|
-
data?: unknown;
|
|
65
|
-
};
|
|
66
|
-
context?: Record<string, unknown>;
|
|
67
|
-
url?: string;
|
|
68
|
-
};
|
|
69
|
-
//#endregion
|
|
70
|
-
//#region ../transport/src/concurrencyManager/types.d.ts
|
|
71
|
-
type ConcurrencySubPoolConfig = {
|
|
72
|
-
subPoolKey: string;
|
|
73
|
-
urlPattern: RegExp | string;
|
|
74
|
-
maxConcurrency: number;
|
|
75
|
-
};
|
|
76
|
-
type ConcurrencyConfig = {
|
|
77
|
-
mainMaxConcurrency: number;
|
|
78
|
-
subPools?: ConcurrencySubPoolConfig[];
|
|
79
|
-
};
|
|
80
|
-
//#endregion
|
|
81
|
-
//#region ../transport/src/rateLimitManager/types.d.ts
|
|
82
|
-
type RateLimitSubPoolConfig = {
|
|
83
|
-
subPoolKey: string;
|
|
84
|
-
urlPattern: RegExp | string;
|
|
85
|
-
rateLimit: number;
|
|
86
|
-
};
|
|
87
|
-
type RetryUnit = 'seconds' | 'milliseconds' | 'date';
|
|
88
|
-
type MappedRateLimitErrorConfig = {
|
|
89
|
-
errorStatus: number;
|
|
90
|
-
errorMessage: string | RegExp;
|
|
91
|
-
errorMessagePath?: string;
|
|
92
|
-
retryAfterPath?: string;
|
|
93
|
-
retryAfterUnit?: RetryUnit;
|
|
94
|
-
retryAfterValue?: number;
|
|
95
|
-
};
|
|
96
|
-
type RateLimitConfig = {
|
|
97
|
-
mainRatelimit: number;
|
|
98
|
-
subPools?: RateLimitSubPoolConfig[];
|
|
99
|
-
mappedRateLimitErrors?: MappedRateLimitErrorConfig[];
|
|
100
|
-
};
|
|
101
|
-
//#endregion
|
|
102
|
-
//#region ../transport/src/interceptors/types.d.ts
|
|
103
|
-
type RequestConfig = {
|
|
104
|
-
rateLimits?: RateLimitConfig;
|
|
105
|
-
concurrency?: ConcurrencyConfig;
|
|
106
|
-
};
|
|
107
|
-
//#endregion
|
|
108
|
-
//#region ../transport/src/parsers/types.d.ts
|
|
109
|
-
declare const QueryArrayFormats: readonly ["repeat", "brackets", "comma", "stringify"];
|
|
110
|
-
type QueryArrayFormat = (typeof QueryArrayFormats)[number];
|
|
111
|
-
//#endregion
|
|
112
|
-
//#region ../transport/src/httpClient/types.d.ts
|
|
113
|
-
type HttpHeader = string | string[];
|
|
114
|
-
type HttpHeaders = {
|
|
115
|
-
[key: string]: HttpHeader;
|
|
116
|
-
};
|
|
117
|
-
type HttpQueryParamValue = {
|
|
118
|
-
value: string | string[];
|
|
119
|
-
arrayFormat?: QueryArrayFormat;
|
|
120
|
-
};
|
|
121
|
-
type HttpQueryParams = {
|
|
122
|
-
[key: string]: string | string[] | HttpQueryParamValue;
|
|
123
|
-
};
|
|
124
|
-
declare const HttpMethods: readonly ["get", "post", "put", "delete", "patch"];
|
|
125
|
-
type HttpMethod = (typeof HttpMethods)[number];
|
|
126
|
-
type HttpResponse<T = any, P$1 = any> = {
|
|
127
|
-
data: T;
|
|
128
|
-
status: number;
|
|
129
|
-
headers: HttpHeaders;
|
|
130
|
-
requestUrl: string;
|
|
131
|
-
responseType?: string;
|
|
132
|
-
responseTime?: Date;
|
|
133
|
-
message?: string;
|
|
134
|
-
body?: P$1;
|
|
135
|
-
};
|
|
136
|
-
type StreamHttpResponse = {
|
|
137
|
-
status: number;
|
|
138
|
-
headers: HttpHeaders;
|
|
139
|
-
stream: Readable;
|
|
140
|
-
requestUrl: string;
|
|
141
|
-
};
|
|
142
|
-
interface IHttpClient {
|
|
143
|
-
request<P$1, T>({
|
|
144
|
-
headers,
|
|
145
|
-
url,
|
|
146
|
-
method,
|
|
147
|
-
queryParams,
|
|
148
|
-
maxRedirects,
|
|
149
|
-
responseType,
|
|
150
|
-
cacheTTL,
|
|
151
|
-
context,
|
|
152
|
-
payload,
|
|
153
|
-
httpsAgent,
|
|
154
|
-
httpAgent,
|
|
155
|
-
requestConfig,
|
|
156
|
-
httpsAgentConfig
|
|
157
|
-
}: {
|
|
158
|
-
headers?: HttpHeaders;
|
|
159
|
-
url: string;
|
|
160
|
-
method?: HttpMethod;
|
|
161
|
-
queryParams?: HttpQueryParams;
|
|
162
|
-
maxRedirects?: number;
|
|
163
|
-
responseType?: 'arraybuffer' | 'blob' | 'document' | 'json' | 'text';
|
|
164
|
-
cacheTTL?: number;
|
|
165
|
-
context?: RequestContext;
|
|
166
|
-
payload?: P$1;
|
|
167
|
-
httpsAgent?: https.Agent;
|
|
168
|
-
httpAgent?: http.Agent;
|
|
169
|
-
requestConfig?: RequestConfig;
|
|
170
|
-
httpsAgentConfig?: https.AgentOptions;
|
|
171
|
-
}): Promise<HttpResponse<T>>;
|
|
172
|
-
get<T>({
|
|
173
|
-
headers,
|
|
174
|
-
url,
|
|
175
|
-
queryParams,
|
|
176
|
-
maxRedirects,
|
|
177
|
-
cacheTTL,
|
|
178
|
-
context,
|
|
179
|
-
requestConfig
|
|
180
|
-
}: {
|
|
181
|
-
headers?: HttpHeaders;
|
|
182
|
-
url: string;
|
|
183
|
-
queryParams?: HttpQueryParams;
|
|
184
|
-
maxRedirects?: number;
|
|
185
|
-
cacheTTL?: number;
|
|
186
|
-
context?: RequestContext;
|
|
187
|
-
requestConfig?: RequestConfig;
|
|
188
|
-
}): Promise<HttpResponse<T>>;
|
|
189
|
-
post<P$1, T>({
|
|
190
|
-
headers,
|
|
191
|
-
url,
|
|
192
|
-
maxRedirects,
|
|
193
|
-
cacheTTL,
|
|
194
|
-
context,
|
|
195
|
-
payload,
|
|
196
|
-
requestConfig
|
|
197
|
-
}: {
|
|
198
|
-
headers?: HttpHeaders;
|
|
199
|
-
url: string;
|
|
200
|
-
maxRedirects?: number;
|
|
201
|
-
cacheTTL?: number;
|
|
202
|
-
context?: RequestContext;
|
|
203
|
-
payload?: P$1;
|
|
204
|
-
requestConfig?: RequestConfig;
|
|
205
|
-
}): Promise<HttpResponse<T>>;
|
|
206
|
-
requestStream({
|
|
207
|
-
headers,
|
|
208
|
-
url,
|
|
209
|
-
method,
|
|
210
|
-
queryParams,
|
|
211
|
-
maxRedirects,
|
|
212
|
-
context,
|
|
213
|
-
traceId,
|
|
214
|
-
payload,
|
|
215
|
-
httpsAgent,
|
|
216
|
-
httpAgent,
|
|
217
|
-
requestConfig,
|
|
218
|
-
httpsAgentConfig
|
|
219
|
-
}: {
|
|
220
|
-
headers?: HttpHeaders;
|
|
221
|
-
url: string;
|
|
222
|
-
method?: HttpMethod;
|
|
223
|
-
queryParams?: HttpQueryParams;
|
|
224
|
-
maxRedirects?: number;
|
|
225
|
-
context?: RequestContext;
|
|
226
|
-
traceId?: string;
|
|
227
|
-
payload?: unknown;
|
|
228
|
-
httpsAgent?: https.Agent;
|
|
229
|
-
httpAgent?: http.Agent;
|
|
230
|
-
requestConfig?: RequestConfig;
|
|
231
|
-
httpsAgentConfig?: https.AgentOptions;
|
|
232
|
-
}): Promise<StreamHttpResponse>;
|
|
233
|
-
}
|
|
234
|
-
interface OperationSetting {
|
|
235
|
-
url?: string;
|
|
236
|
-
query?: Record<string, string>;
|
|
237
|
-
config?: Partial<APIConfig>;
|
|
238
|
-
custom_settings?: Record<string, unknown>;
|
|
239
|
-
}
|
|
240
|
-
type OperationSettings = Record<string, OperationSetting>;
|
|
241
|
-
type AccountSettings = Record<string, string | number | boolean | object>;
|
|
242
|
-
type HttpClientBehaviour = 'CONCURRENCY' | 'RETRY';
|
|
243
|
-
type APIConfig = Record<string, unknown>;
|
|
244
|
-
type RequestContext = {
|
|
245
|
-
accountSecureId?: string;
|
|
246
|
-
projectSecureId?: string;
|
|
247
|
-
organizationId?: number | string;
|
|
248
|
-
environment?: string;
|
|
249
|
-
authConfigKey?: string;
|
|
250
|
-
provider?: string;
|
|
251
|
-
service?: string;
|
|
252
|
-
resource?: string;
|
|
253
|
-
subResource?: string;
|
|
254
|
-
childResource?: string;
|
|
255
|
-
operation?: string;
|
|
256
|
-
action?: string;
|
|
257
|
-
mode?: string;
|
|
258
|
-
testerUniqueToken?: string;
|
|
259
|
-
externalKey?: string;
|
|
260
|
-
dataKey?: string;
|
|
261
|
-
isDataSync?: boolean;
|
|
262
|
-
operationSettings?: OperationSettings;
|
|
263
|
-
accountSettings?: AccountSettings;
|
|
264
|
-
behaviours?: HttpClientBehaviour[];
|
|
265
|
-
};
|
|
266
|
-
//#endregion
|
|
267
|
-
//#region ../transport/src/signing/types.d.ts
|
|
268
|
-
type Aws4SigningOptions = {
|
|
269
|
-
strategy: 'aws4';
|
|
270
|
-
service: string;
|
|
271
|
-
region?: string;
|
|
272
|
-
};
|
|
273
|
-
type HmacSigningOptions = {
|
|
274
|
-
strategy: 'hmac';
|
|
275
|
-
algorithm?: 'sha256' | 'sha512';
|
|
276
|
-
headerName?: string;
|
|
277
|
-
prefix?: string;
|
|
278
|
-
};
|
|
279
|
-
type SigningOptions = Aws4SigningOptions | HmacSigningOptions;
|
|
280
|
-
//#endregion
|
|
281
|
-
//#region ../olap/src/olap/olapOptions.d.ts
|
|
282
|
-
type OlapOptions = {
|
|
283
|
-
logs?: LogsOptions;
|
|
284
|
-
advanced?: AdvancedOptions;
|
|
285
|
-
defender?: DefenderOptions;
|
|
286
|
-
datasets?: DatasetsOptions;
|
|
287
|
-
};
|
|
288
|
-
type LogsOptions = {
|
|
289
|
-
enabled?: boolean;
|
|
290
|
-
};
|
|
291
|
-
type AdvancedOptions = {
|
|
292
|
-
enabled?: boolean;
|
|
293
|
-
ttl?: number;
|
|
294
|
-
errorsOnly?: boolean;
|
|
295
|
-
includeBackground?: boolean;
|
|
296
|
-
};
|
|
297
|
-
type DefenderOptions = {
|
|
298
|
-
enabled?: boolean;
|
|
299
|
-
};
|
|
300
|
-
type DatasetsOptions = {
|
|
301
|
-
enabled?: boolean;
|
|
302
|
-
includeBackground?: boolean;
|
|
303
|
-
};
|
|
304
|
-
//#endregion
|
|
305
|
-
//#region ../olap/src/advanced/types.d.ts
|
|
306
|
-
type ActionAdvancedLog = {
|
|
307
|
-
data: {
|
|
308
|
-
[key: string]: unknown;
|
|
309
|
-
};
|
|
310
|
-
metadata?: {
|
|
311
|
-
isBackgroundLog?: boolean;
|
|
312
|
-
expirationTime?: number;
|
|
313
|
-
};
|
|
314
|
-
};
|
|
315
|
-
type StepAdvancedLog = {
|
|
316
|
-
data: {
|
|
317
|
-
[key: string]: unknown;
|
|
318
|
-
};
|
|
319
|
-
metadata?: {
|
|
320
|
-
expirationTime?: number;
|
|
321
|
-
};
|
|
322
|
-
};
|
|
323
|
-
type UnifiedAdvancedLog = {
|
|
324
|
-
data: {
|
|
325
|
-
[key: string]: unknown;
|
|
326
|
-
};
|
|
327
|
-
metadata?: {
|
|
328
|
-
isBackgroundLog?: boolean;
|
|
329
|
-
expirationTime?: number;
|
|
330
|
-
};
|
|
331
|
-
};
|
|
332
|
-
type ProviderAdvancedLog = {
|
|
333
|
-
data: {
|
|
334
|
-
[key: string]: unknown;
|
|
335
|
-
};
|
|
336
|
-
metadata?: {
|
|
337
|
-
expirationTime?: number;
|
|
338
|
-
};
|
|
339
|
-
};
|
|
340
|
-
//#endregion
|
|
341
|
-
//#region ../olap/src/defender/types.d.ts
|
|
342
|
-
type DefenderLog = {
|
|
343
|
-
result?: {
|
|
344
|
-
riskLevel: string;
|
|
345
|
-
tier2Score?: number;
|
|
346
|
-
[key: string]: unknown;
|
|
347
|
-
};
|
|
348
|
-
[key: string]: unknown;
|
|
349
|
-
};
|
|
350
|
-
//#endregion
|
|
351
|
-
//#region ../olap/src/types.d.ts
|
|
352
|
-
interface IOlapClient {
|
|
353
|
-
recordAction(actionInput: ActionInput, actionResult: ActionResult, options?: OlapOptions): Promise<void>;
|
|
354
|
-
recordActions(actions: Array<{
|
|
355
|
-
input: ActionInput;
|
|
356
|
-
result: ActionResult;
|
|
357
|
-
}>, options?: OlapOptions): Promise<void>;
|
|
358
|
-
recordStep(stepInput: StepInput, stepResult: StepResult, options?: OlapOptions): Promise<void>;
|
|
359
|
-
recordSteps(steps: Array<{
|
|
360
|
-
input: StepInput;
|
|
361
|
-
result: StepResult;
|
|
362
|
-
}>, options?: OlapOptions): Promise<void>;
|
|
363
|
-
recordUnified(unifiedInput: UnifiedInput, unifiedResult: UnifiedResult, options?: OlapOptions): Promise<void>;
|
|
364
|
-
recordProvider(providerInput: ProviderInput, providerResult: ProviderResult, options?: OlapOptions): Promise<void>;
|
|
365
|
-
getLogs(organizationId: string, projectSecureId: string, query: Query): Promise<QueryResult>;
|
|
366
|
-
getActionLogs(organizationId: string, projectSecureId: string, query: ActionsQuery): Promise<ActionsQueryResult>;
|
|
367
|
-
getActionLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionLog | undefined>;
|
|
368
|
-
getLog(organizationId: string, projectSecureId: string, logId: string): Promise<ActionLog | UnifiedLog | undefined>;
|
|
369
|
-
getStepLogs(organizationId: string, projectSecureId: string, query: StepsQuery): Promise<StepsQueryResult>;
|
|
370
|
-
getStepLog(organizationId: string, projectSecureId: string, actionRunId: string, stepIndex: number): Promise<StepLog | undefined>;
|
|
371
|
-
getUnifiedLogs(organizationId: string, projectSecureId: string, query: UnifiedQuery): Promise<UnifiedQueryResult>;
|
|
372
|
-
getUnifiedLog(organizationId: string, projectSecureId: string, requestId: string): Promise<UnifiedLog | undefined>;
|
|
373
|
-
getProviderLogs(organizationId: string, projectSecureId: string, query: ProviderQuery): Promise<ProviderQueryResult>;
|
|
374
|
-
getProviderLog(organizationId: string, projectSecureId: string, requestId: string, id: string): Promise<ProviderLog | undefined>;
|
|
375
|
-
getActionAdvancedLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionAdvancedLog | undefined>;
|
|
376
|
-
getStepAdvancedLog(organizationId: string, projectSecureId: string, actionRunId: string, stepIndex: number): Promise<StepAdvancedLog | undefined>;
|
|
377
|
-
getUnifiedAdvancedLog(organizationId: string, projectSecureId: string, requestId: string): Promise<UnifiedAdvancedLog | undefined>;
|
|
378
|
-
getProviderAdvancedLog(organizationId: string, projectSecureId: string, requestId: string, id: string): Promise<ProviderAdvancedLog | undefined>;
|
|
379
|
-
getDefenderLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<DefenderLog | undefined>;
|
|
380
|
-
getLogsStatsAggregate(organizationId: string, projectSecureId: string, query: AggregateQuery): Promise<AggregateResult>;
|
|
381
|
-
getLogsStatsDimensions(organizationId: string, projectSecureId: string, query: DimensionsQuery): Promise<DimensionsResult>;
|
|
382
|
-
getSourceUsage(organizationId: string, projectSecureId: string, query: SourceQuery): Promise<SourceResult>;
|
|
383
|
-
}
|
|
384
|
-
type DefenderContext = {
|
|
385
|
-
result?: {
|
|
386
|
-
riskLevel: string;
|
|
387
|
-
tier2Score?: number;
|
|
388
|
-
[key: string]: unknown;
|
|
389
|
-
};
|
|
390
|
-
[key: string]: unknown;
|
|
391
|
-
};
|
|
392
|
-
type ActionInput = {
|
|
393
|
-
actionRunId: string;
|
|
394
|
-
actionId?: string;
|
|
395
|
-
mode: string;
|
|
396
|
-
connectorKey: string;
|
|
397
|
-
connectorVersion: string;
|
|
398
|
-
connectorOwner?: string;
|
|
399
|
-
connectorProfileId?: string;
|
|
400
|
-
actionType: string;
|
|
401
|
-
category?: string;
|
|
402
|
-
organizationId: string;
|
|
403
|
-
projectSecureId: string;
|
|
404
|
-
accountSecureId: string;
|
|
405
|
-
originOwnerId?: string;
|
|
406
|
-
originOwnerName?: string;
|
|
407
|
-
authType?: AuthType;
|
|
408
|
-
authId?: string;
|
|
409
|
-
sourceType?: SourceType;
|
|
410
|
-
userAgent?: string;
|
|
411
|
-
ipAddress?: string;
|
|
412
|
-
sessionId?: string;
|
|
413
|
-
agentId?: string;
|
|
414
|
-
transportType?: TransportType;
|
|
415
|
-
streamType?: StreamType;
|
|
416
|
-
isBackground?: boolean;
|
|
417
|
-
pathParams?: unknown;
|
|
418
|
-
queryParams?: unknown;
|
|
419
|
-
body?: unknown;
|
|
420
|
-
headers?: Record<string, string>;
|
|
421
|
-
httpMethod?: string;
|
|
422
|
-
url?: string;
|
|
423
|
-
path?: string;
|
|
424
|
-
resource?: string;
|
|
425
|
-
subResource?: string;
|
|
426
|
-
childResource?: string;
|
|
427
|
-
startTime?: Date;
|
|
428
|
-
};
|
|
429
|
-
type ActionResult = {
|
|
430
|
-
success?: boolean;
|
|
431
|
-
statusCode?: number;
|
|
432
|
-
message?: string;
|
|
433
|
-
headers?: Record<string, string>;
|
|
434
|
-
body?: unknown;
|
|
435
|
-
defenderContext?: DefenderContext;
|
|
436
|
-
endTime?: Date;
|
|
437
|
-
};
|
|
438
|
-
type StepInput = {
|
|
439
|
-
actionRunId: string;
|
|
440
|
-
actionMode: string;
|
|
441
|
-
actionSuccess?: boolean;
|
|
442
|
-
stepIndex: number;
|
|
443
|
-
stepId: string;
|
|
444
|
-
stepFunctionName?: string;
|
|
445
|
-
stepFunctionVersion?: string;
|
|
446
|
-
stepIterations?: number;
|
|
447
|
-
organizationId: string;
|
|
448
|
-
projectSecureId: string;
|
|
449
|
-
accountSecureId: string;
|
|
450
|
-
inputs?: {
|
|
451
|
-
[key: string]: unknown;
|
|
452
|
-
};
|
|
453
|
-
startTime?: Date;
|
|
454
|
-
};
|
|
455
|
-
type StepResult = {
|
|
456
|
-
success?: boolean;
|
|
457
|
-
statusCode?: number;
|
|
458
|
-
message?: string;
|
|
459
|
-
outputs?: unknown;
|
|
460
|
-
errors?: unknown;
|
|
461
|
-
skipped?: boolean;
|
|
462
|
-
endTime?: Date;
|
|
463
|
-
};
|
|
464
|
-
type UnifiedInput = {
|
|
465
|
-
requestId: string;
|
|
466
|
-
organizationId: string;
|
|
467
|
-
projectSecureId: string;
|
|
468
|
-
accountSecureId: string;
|
|
469
|
-
originOwnerId?: string;
|
|
470
|
-
originOwnerName?: string;
|
|
471
|
-
connectorKey: string;
|
|
472
|
-
action?: string;
|
|
473
|
-
service?: string;
|
|
474
|
-
mode?: string;
|
|
475
|
-
httpMethod?: string;
|
|
476
|
-
url?: string;
|
|
477
|
-
path?: string;
|
|
478
|
-
queryParams?: unknown;
|
|
479
|
-
body?: unknown;
|
|
480
|
-
headers?: Record<string, string>;
|
|
481
|
-
resource?: string;
|
|
482
|
-
subResource?: string;
|
|
483
|
-
childResource?: string;
|
|
484
|
-
authType?: AuthType;
|
|
485
|
-
authId?: string;
|
|
486
|
-
sourceType?: SourceType;
|
|
487
|
-
userAgent?: string;
|
|
488
|
-
ipAddress?: string;
|
|
489
|
-
transportType?: TransportType;
|
|
490
|
-
isBackground?: boolean;
|
|
491
|
-
startTime?: Date;
|
|
492
|
-
};
|
|
493
|
-
type UnifiedResult = {
|
|
494
|
-
success?: boolean;
|
|
495
|
-
statusCode?: number;
|
|
496
|
-
message?: string;
|
|
497
|
-
headers?: Record<string, string>;
|
|
498
|
-
body?: unknown;
|
|
499
|
-
endTime?: Date;
|
|
500
|
-
};
|
|
501
|
-
type ProviderInput = {
|
|
502
|
-
requestId: string;
|
|
503
|
-
id: string;
|
|
504
|
-
organizationId: string;
|
|
505
|
-
projectSecureId: string;
|
|
506
|
-
accountSecureId: string;
|
|
507
|
-
originOwnerId?: string;
|
|
508
|
-
originOwnerName?: string;
|
|
509
|
-
connectorKey: string;
|
|
510
|
-
action: string;
|
|
511
|
-
service: string;
|
|
512
|
-
mode: string;
|
|
513
|
-
httpMethod: string;
|
|
514
|
-
url: string;
|
|
515
|
-
path?: string;
|
|
516
|
-
queryParams?: unknown;
|
|
517
|
-
headers?: Record<string, string>;
|
|
518
|
-
body?: unknown;
|
|
519
|
-
resource?: string;
|
|
520
|
-
subResource?: string;
|
|
521
|
-
childResource?: string;
|
|
522
|
-
startTime?: Date;
|
|
523
|
-
};
|
|
524
|
-
type ProviderResult = {
|
|
525
|
-
success?: boolean;
|
|
526
|
-
statusCode?: number;
|
|
527
|
-
headers?: Record<string, string>;
|
|
528
|
-
body?: unknown;
|
|
529
|
-
errors?: unknown;
|
|
530
|
-
endTime?: Date;
|
|
531
|
-
};
|
|
532
|
-
//#endregion
|
|
533
|
-
//#region ../olap/src/logs/types.d.ts
|
|
534
|
-
declare const LogType: {
|
|
535
|
-
readonly Action: "action";
|
|
536
|
-
readonly Step: "step";
|
|
537
|
-
readonly Unified: "unified";
|
|
538
|
-
readonly Provider: "provider";
|
|
539
|
-
};
|
|
540
|
-
type LogType = (typeof LogType)[keyof typeof LogType];
|
|
541
|
-
type Query = {
|
|
542
|
-
organizationId?: string | string[];
|
|
543
|
-
projectSecureId?: string | string[];
|
|
544
|
-
actionRunId?: string | string[];
|
|
545
|
-
accountSecureId?: string | string[];
|
|
546
|
-
actionId?: string | string[];
|
|
547
|
-
connectorKey?: string | string[];
|
|
548
|
-
mode?: string | string[];
|
|
549
|
-
category?: string | string[];
|
|
550
|
-
requestId?: string | string[];
|
|
551
|
-
provider?: string | string[];
|
|
552
|
-
service?: string | string[];
|
|
553
|
-
resource?: string | string[];
|
|
554
|
-
subResource?: string | string[];
|
|
555
|
-
childResource?: string | string[];
|
|
556
|
-
action?: string | string[];
|
|
557
|
-
statusCode?: string | string[];
|
|
558
|
-
sourceId?: string | string[];
|
|
559
|
-
sourceType?: string | string[];
|
|
560
|
-
sourceValue?: string | string[];
|
|
561
|
-
originOwnerId?: string | string[];
|
|
562
|
-
httpMethod?: string | string[];
|
|
563
|
-
isBackground?: boolean;
|
|
564
|
-
logId?: string | string[];
|
|
565
|
-
logType?: (typeof LogType.Action | typeof LogType.Unified) | (typeof LogType.Action | typeof LogType.Unified)[];
|
|
566
|
-
success?: boolean;
|
|
567
|
-
startTime?: Date;
|
|
568
|
-
endTime?: Date;
|
|
569
|
-
pageNumber?: number;
|
|
570
|
-
pageSize?: number;
|
|
571
|
-
};
|
|
572
|
-
type QueryResult = {
|
|
573
|
-
logs: Array<ActionLog | UnifiedLog | StepLog | ProviderLog>;
|
|
574
|
-
total: number;
|
|
575
|
-
pageNumber: number;
|
|
576
|
-
pageSize: number;
|
|
577
|
-
};
|
|
578
|
-
type ActionsQuery = {
|
|
579
|
-
organizationId?: string | string[];
|
|
580
|
-
projectSecureId?: string | string[];
|
|
581
|
-
actionRunId?: string | string[];
|
|
582
|
-
accountSecureId?: string | string[];
|
|
583
|
-
actionId?: string | string[];
|
|
584
|
-
connectorKey?: string | string[];
|
|
585
|
-
mode?: string | string[];
|
|
586
|
-
category?: string | string[];
|
|
587
|
-
isBackground?: boolean;
|
|
588
|
-
success?: boolean;
|
|
589
|
-
startTime?: Date;
|
|
590
|
-
endTime?: Date;
|
|
591
|
-
pageNumber?: number;
|
|
592
|
-
pageSize?: number;
|
|
593
|
-
};
|
|
594
|
-
type ActionsQueryResult = {
|
|
595
|
-
actionLogs: ActionLog[];
|
|
596
|
-
total: number;
|
|
597
|
-
pageNumber: number;
|
|
598
|
-
pageSize: number;
|
|
599
|
-
};
|
|
600
|
-
type StepsQuery = {
|
|
601
|
-
organizationId?: string | string[];
|
|
602
|
-
projectSecureId?: string | string[];
|
|
603
|
-
accountSecureId?: string | string[];
|
|
604
|
-
actionRunId?: string | string[];
|
|
605
|
-
stepId?: string | string[];
|
|
606
|
-
stepIndex?: number | number[];
|
|
607
|
-
success?: boolean;
|
|
608
|
-
startTime?: Date;
|
|
609
|
-
endTime?: Date;
|
|
610
|
-
pageNumber?: number;
|
|
611
|
-
pageSize?: number;
|
|
612
|
-
};
|
|
613
|
-
type StepsQueryResult = {
|
|
614
|
-
stepLogs: StepLog[];
|
|
615
|
-
total: number;
|
|
616
|
-
pageNumber: number;
|
|
617
|
-
pageSize: number;
|
|
618
|
-
};
|
|
619
|
-
type UnifiedQuery = {
|
|
620
|
-
organizationId?: string | string[];
|
|
621
|
-
projectSecureId?: string | string[];
|
|
622
|
-
accountSecureId?: string | string[];
|
|
623
|
-
requestId?: string | string[];
|
|
624
|
-
connectorKey?: string | string[];
|
|
625
|
-
resource?: string | string[];
|
|
626
|
-
source?: string | string[];
|
|
627
|
-
category?: string | string[];
|
|
628
|
-
originOwnerId?: string | string[];
|
|
629
|
-
isBackground?: boolean;
|
|
630
|
-
success?: boolean;
|
|
631
|
-
startTime?: Date;
|
|
632
|
-
endTime?: Date;
|
|
633
|
-
pageNumber?: number;
|
|
634
|
-
pageSize?: number;
|
|
635
|
-
};
|
|
636
|
-
type UnifiedQueryResult = {
|
|
637
|
-
unifiedLogs: UnifiedLog[];
|
|
638
|
-
total: number;
|
|
639
|
-
pageNumber: number;
|
|
640
|
-
pageSize: number;
|
|
641
|
-
};
|
|
642
|
-
type ProviderQuery = {
|
|
643
|
-
organizationId?: string | string[];
|
|
644
|
-
projectSecureId?: string | string[];
|
|
645
|
-
accountSecureId?: string | string[];
|
|
646
|
-
requestId?: string | string[];
|
|
647
|
-
id?: string | string[];
|
|
648
|
-
success?: boolean;
|
|
649
|
-
startTime?: Date;
|
|
650
|
-
endTime?: Date;
|
|
651
|
-
pageNumber?: number;
|
|
652
|
-
pageSize?: number;
|
|
653
|
-
};
|
|
654
|
-
type ProviderQueryResult = {
|
|
655
|
-
providerLogs: ProviderLog[];
|
|
656
|
-
total: number;
|
|
657
|
-
pageNumber: number;
|
|
658
|
-
pageSize: number;
|
|
659
|
-
};
|
|
660
|
-
type IntervalType = 'minute' | 'hour' | 'day' | 'week' | 'month';
|
|
661
|
-
declare const Dimension: {
|
|
662
|
-
readonly ConnectorKey: "connector_key";
|
|
663
|
-
readonly Success: "success";
|
|
664
|
-
readonly ActionType: "action_type";
|
|
665
|
-
readonly Mode: "mode";
|
|
666
|
-
readonly Service: "service";
|
|
667
|
-
readonly Resource: "resource";
|
|
668
|
-
readonly ActionId: "action_id";
|
|
669
|
-
readonly HttpMethod: "http_method";
|
|
670
|
-
readonly AccountSecureId: "account_secure_id";
|
|
671
|
-
readonly SourceType: "source_type";
|
|
672
|
-
readonly StatusCode: "status_code";
|
|
673
|
-
readonly OriginOwnerId: "origin_owner_id";
|
|
674
|
-
readonly SourceId: "source_id";
|
|
675
|
-
readonly IsBackground: "is_background";
|
|
676
|
-
};
|
|
677
|
-
type Dimension = (typeof Dimension)[keyof typeof Dimension];
|
|
678
|
-
type AggregateQuery = Partial<Query> & {
|
|
679
|
-
dimensions?: Dimension[];
|
|
680
|
-
intervalType?: IntervalType;
|
|
681
|
-
intervalPeriod?: number;
|
|
682
|
-
};
|
|
683
|
-
type AggregateResult = {
|
|
684
|
-
data: Array<{
|
|
685
|
-
start_time?: string;
|
|
686
|
-
count: number;
|
|
687
|
-
[dimension: string]: unknown;
|
|
688
|
-
}>;
|
|
689
|
-
};
|
|
690
|
-
type DimensionsQuery = Partial<Query> & {
|
|
691
|
-
dimensions: Dimension[];
|
|
692
|
-
maxValues?: number;
|
|
693
|
-
};
|
|
694
|
-
type DimensionsResult = {
|
|
695
|
-
[dimension: string]: Array<{
|
|
696
|
-
value: string;
|
|
697
|
-
count: number;
|
|
698
|
-
}>;
|
|
699
|
-
};
|
|
700
|
-
type SourceQuery = Partial<Query>;
|
|
701
|
-
type SourceResult = Array<{
|
|
702
|
-
sourceId: string;
|
|
703
|
-
sourceType: string;
|
|
704
|
-
requestCount: number;
|
|
705
|
-
lastRequest: string;
|
|
706
|
-
}>;
|
|
707
|
-
interface ILog {
|
|
708
|
-
logType: LogType;
|
|
709
|
-
eventTime: Date;
|
|
710
|
-
startTime: Date;
|
|
711
|
-
endTime?: Date;
|
|
712
|
-
durationMs?: number;
|
|
713
|
-
organizationId: string;
|
|
714
|
-
projectSecureId?: string;
|
|
715
|
-
accountSecureId?: string;
|
|
716
|
-
}
|
|
717
|
-
type ActionLog = ILog & {
|
|
718
|
-
logType: typeof LogType.Action;
|
|
719
|
-
actionRunId: string;
|
|
720
|
-
actionId: string;
|
|
721
|
-
connectorKey: string;
|
|
722
|
-
connectorVersion: string;
|
|
723
|
-
connectorOwner?: string;
|
|
724
|
-
connectorProfileId?: string;
|
|
725
|
-
organizationId: string;
|
|
726
|
-
projectSecureId: string;
|
|
727
|
-
accountSecureId: string;
|
|
728
|
-
actionType?: string;
|
|
729
|
-
mode?: string;
|
|
730
|
-
category?: string;
|
|
731
|
-
originOwnerId?: string;
|
|
732
|
-
originOwnerName?: string;
|
|
733
|
-
httpMethod?: string;
|
|
734
|
-
url?: string;
|
|
735
|
-
sourceType?: SourceType;
|
|
736
|
-
sourceId?: string;
|
|
737
|
-
sourceValue?: string;
|
|
738
|
-
authType?: AuthType;
|
|
739
|
-
authId?: string;
|
|
740
|
-
userAgent?: string;
|
|
741
|
-
ipAddress?: string;
|
|
742
|
-
sessionId?: string;
|
|
743
|
-
agentId?: string;
|
|
744
|
-
transportType?: TransportType;
|
|
745
|
-
streamType?: StreamType;
|
|
746
|
-
isBackground?: boolean;
|
|
747
|
-
success?: boolean;
|
|
748
|
-
statusCode?: number;
|
|
749
|
-
riskLevel?: string;
|
|
750
|
-
tier2Score?: number;
|
|
751
|
-
advancedExpiresAt?: Date;
|
|
752
|
-
defenderExpiresAt?: Date;
|
|
753
|
-
};
|
|
754
|
-
type StepLog = ILog & {
|
|
755
|
-
logType: typeof LogType.Step;
|
|
756
|
-
actionRunId: string;
|
|
757
|
-
stepIndex: number;
|
|
758
|
-
stepId: string;
|
|
759
|
-
stepFunctionName?: string;
|
|
760
|
-
stepFunctionVersion?: string;
|
|
761
|
-
stepIterations?: number;
|
|
762
|
-
organizationId: string;
|
|
763
|
-
projectSecureId: string;
|
|
764
|
-
accountSecureId: string;
|
|
765
|
-
skipped?: boolean;
|
|
766
|
-
success?: boolean;
|
|
767
|
-
statusCode?: number;
|
|
768
|
-
message?: string;
|
|
769
|
-
};
|
|
770
|
-
type UnifiedLog = ILog & {
|
|
771
|
-
logType: typeof LogType.Unified;
|
|
772
|
-
requestId: string;
|
|
773
|
-
organizationId: string;
|
|
774
|
-
projectSecureId: string;
|
|
775
|
-
accountSecureId: string;
|
|
776
|
-
connectorKey: string;
|
|
777
|
-
connectorVersion?: string;
|
|
778
|
-
mode?: string;
|
|
779
|
-
httpMethod?: string;
|
|
780
|
-
url?: string;
|
|
781
|
-
path?: string;
|
|
782
|
-
resource?: string;
|
|
783
|
-
subResource?: string;
|
|
784
|
-
childResource?: string;
|
|
785
|
-
service?: string;
|
|
786
|
-
action?: string;
|
|
787
|
-
sourceId?: string;
|
|
788
|
-
sourceType?: SourceType;
|
|
789
|
-
sourceValue?: string;
|
|
790
|
-
authType?: AuthType;
|
|
791
|
-
authId?: string;
|
|
792
|
-
userAgent?: string;
|
|
793
|
-
ipAddress?: string;
|
|
794
|
-
sessionId?: string;
|
|
795
|
-
agentId?: string;
|
|
796
|
-
transportType?: TransportType;
|
|
797
|
-
streamType?: StreamType;
|
|
798
|
-
isBackground?: boolean;
|
|
799
|
-
originOwnerId?: string;
|
|
800
|
-
originOwnerName?: string;
|
|
801
|
-
statusCode?: number;
|
|
802
|
-
success?: boolean;
|
|
803
|
-
isWorker?: boolean;
|
|
804
|
-
status?: number;
|
|
805
|
-
provider?: string;
|
|
806
|
-
eventDatetime?: Date;
|
|
807
|
-
duration?: number;
|
|
808
|
-
advancedExpiresAt?: Date;
|
|
809
|
-
};
|
|
810
|
-
type ProviderLog = ILog & {
|
|
811
|
-
logType: typeof LogType.Provider;
|
|
812
|
-
requestId: string;
|
|
813
|
-
id?: string;
|
|
814
|
-
organizationId: string;
|
|
815
|
-
projectSecureId: string;
|
|
816
|
-
accountSecureId: string;
|
|
817
|
-
connectorKey: string;
|
|
818
|
-
connectorVersion?: string;
|
|
819
|
-
action: string;
|
|
820
|
-
mode?: string;
|
|
821
|
-
httpMethod: string;
|
|
822
|
-
originOwnerId?: string;
|
|
823
|
-
originOwnerName?: string;
|
|
824
|
-
url: string;
|
|
825
|
-
path?: string;
|
|
826
|
-
resource?: string;
|
|
827
|
-
subResource?: string;
|
|
828
|
-
childResource?: string;
|
|
829
|
-
service?: string;
|
|
830
|
-
success?: boolean;
|
|
831
|
-
statusCode?: number;
|
|
832
|
-
isWorker?: boolean;
|
|
833
|
-
status?: number;
|
|
834
|
-
provider?: string;
|
|
835
|
-
eventDatetime?: Date;
|
|
836
|
-
duration?: number;
|
|
837
|
-
};
|
|
838
|
-
//#endregion
|
|
839
|
-
//#region ../core/src/categories/types.d.ts
|
|
840
|
-
type Category = 'hris' | 'crm' | 'ats' | 'lms' | 'marketing' | 'filestorage' | 'iam' | 'internal' | 'action';
|
|
841
|
-
//#endregion
|
|
842
|
-
//#region ../core/src/compositeIds/types.d.ts
|
|
843
|
-
type ComponentConfig = {
|
|
844
|
-
name: string;
|
|
845
|
-
alias?: string;
|
|
846
|
-
};
|
|
847
|
-
type ComponentFieldConfig = {
|
|
848
|
-
targetFieldKey: string;
|
|
849
|
-
remote?: string;
|
|
850
|
-
components: ComponentConfig[];
|
|
851
|
-
};
|
|
852
|
-
type CompositeIdentifierConnectorConfig = {
|
|
853
|
-
enabled: boolean;
|
|
854
|
-
version?: number;
|
|
855
|
-
fields?: ComponentFieldConfig[];
|
|
856
|
-
};
|
|
857
|
-
//#endregion
|
|
858
|
-
//#region ../core/src/exhaustivePagination/basePaginationConfig.d.ts
|
|
859
|
-
type IteratorLocation = 'query' | 'body' | 'headers';
|
|
860
|
-
interface BasePaginationConfig {
|
|
861
|
-
type: string;
|
|
862
|
-
response: {
|
|
863
|
-
dataKey: string;
|
|
864
|
-
};
|
|
865
|
-
stopCondition?: string;
|
|
866
|
-
}
|
|
867
|
-
//#endregion
|
|
868
|
-
//#region ../core/src/exhaustivePagination/cursorPaginationConfig.d.ts
|
|
869
|
-
interface CursorPaginationConfig extends BasePaginationConfig {
|
|
870
|
-
type: 'cursor';
|
|
871
|
-
response: {
|
|
872
|
-
dataKey: string;
|
|
873
|
-
nextKey: string;
|
|
874
|
-
};
|
|
875
|
-
iterator: {
|
|
876
|
-
key: string;
|
|
877
|
-
in: IteratorLocation;
|
|
878
|
-
};
|
|
879
|
-
}
|
|
880
|
-
//#endregion
|
|
881
|
-
//#region ../core/src/exhaustivePagination/offsetPaginationConfig.d.ts
|
|
882
|
-
interface OffsetPaginationConfig extends BasePaginationConfig {
|
|
883
|
-
type: 'offset';
|
|
884
|
-
iterator: {
|
|
885
|
-
offsetKey: string;
|
|
886
|
-
limitKey: string;
|
|
887
|
-
in: IteratorLocation;
|
|
888
|
-
defaultLimit?: number;
|
|
889
|
-
};
|
|
890
|
-
}
|
|
891
|
-
//#endregion
|
|
892
|
-
//#region ../core/src/exhaustivePagination/pagePaginationConfig.d.ts
|
|
893
|
-
interface PagePaginationConfig extends BasePaginationConfig {
|
|
894
|
-
type: 'page';
|
|
895
|
-
iterator: {
|
|
896
|
-
pageKey: string;
|
|
897
|
-
pageSizeKey?: string;
|
|
898
|
-
in: IteratorLocation;
|
|
899
|
-
startPage?: number;
|
|
900
|
-
defaultPageSize?: number;
|
|
901
|
-
};
|
|
902
|
-
}
|
|
903
|
-
//#endregion
|
|
904
|
-
//#region ../core/src/exhaustivePagination/index.d.ts
|
|
905
|
-
type PaginationConfig = CursorPaginationConfig | OffsetPaginationConfig | PagePaginationConfig;
|
|
906
|
-
//#endregion
|
|
907
|
-
//#region ../core/src/incrementalSync/baseIncrementalConfig.d.ts
|
|
908
|
-
interface BaseIncrementalConfig {
|
|
909
|
-
type: string;
|
|
910
|
-
iterator: {
|
|
911
|
-
key: string;
|
|
912
|
-
in: IteratorLocation;
|
|
913
|
-
};
|
|
914
|
-
}
|
|
915
|
-
//#endregion
|
|
916
|
-
//#region ../core/src/incrementalSync/deltaTokenConfig.d.ts
|
|
917
|
-
interface DeltaTokenIncrementalConfig extends BaseIncrementalConfig {
|
|
918
|
-
type: 'delta_token';
|
|
919
|
-
response: {
|
|
920
|
-
path: string;
|
|
921
|
-
onlyOnFinalPage?: boolean;
|
|
922
|
-
};
|
|
923
|
-
}
|
|
924
|
-
//#endregion
|
|
925
|
-
//#region ../core/src/incrementalSync/timeFilterConfig.d.ts
|
|
926
|
-
interface TimeFilterIncrementalConfig extends BaseIncrementalConfig {
|
|
927
|
-
type: 'time_filter';
|
|
928
|
-
format: 'iso8601' | 'unix_seconds' | 'unix_millis';
|
|
929
|
-
safetyBufferSeconds?: number;
|
|
930
|
-
}
|
|
931
|
-
//#endregion
|
|
932
|
-
//#region ../core/src/incrementalSync/checkpoint.d.ts
|
|
933
|
-
type Checkpoint = {
|
|
934
|
-
kind: 'timestamp';
|
|
935
|
-
value: string;
|
|
936
|
-
} | {
|
|
937
|
-
kind: 'cursor';
|
|
938
|
-
value: string;
|
|
939
|
-
};
|
|
940
|
-
//#endregion
|
|
941
|
-
//#region ../core/src/incrementalSync/index.d.ts
|
|
942
|
-
type IncrementalConfig = TimeFilterIncrementalConfig | DeltaTokenIncrementalConfig;
|
|
943
|
-
//#endregion
|
|
944
|
-
//#region ../core/src/schema/types.d.ts
|
|
945
|
-
type Schema = {
|
|
946
|
-
name: string;
|
|
947
|
-
key: string;
|
|
948
|
-
version: string;
|
|
949
|
-
description?: string;
|
|
950
|
-
category: Category;
|
|
951
|
-
fields: {
|
|
952
|
-
[name: string]: SchemaField;
|
|
953
|
-
};
|
|
954
|
-
};
|
|
955
|
-
type SchemaField = {
|
|
956
|
-
name: string;
|
|
957
|
-
type: string;
|
|
958
|
-
required: boolean;
|
|
959
|
-
description?: string;
|
|
960
|
-
};
|
|
961
|
-
//#endregion
|
|
962
|
-
//#region ../core/src/stepFunctions/stepFunctionsList.d.ts
|
|
963
|
-
declare enum StepFunctionName {
|
|
964
|
-
TYPECAST = "typecast",
|
|
965
|
-
MAP_FIELDS = "map_fields",
|
|
966
|
-
GROUP_DATA = "group_data",
|
|
967
|
-
REQUEST = "request",
|
|
968
|
-
PAGINATED_REQUEST = "paginated_request",
|
|
969
|
-
SOAP_REQUEST = "soap_request",
|
|
970
|
-
SOAP_PAGINATED_REQUEST = "soap_paginated_request",
|
|
971
|
-
STATIC_VALUES = "static_values",
|
|
972
|
-
UPLOAD_FILE = "upload_file",
|
|
973
|
-
UPLOAD_BINARY = "upload_binary",
|
|
974
|
-
DOWNLOAD_FILE = "download_file",
|
|
975
|
-
EMIT_EVENT = "emit_event",
|
|
976
|
-
BROWSER_USE = "browser_use",
|
|
977
|
-
CODE_EXECUTION_LAMBDA = "code_execution_lambda",
|
|
978
|
-
SIGN_JWT = "sign_jwt",
|
|
979
|
-
}
|
|
980
|
-
//#endregion
|
|
981
|
-
//#region ../core/src/stepFunctions/types.d.ts
|
|
982
|
-
type StepFunction = ({
|
|
983
|
-
block,
|
|
984
|
-
params
|
|
985
|
-
}: {
|
|
986
|
-
block: Readonly<Block>;
|
|
987
|
-
params?: StepFunctionParams;
|
|
988
|
-
}) => Promise<StepFunctionOutput>;
|
|
989
|
-
type StepFunctionParams = {
|
|
990
|
-
[key: string]: unknown;
|
|
991
|
-
};
|
|
992
|
-
type StepFunctionMeta = {
|
|
993
|
-
functionName: StepFunctionName;
|
|
994
|
-
params?: StepFunctionParams;
|
|
995
|
-
version?: string;
|
|
996
|
-
};
|
|
997
|
-
type StepFunctionInstance = {
|
|
998
|
-
fn: StepFunction;
|
|
999
|
-
inputSchema?: ZodType;
|
|
1000
|
-
outputSchema?: ZodType;
|
|
1001
|
-
};
|
|
1002
|
-
type StreamOutputData = {
|
|
1003
|
-
stream: Readable;
|
|
1004
|
-
headers: HttpHeaders;
|
|
1005
|
-
contentDisposition: string;
|
|
1006
|
-
fileMetadata: {
|
|
1007
|
-
contentType?: string;
|
|
1008
|
-
contentLength?: number;
|
|
1009
|
-
fileName?: string;
|
|
1010
|
-
lastModified?: string;
|
|
1011
|
-
etag?: string;
|
|
1012
|
-
};
|
|
1013
|
-
};
|
|
1014
|
-
type StepFunctionOutput = {
|
|
1015
|
-
block: Block;
|
|
1016
|
-
successful: boolean;
|
|
1017
|
-
errors?: StepError[];
|
|
1018
|
-
output?: {
|
|
1019
|
-
[name: string]: unknown;
|
|
1020
|
-
};
|
|
1021
|
-
streamOutput?: StreamOutputData;
|
|
1022
|
-
};
|
|
1023
|
-
//#endregion
|
|
1024
|
-
//#region ../core/src/steps/types.d.ts
|
|
1025
|
-
type StepSnapshot = {
|
|
1026
|
-
output?: {
|
|
1027
|
-
[name: string]: unknown;
|
|
1028
|
-
};
|
|
1029
|
-
successful: boolean;
|
|
1030
|
-
skipped?: boolean;
|
|
1031
|
-
message?: string;
|
|
1032
|
-
errors?: StepError[];
|
|
1033
|
-
statistics?: StepStatistics;
|
|
1034
|
-
};
|
|
1035
|
-
type StepsSnapshots = {
|
|
1036
|
-
[stepId: string]: StepSnapshot;
|
|
1037
|
-
};
|
|
1038
|
-
type IntermediateStepsSnapshots = {
|
|
1039
|
-
[stepId: string]: IntermediateStepSnapshot;
|
|
1040
|
-
};
|
|
1041
|
-
type IntermediateStepSnapshot = {
|
|
1042
|
-
[interationIndex: number]: {
|
|
1043
|
-
iterator?: string;
|
|
1044
|
-
snapshot: StepSnapshot;
|
|
1045
|
-
};
|
|
1046
|
-
};
|
|
1047
|
-
type StepError = {
|
|
1048
|
-
[key: string]: unknown;
|
|
1049
|
-
};
|
|
1050
|
-
type BaseStep = {
|
|
1051
|
-
id: string;
|
|
1052
|
-
description: string;
|
|
1053
|
-
ignoreError?: boolean;
|
|
1054
|
-
async?: boolean;
|
|
1055
|
-
successCriteria?: string;
|
|
1056
|
-
condition?: string;
|
|
1057
|
-
};
|
|
1058
|
-
type SimpleStep = BaseStep & {
|
|
1059
|
-
stepFunction: StepFunctionMeta;
|
|
1060
|
-
};
|
|
1061
|
-
type ForeachStep = BaseStep & {
|
|
1062
|
-
iterator: string;
|
|
1063
|
-
} & ({
|
|
1064
|
-
stepFunction: StepFunctionMeta;
|
|
1065
|
-
stepFunctions?: never;
|
|
1066
|
-
} | {
|
|
1067
|
-
stepFunction?: never;
|
|
1068
|
-
stepFunctions: StepFunctionMeta[];
|
|
1069
|
-
});
|
|
1070
|
-
type Step = SimpleStep | ForeachStep;
|
|
1071
|
-
type StepStatistics = {
|
|
1072
|
-
startTime?: Date;
|
|
1073
|
-
endTime?: Date;
|
|
1074
|
-
};
|
|
1075
|
-
//#endregion
|
|
1076
|
-
//#region ../core/src/connector/types.d.ts
|
|
1077
|
-
declare const ReleaseStages: readonly ["preview", "beta", "ga", "deprecated", "internal"];
|
|
1078
|
-
type ReleaseStage = (typeof ReleaseStages)[number];
|
|
1079
|
-
type ReleaseStages = 'preview' | 'beta' | 'ga' | 'deprecated' | 'internal';
|
|
1080
|
-
type ScopeDefinition = {
|
|
1081
|
-
name: string;
|
|
1082
|
-
description: string;
|
|
1083
|
-
includes?: string[];
|
|
1084
|
-
};
|
|
1085
|
-
type DocumentationReference = {
|
|
1086
|
-
title: string;
|
|
1087
|
-
url: string;
|
|
1088
|
-
description?: string;
|
|
1089
|
-
};
|
|
1090
|
-
type ConnectorDocumentation = {
|
|
1091
|
-
references: DocumentationReference[];
|
|
1092
|
-
};
|
|
1093
|
-
type EventRouterRule = {
|
|
1094
|
-
when: string;
|
|
1095
|
-
then: {
|
|
1096
|
-
action: string;
|
|
1097
|
-
input?: Record<string, unknown>;
|
|
1098
|
-
};
|
|
1099
|
-
};
|
|
1100
|
-
type EventRouter = {
|
|
1101
|
-
rules: EventRouterRule[];
|
|
1102
|
-
};
|
|
1103
|
-
type EventToEmit = {
|
|
1104
|
-
eventType: string;
|
|
1105
|
-
eventId?: string;
|
|
1106
|
-
eventDate?: string;
|
|
1107
|
-
data?: unknown;
|
|
1108
|
-
};
|
|
1109
|
-
type WebhookSetupPhaseKind = 'creation' | 'activation' | 'deletion';
|
|
1110
|
-
type WebhookSetupPhase = {
|
|
1111
|
-
steps: {
|
|
1112
|
-
[stepId: string]: Step;
|
|
1113
|
-
};
|
|
1114
|
-
result?: string;
|
|
1115
|
-
};
|
|
1116
|
-
type WebhookSetup = {
|
|
1117
|
-
creation: WebhookSetupPhase;
|
|
1118
|
-
activation?: WebhookSetupPhase;
|
|
1119
|
-
deletion: WebhookSetupPhase;
|
|
1120
|
-
isConsolidated?: boolean;
|
|
1121
|
-
};
|
|
1122
|
-
type EventGuides = {
|
|
1123
|
-
setup?: Guide;
|
|
1124
|
-
};
|
|
1125
|
-
type ConnectorEvents = {
|
|
1126
|
-
setup?: WebhookSetup;
|
|
1127
|
-
guides?: EventGuides;
|
|
1128
|
-
actions?: {
|
|
1129
|
-
[actionId: string]: Action;
|
|
1130
|
-
};
|
|
1131
|
-
router?: EventRouter;
|
|
1132
|
-
externalAccountIdExtractor?: Action;
|
|
1133
|
-
};
|
|
1134
|
-
type Connector = {
|
|
1135
|
-
title: string;
|
|
1136
|
-
version: string;
|
|
1137
|
-
key: string;
|
|
1138
|
-
assets: Assets;
|
|
1139
|
-
resources?: string;
|
|
1140
|
-
documentation?: ConnectorDocumentation;
|
|
1141
|
-
description: string;
|
|
1142
|
-
details?: string;
|
|
1143
|
-
categories?: Category[];
|
|
1144
|
-
scopeDefinitions?: {
|
|
1145
|
-
[scopeName: string]: ScopeDefinition;
|
|
1146
|
-
};
|
|
1147
|
-
authentication?: Authentication;
|
|
1148
|
-
actions?: {
|
|
1149
|
-
[actionId: string]: Action;
|
|
1150
|
-
};
|
|
1151
|
-
events?: ConnectorEvents;
|
|
1152
|
-
rateLimit?: RateLimitConfig;
|
|
1153
|
-
concurrency?: ConcurrencyConfig;
|
|
1154
|
-
releaseStage?: ReleaseStage;
|
|
1155
|
-
forkedFrom?: string;
|
|
1156
|
-
owner?: string;
|
|
1157
|
-
};
|
|
1158
|
-
type Assets = {
|
|
1159
|
-
icon: string;
|
|
1160
|
-
};
|
|
1161
|
-
type ActionType = 'list' | 'get' | 'create' | 'update' | 'delete' | 'custom' | 'refresh_token' | 'test' | 'event' | 'unknown';
|
|
1162
|
-
type InputLocation = 'body' | 'query' | 'path' | 'headers';
|
|
1163
|
-
type EnumOneOf = {
|
|
1164
|
-
values: string[];
|
|
1165
|
-
} | {
|
|
1166
|
-
ref: string;
|
|
1167
|
-
};
|
|
1168
|
-
type InputFormat = 'email' | 'url' | 'uuid' | 'date' | 'datetime' | 'uri';
|
|
1169
|
-
type InputRules = {
|
|
1170
|
-
minLength?: number;
|
|
1171
|
-
maxLength?: number;
|
|
1172
|
-
pattern?: string;
|
|
1173
|
-
format?: InputFormat;
|
|
1174
|
-
min?: number;
|
|
1175
|
-
max?: number;
|
|
1176
|
-
errorMessage?: string;
|
|
1177
|
-
};
|
|
1178
|
-
type Input = {
|
|
1179
|
-
name: string;
|
|
1180
|
-
type: 'string' | 'number' | 'boolean' | 'datetime_string' | 'object' | 'enum';
|
|
1181
|
-
required: boolean;
|
|
1182
|
-
description: string;
|
|
1183
|
-
in: InputLocation;
|
|
1184
|
-
array?: boolean;
|
|
1185
|
-
properties?: Omit<Input, 'in'>[];
|
|
1186
|
-
oneOf?: EnumOneOf;
|
|
1187
|
-
rules?: InputRules;
|
|
1188
|
-
};
|
|
1189
|
-
type RequiredIfCondition = {
|
|
1190
|
-
field: string;
|
|
1191
|
-
equals?: string;
|
|
1192
|
-
notEquals?: string;
|
|
1193
|
-
present?: boolean;
|
|
1194
|
-
};
|
|
1195
|
-
type AtLeastOneOfRule = {
|
|
1196
|
-
rule: 'atLeastOneOf';
|
|
1197
|
-
fields: string[];
|
|
1198
|
-
errorMessage?: string;
|
|
1199
|
-
};
|
|
1200
|
-
type RequiredIfRule = {
|
|
1201
|
-
rule: 'requiredIf';
|
|
1202
|
-
field: string;
|
|
1203
|
-
condition: RequiredIfCondition;
|
|
1204
|
-
errorMessage?: string;
|
|
1205
|
-
};
|
|
1206
|
-
type MutuallyExclusiveRule = {
|
|
1207
|
-
rule: 'mutuallyExclusive';
|
|
1208
|
-
fields: string[];
|
|
1209
|
-
errorMessage?: string;
|
|
1210
|
-
};
|
|
1211
|
-
type ActionValidationRule = AtLeastOneOfRule | RequiredIfRule | MutuallyExclusiveRule;
|
|
1212
|
-
type ActionExample = {
|
|
1213
|
-
exampleDescription?: string;
|
|
1214
|
-
[key: string]: unknown;
|
|
1215
|
-
};
|
|
1216
|
-
declare const ExecutionModes: readonly ["sync", "async"];
|
|
1217
|
-
type ExecutionMode = (typeof ExecutionModes)[number];
|
|
1218
|
-
type Action = {
|
|
1219
|
-
id: string;
|
|
1220
|
-
categories: Category[];
|
|
1221
|
-
label: string;
|
|
1222
|
-
description: string;
|
|
1223
|
-
details?: string;
|
|
1224
|
-
examples?: ActionExample[];
|
|
1225
|
-
schema?: Schema;
|
|
1226
|
-
schemaType: 'native' | 'unified';
|
|
1227
|
-
endpoint?: string;
|
|
1228
|
-
resources?: string;
|
|
1229
|
-
actionType: ActionType;
|
|
1230
|
-
executionMode?: ExecutionMode;
|
|
1231
|
-
tags?: string[];
|
|
1232
|
-
releaseStage?: ReleaseStage;
|
|
1233
|
-
entrypointUrl?: string;
|
|
1234
|
-
entrypointHttpMethod?: HttpMethod;
|
|
1235
|
-
inputs?: Input[];
|
|
1236
|
-
validationRules?: ActionValidationRule[];
|
|
1237
|
-
requiredScopes?: string[];
|
|
1238
|
-
steps: {
|
|
1239
|
-
[stepId: string]: Step;
|
|
1240
|
-
};
|
|
1241
|
-
result?: string | Record<string, unknown>;
|
|
1242
|
-
responses: {
|
|
1243
|
-
success: ActionResponse;
|
|
1244
|
-
errors: Record<number, ActionResponse>;
|
|
1245
|
-
};
|
|
1246
|
-
cursor: {
|
|
1247
|
-
enabled: boolean;
|
|
1248
|
-
pageSize: number;
|
|
1249
|
-
};
|
|
1250
|
-
compositeIdentifiers: CompositeIdentifierConnectorConfig;
|
|
1251
|
-
dataSync?: DataSyncConfig;
|
|
1252
|
-
providerEvents?: string[];
|
|
1253
|
-
requiresManualSetup?: boolean;
|
|
1254
|
-
};
|
|
1255
|
-
type DataSyncConfig = {
|
|
1256
|
-
allowed: boolean;
|
|
1257
|
-
indexField: string | string[];
|
|
1258
|
-
dataKey?: string;
|
|
1259
|
-
pagination?: PaginationConfig;
|
|
1260
|
-
incremental?: IncrementalConfig;
|
|
1261
|
-
maxPages?: number;
|
|
1262
|
-
maxDurationMinutes?: number;
|
|
1263
|
-
};
|
|
1264
|
-
type ActionResponse = {
|
|
1265
|
-
statusCode: number;
|
|
1266
|
-
description?: string;
|
|
1267
|
-
};
|
|
1268
|
-
type AuthenticationNoticeTop = {
|
|
1269
|
-
key: string;
|
|
1270
|
-
type: 'warning' | 'info';
|
|
1271
|
-
description: string;
|
|
1272
|
-
position?: 'top';
|
|
1273
|
-
anchor?: string;
|
|
1274
|
-
};
|
|
1275
|
-
type AuthenticationNoticeBottom = {
|
|
1276
|
-
key: string;
|
|
1277
|
-
type: 'warning' | 'info';
|
|
1278
|
-
description: string;
|
|
1279
|
-
position: 'bottom';
|
|
1280
|
-
};
|
|
1281
|
-
type AuthenticationNotice = AuthenticationNoticeTop | AuthenticationNoticeBottom;
|
|
1282
|
-
type AuthenticationFieldBase = {
|
|
1283
|
-
key: string;
|
|
1284
|
-
label: string;
|
|
1285
|
-
required: boolean;
|
|
1286
|
-
secret: boolean;
|
|
1287
|
-
readOnly: boolean;
|
|
1288
|
-
placeholder?: string;
|
|
1289
|
-
description?: string;
|
|
1290
|
-
tooltip?: string;
|
|
1291
|
-
externalSystemAccountIdentifier?: boolean;
|
|
1292
|
-
value?: string;
|
|
1293
|
-
computed?: boolean;
|
|
1294
|
-
};
|
|
1295
|
-
type AuthenticationField = (AuthenticationFieldBase & {
|
|
1296
|
-
type: 'text' | 'password' | 'text_area';
|
|
1297
|
-
options?: never;
|
|
1298
|
-
}) | (AuthenticationFieldBase & {
|
|
1299
|
-
type: 'select';
|
|
1300
|
-
options: {
|
|
1301
|
-
value: string;
|
|
1302
|
-
label: string;
|
|
1303
|
-
}[];
|
|
1304
|
-
});
|
|
1305
|
-
type SupportConfig = {
|
|
1306
|
-
link?: string;
|
|
1307
|
-
description?: string;
|
|
1308
|
-
guides?: AuthenticationGuides;
|
|
1309
|
-
};
|
|
1310
|
-
type TestActionConfig = {
|
|
1311
|
-
action: Action;
|
|
1312
|
-
condition?: string;
|
|
1313
|
-
required: boolean;
|
|
1314
|
-
};
|
|
1315
|
-
type GuideImage = {
|
|
1316
|
-
src: string;
|
|
1317
|
-
alt: string;
|
|
1318
|
-
};
|
|
1319
|
-
type GuideStep = {
|
|
1320
|
-
title: string;
|
|
1321
|
-
content: string;
|
|
1322
|
-
list?: string[];
|
|
1323
|
-
image?: GuideImage;
|
|
1324
|
-
displayScopes?: boolean;
|
|
1325
|
-
applicableScopes?: string[];
|
|
1326
|
-
};
|
|
1327
|
-
type GuideSection = {
|
|
1328
|
-
title: string;
|
|
1329
|
-
content: string;
|
|
1330
|
-
list?: string[];
|
|
1331
|
-
image?: GuideImage;
|
|
1332
|
-
steps?: GuideStep[];
|
|
1333
|
-
applicableScopes?: string[];
|
|
1334
|
-
};
|
|
1335
|
-
type Guide = {
|
|
1336
|
-
warning?: string;
|
|
1337
|
-
sections: GuideSection[];
|
|
1338
|
-
};
|
|
1339
|
-
type AuthenticationGuides = {
|
|
1340
|
-
config?: Guide;
|
|
1341
|
-
setup?: Guide;
|
|
1342
|
-
};
|
|
1343
|
-
type AuthorizationDefinition = {
|
|
1344
|
-
type: 'none';
|
|
1345
|
-
signing?: SigningOptions;
|
|
1346
|
-
[authParam: string]: unknown;
|
|
1347
|
-
} | {
|
|
1348
|
-
type: 'basic';
|
|
1349
|
-
[authParam: string]: unknown;
|
|
1350
|
-
} | {
|
|
1351
|
-
type: 'bearer';
|
|
1352
|
-
[authParam: string]: unknown;
|
|
1353
|
-
} | {
|
|
1354
|
-
type: 'oauth2';
|
|
1355
|
-
[authParam: string]: unknown;
|
|
1356
|
-
};
|
|
1357
|
-
type AuthenticationConfig = {
|
|
1358
|
-
envKey: string;
|
|
1359
|
-
envName: string;
|
|
1360
|
-
type: 'custom' | 'oauth2';
|
|
1361
|
-
grantType?: 'authorization_code' | 'client_credentials';
|
|
1362
|
-
label: string;
|
|
1363
|
-
authorization: AuthorizationDefinition;
|
|
1364
|
-
requiredScopes?: string[];
|
|
1365
|
-
support?: SupportConfig;
|
|
1366
|
-
configFields?: AuthenticationField[];
|
|
1367
|
-
configNotices?: AuthenticationNotice[];
|
|
1368
|
-
setupFields?: AuthenticationField[];
|
|
1369
|
-
setupNotices?: AuthenticationNotice[];
|
|
1370
|
-
refreshAuthentication?: {
|
|
1371
|
-
schedule?: string;
|
|
1372
|
-
action: Action;
|
|
1373
|
-
};
|
|
1374
|
-
testActions?: TestActionConfig[];
|
|
1375
|
-
};
|
|
1376
|
-
type Authentication = {
|
|
1377
|
-
[authType: string]: {
|
|
1378
|
-
production: AuthenticationConfig;
|
|
1379
|
-
[envKey: string]: AuthenticationConfig;
|
|
1380
|
-
};
|
|
1381
|
-
};
|
|
1382
|
-
//#endregion
|
|
1383
|
-
//#region ../core/src/cursor/types.d.ts
|
|
1384
|
-
type Position = {
|
|
1385
|
-
pageNumber?: number | null;
|
|
1386
|
-
providerPageCursor?: string | null;
|
|
1387
|
-
position?: number | null;
|
|
1388
|
-
};
|
|
1389
|
-
type Cursor = {
|
|
1390
|
-
remote: Record<number, Position>;
|
|
1391
|
-
version: number;
|
|
1392
|
-
timestamp: number;
|
|
1393
|
-
};
|
|
1394
|
-
//#endregion
|
|
1395
|
-
//#region ../core/src/settings/types.d.ts
|
|
1396
|
-
type Settings = {
|
|
1397
|
-
olap: OlapSettings;
|
|
1398
|
-
defender?: DefenderSettings;
|
|
1399
|
-
};
|
|
1400
|
-
type OlapSettings = {
|
|
1401
|
-
logs?: {
|
|
1402
|
-
enabled: boolean;
|
|
1403
|
-
};
|
|
1404
|
-
advanced?: {
|
|
1405
|
-
enabled?: boolean;
|
|
1406
|
-
ttl?: number;
|
|
1407
|
-
errorsOnly?: boolean;
|
|
1408
|
-
includeBackground?: boolean;
|
|
1409
|
-
};
|
|
1410
|
-
};
|
|
1411
|
-
type DefenderSettings = {
|
|
1412
|
-
enabled: boolean;
|
|
1413
|
-
blockHighRisk?: boolean;
|
|
1414
|
-
highRiskThreshold?: number;
|
|
1415
|
-
mediumRiskThreshold?: number;
|
|
1416
|
-
useTier1Classification?: boolean;
|
|
1417
|
-
useTier2Classification?: boolean;
|
|
1418
|
-
largeResponseBehavior?: 'skip' | 'block' | 'scan_anyway';
|
|
1419
|
-
maxResponseSize?: number;
|
|
1420
|
-
maxResponseWords?: number;
|
|
1421
|
-
tier2Fields?: string[];
|
|
1422
|
-
useSfe?: boolean;
|
|
1423
|
-
annotateBoundary?: boolean;
|
|
1424
|
-
multiheadEnabled?: boolean;
|
|
1425
|
-
};
|
|
1426
|
-
//#endregion
|
|
1427
|
-
//#region ../core/src/source/types.d.ts
|
|
1428
|
-
declare const SourceType: {
|
|
1429
|
-
readonly RequestTester: "REQUEST_TESTER";
|
|
1430
|
-
readonly ActionTester: "ACTION_TESTER";
|
|
1431
|
-
readonly Discode: "DISCODE";
|
|
1432
|
-
readonly Dashboard: "DASHBOARD";
|
|
1433
|
-
readonly Playground: "PLAYGROUND";
|
|
1434
|
-
readonly SDK: "SDK";
|
|
1435
|
-
readonly API: "API";
|
|
1436
|
-
readonly Scheduler: "SCHEDULER";
|
|
1437
|
-
readonly Webhook: "WEBHOOK";
|
|
1438
|
-
readonly Agent: "AGENT";
|
|
1439
|
-
readonly Application: "APPLICATION";
|
|
1440
|
-
readonly DataSync: "DATA_SYNC";
|
|
1441
|
-
readonly Internal: "INTERNAL";
|
|
1442
|
-
};
|
|
1443
|
-
type SourceType = (typeof SourceType)[keyof typeof SourceType];
|
|
1444
|
-
declare const TransportType: {
|
|
1445
|
-
readonly HTTP: "HTTP";
|
|
1446
|
-
readonly MCP: "MCP";
|
|
1447
|
-
readonly ActionRPC: "ACTION_RPC";
|
|
1448
|
-
readonly WebSocket: "WEBSOCKET";
|
|
1449
|
-
};
|
|
1450
|
-
type TransportType = (typeof TransportType)[keyof typeof TransportType];
|
|
1451
|
-
declare const StreamType: {
|
|
1452
|
-
readonly HTTP: "HTTP";
|
|
1453
|
-
readonly WebSocket: "WEBSOCKET";
|
|
1454
|
-
readonly SSE: "SSE";
|
|
1455
|
-
};
|
|
1456
|
-
type StreamType = (typeof StreamType)[keyof typeof StreamType] | null;
|
|
1457
|
-
declare const AuthType: {
|
|
1458
|
-
readonly APIKey: "API_KEY";
|
|
1459
|
-
readonly SessionToken: "SESSION_TOKEN";
|
|
1460
|
-
readonly UserSession: "USER_SESSION";
|
|
1461
|
-
readonly Cookie: "COOKIE";
|
|
1462
|
-
readonly Webhook: "WEBHOOK";
|
|
1463
|
-
readonly Signature: "SIGNATURE";
|
|
1464
|
-
};
|
|
1465
|
-
type AuthType = (typeof AuthType)[keyof typeof AuthType];
|
|
1466
|
-
type Source = {
|
|
1467
|
-
sourceType?: SourceType;
|
|
1468
|
-
sourceId?: string;
|
|
1469
|
-
userAgent?: string;
|
|
1470
|
-
ipAddress?: string;
|
|
1471
|
-
sessionId?: string;
|
|
1472
|
-
agentId?: string;
|
|
1473
|
-
transportType?: TransportType;
|
|
1474
|
-
streamType?: StreamType;
|
|
1475
|
-
authType?: AuthType;
|
|
1476
|
-
authId?: string;
|
|
1477
|
-
sourceValue?: string;
|
|
1478
|
-
};
|
|
1479
|
-
//#endregion
|
|
1480
|
-
//#region ../core/src/blocks/types.d.ts
|
|
1481
|
-
type Block = {
|
|
1482
|
-
inputs?: {
|
|
1483
|
-
[key: string]: unknown;
|
|
1484
|
-
};
|
|
1485
|
-
connector?: Connector;
|
|
1486
|
-
context: BlockContext;
|
|
1487
|
-
debug?: DebugParams;
|
|
1488
|
-
steps?: StepsSnapshots;
|
|
1489
|
-
intermediateSteps?: IntermediateStepsSnapshots;
|
|
1490
|
-
httpClient?: IHttpClient;
|
|
1491
|
-
olapClient?: IOlapClient;
|
|
1492
|
-
emitEvent?: (event: EventToEmit) => Promise<void>;
|
|
1493
|
-
settings?: Settings;
|
|
1494
|
-
logger?: ILogger;
|
|
1495
|
-
action?: Action;
|
|
1496
|
-
credentials?: Credentials;
|
|
1497
|
-
scopes?: string[];
|
|
1498
|
-
outputs?: unknown;
|
|
1499
|
-
streamOutput?: StreamOutputData;
|
|
1500
|
-
nextCursor?: Cursor | null;
|
|
1501
|
-
response?: {
|
|
1502
|
-
statusCode: number;
|
|
1503
|
-
successful: boolean;
|
|
1504
|
-
message?: string;
|
|
1505
|
-
};
|
|
1506
|
-
statistics?: BlockStatistics;
|
|
1507
|
-
defenderMetadata?: DefenderMetadata;
|
|
1508
|
-
iterator?: {
|
|
1509
|
-
item: unknown;
|
|
1510
|
-
index: number;
|
|
1511
|
-
current?: unknown;
|
|
1512
|
-
};
|
|
1513
|
-
fieldConfigs?: FieldConfig[];
|
|
1514
|
-
result?: BlockIndexedRecord[] | BlockIndexedRecord;
|
|
1515
|
-
};
|
|
1516
|
-
type FlowType = 'action' | 'refresh_authentication' | 'test_action';
|
|
1517
|
-
type BlockContext = {
|
|
1518
|
-
organizationId?: string;
|
|
1519
|
-
projectSecureId: string;
|
|
1520
|
-
accountSecureId: string;
|
|
1521
|
-
connectorKey: string;
|
|
1522
|
-
connectorVersion: string;
|
|
1523
|
-
connectorOwner?: string;
|
|
1524
|
-
connectorProfileId?: string;
|
|
1525
|
-
category: Category;
|
|
1526
|
-
schema?: string;
|
|
1527
|
-
actionType: ActionType;
|
|
1528
|
-
authenticationType: string;
|
|
1529
|
-
environment: string;
|
|
1530
|
-
actionRunId?: string;
|
|
1531
|
-
originOwnerId?: string;
|
|
1532
|
-
originOwnerName?: string;
|
|
1533
|
-
sourceType?: SourceType;
|
|
1534
|
-
authType?: AuthType;
|
|
1535
|
-
authId?: string;
|
|
1536
|
-
sessionId?: string;
|
|
1537
|
-
agentId?: string;
|
|
1538
|
-
userAgent?: string;
|
|
1539
|
-
ipAddress?: string;
|
|
1540
|
-
transportType?: TransportType;
|
|
1541
|
-
streamType?: StreamType;
|
|
1542
|
-
flowType?: FlowType;
|
|
1543
|
-
sourceId?: string;
|
|
1544
|
-
sourceValue?: string;
|
|
1545
|
-
service: string;
|
|
1546
|
-
resource: string;
|
|
1547
|
-
subResource?: string;
|
|
1548
|
-
childResource?: string;
|
|
1549
|
-
};
|
|
1550
|
-
type BlockIndexedRecord = {
|
|
1551
|
-
id: string;
|
|
1552
|
-
remote_id?: string;
|
|
1553
|
-
[key: string]: unknown;
|
|
1554
|
-
unified_custom_fields?: {
|
|
1555
|
-
[key: string]: unknown;
|
|
1556
|
-
};
|
|
1557
|
-
};
|
|
1558
|
-
type EnumMatcherExpression = {
|
|
1559
|
-
matchExpression: string;
|
|
1560
|
-
value: string;
|
|
1561
|
-
};
|
|
1562
|
-
type FieldConfig = {
|
|
1563
|
-
expression?: string;
|
|
1564
|
-
values?: unknown;
|
|
1565
|
-
targetFieldKey: string;
|
|
1566
|
-
alias?: string;
|
|
1567
|
-
type: string;
|
|
1568
|
-
custom: boolean;
|
|
1569
|
-
hidden: boolean;
|
|
1570
|
-
array: boolean;
|
|
1571
|
-
enumMapper?: {
|
|
1572
|
-
matcher: string | EnumMatcherExpression[];
|
|
1573
|
-
};
|
|
1574
|
-
properties?: FieldConfig[];
|
|
1575
|
-
requiredScopes?: string[];
|
|
1576
|
-
};
|
|
1577
|
-
type DebugParams = {
|
|
1578
|
-
custom_mappings?: 'disabled' | 'enabled';
|
|
1579
|
-
};
|
|
1580
|
-
type Credentials = Record<string, unknown>;
|
|
1581
|
-
type BlockStatistics = {
|
|
1582
|
-
startTime?: Date;
|
|
1583
|
-
endTime?: Date;
|
|
1584
|
-
};
|
|
1585
|
-
type DefenderMetadata = {
|
|
1586
|
-
applied: boolean;
|
|
1587
|
-
result?: {
|
|
1588
|
-
allowed: boolean;
|
|
1589
|
-
riskLevel: 'low' | 'medium' | 'high' | 'critical';
|
|
1590
|
-
fieldsSanitized: string[];
|
|
1591
|
-
patternsByField: Record<string, string[]>;
|
|
1592
|
-
detections: string[];
|
|
1593
|
-
tier2Score?: number;
|
|
1594
|
-
tier2RawScore?: number;
|
|
1595
|
-
tier2AuxScore?: number;
|
|
1596
|
-
tier2MultiheadBlocked?: boolean;
|
|
1597
|
-
tier2SkipReason?: string;
|
|
1598
|
-
latencyMs: number;
|
|
1599
|
-
};
|
|
1600
|
-
skipped?: {
|
|
1601
|
-
reason: 'streaming' | 'size_limit' | 'disabled' | 'error';
|
|
1602
|
-
estimatedSize?: number;
|
|
1603
|
-
threshold?: number;
|
|
1604
|
-
error?: string;
|
|
1605
|
-
};
|
|
1606
|
-
};
|
|
1607
|
-
//#endregion
|
|
1608
|
-
//#region ../core/src/stepFunctions/factory.d.ts
|
|
1609
|
-
declare const StepFunctionsFactory: {
|
|
1610
|
-
build({
|
|
1611
|
-
functionName,
|
|
1612
|
-
version,
|
|
1613
|
-
validateSchemas,
|
|
1614
|
-
stepFunctionsList
|
|
1615
|
-
}: {
|
|
1616
|
-
functionName: StepFunctionName;
|
|
1617
|
-
version?: string;
|
|
1618
|
-
validateSchemas?: boolean;
|
|
1619
|
-
stepFunctionsList?: Record<string, Record<string, StepFunctionInstance>>;
|
|
1620
|
-
}): StepFunctionInstance;
|
|
1621
|
-
};
|
|
1622
|
-
//#endregion
|
|
1623
|
-
//#region ../core/src/accounts/types.d.ts
|
|
1624
|
-
type Account = {
|
|
1625
|
-
providerKey: string;
|
|
1626
|
-
providerVersion: string;
|
|
1627
|
-
connectorOwner?: string;
|
|
1628
|
-
connectorProfileId?: string;
|
|
1629
|
-
authConfigKey: string;
|
|
1630
|
-
environment: string;
|
|
1631
|
-
organizationId: string;
|
|
1632
|
-
secureId: string;
|
|
1633
|
-
credentials?: Record<string, unknown>;
|
|
1634
|
-
projectSecureId: string;
|
|
1635
|
-
originOwnerId?: string;
|
|
1636
|
-
originOwnerName?: string;
|
|
1637
|
-
};
|
|
1638
|
-
//#endregion
|
|
1639
8
|
//#region src/blocks/createBlock.d.ts
|
|
1640
9
|
declare const createBlock: ({
|
|
1641
10
|
connector,
|
|
@@ -1804,7 +173,6 @@ interface IncrementalStrategy {
|
|
|
1804
173
|
applyToInputs(args: {
|
|
1805
174
|
baseInputs: Record<string, unknown>;
|
|
1806
175
|
checkpoint: Checkpoint | null;
|
|
1807
|
-
lastFullRunAt: Date | null;
|
|
1808
176
|
}): Record<string, unknown>;
|
|
1809
177
|
extractFromPage(args: {
|
|
1810
178
|
block: Block;
|