@loadstrike/loadstrike-sdk 0.1.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/README.md +73 -0
- package/dist/cjs/cluster.js +410 -0
- package/dist/cjs/contracts.js +2 -0
- package/dist/cjs/correlation.js +1009 -0
- package/dist/cjs/index.js +71 -0
- package/dist/cjs/local.js +1884 -0
- package/dist/cjs/package.json +3 -0
- package/dist/cjs/reporting.js +1250 -0
- package/dist/cjs/runtime.js +7013 -0
- package/dist/cjs/sinks.js +2675 -0
- package/dist/cjs/transports.js +3695 -0
- package/dist/esm/cluster.js +403 -0
- package/dist/esm/contracts.js +1 -0
- package/dist/esm/correlation.js +999 -0
- package/dist/esm/index.js +6 -0
- package/dist/esm/local.js +1844 -0
- package/dist/esm/reporting.js +1241 -0
- package/dist/esm/runtime.js +6992 -0
- package/dist/esm/sinks.js +2657 -0
- package/dist/esm/transports.js +3658 -0
- package/dist/types/cluster.d.ts +112 -0
- package/dist/types/contracts.d.ts +439 -0
- package/dist/types/correlation.d.ts +234 -0
- package/dist/types/index.d.ts +13 -0
- package/dist/types/local.d.ts +30 -0
- package/dist/types/reporting.d.ts +6 -0
- package/dist/types/runtime.d.ts +1052 -0
- package/dist/types/sinks.d.ts +497 -0
- package/dist/types/transports.d.ts +745 -0
- package/package.json +110 -0
|
@@ -0,0 +1,745 @@
|
|
|
1
|
+
import { TrackingFieldSelector, type TrackingPayload } from "./correlation.js";
|
|
2
|
+
export type EndpointKind = "Http" | "Kafka" | "RabbitMq" | "Nats" | "RedisStreams" | "AzureEventHubs" | "PushDiffusion" | "DelegateStream";
|
|
3
|
+
export type EndpointMode = "Produce" | "Consume";
|
|
4
|
+
export type HttpAuthMode = "None" | "Basic" | "Bearer" | "OAuth2ClientCredentials";
|
|
5
|
+
export type HttpAuthType = HttpAuthMode;
|
|
6
|
+
export type TrafficEndpointKind = EndpointKind;
|
|
7
|
+
export type TrafficEndpointMode = EndpointMode;
|
|
8
|
+
export type TrackingRunMode = "GenerateAndCorrelate" | "CorrelateExistingTraffic";
|
|
9
|
+
export type TrackingFieldSelectorInput = string | TrackingFieldSelector;
|
|
10
|
+
export type HttpTrackingPayloadSource = "Request" | "Response";
|
|
11
|
+
export type HttpRequestBodyType = "Json" | "Text" | "PlainText" | "Xml" | "FormUrlEncoded" | "Binary";
|
|
12
|
+
export type KafkaSecurityProtocolType = "Plaintext" | "Ssl" | "SaslPlaintext" | "SaslSsl";
|
|
13
|
+
export type KafkaSaslMechanismType = "Plain" | "ScramSha256" | "ScramSha512" | "Gssapi" | "OAuthBearer";
|
|
14
|
+
export type HttpResponseSource = "None" | "Request" | "Response" | "Body" | "ResponseBody" | "Headers" | "ResponseHeaders" | "Status" | "StatusCode" | "ResponseStatusCode";
|
|
15
|
+
export interface ProducedMessageRequest extends TrackingPayload {
|
|
16
|
+
endpoint: EndpointDefinition;
|
|
17
|
+
payload: TrackingPayload;
|
|
18
|
+
trackingId: string;
|
|
19
|
+
connectionMetadata: Record<string, string>;
|
|
20
|
+
}
|
|
21
|
+
export interface ProducedMessageResult {
|
|
22
|
+
isSuccess?: boolean;
|
|
23
|
+
errorMessage?: string;
|
|
24
|
+
responsePayload?: TrackingPayload | null;
|
|
25
|
+
timestampUtc?: string | number | Date | null;
|
|
26
|
+
timestampUtcMs?: number | null;
|
|
27
|
+
}
|
|
28
|
+
export interface ConsumedMessage extends TrackingPayload {
|
|
29
|
+
payload: TrackingPayload;
|
|
30
|
+
timestampUtc?: string | number | Date | null;
|
|
31
|
+
timestampUtcMs?: number | null;
|
|
32
|
+
}
|
|
33
|
+
export type DelegateConsumeStreamHandler = (message: ConsumedMessage | TrackingPayload) => Promise<void> | void;
|
|
34
|
+
export type DelegateConsumeAsync = ((onMessage: DelegateConsumeStreamHandler) => Promise<void> | void) | (() => Promise<ConsumedMessage | TrackingPayload | null> | ConsumedMessage | TrackingPayload | null);
|
|
35
|
+
export interface DelegateEndpointOptions {
|
|
36
|
+
Produce?: (payload: TrackingPayload) => Promise<TrackingPayload | null> | TrackingPayload | null;
|
|
37
|
+
produce?: (payload: TrackingPayload) => Promise<TrackingPayload | null> | TrackingPayload | null;
|
|
38
|
+
Consume?: () => Promise<TrackingPayload | null> | TrackingPayload | null;
|
|
39
|
+
consume?: () => Promise<TrackingPayload | null> | TrackingPayload | null;
|
|
40
|
+
ProduceAsync?: (request: ProducedMessageRequest) => Promise<ProducedMessageResult | TrackingPayload | null> | ProducedMessageResult | TrackingPayload | null;
|
|
41
|
+
produceAsync?: (request: ProducedMessageRequest) => Promise<ProducedMessageResult | TrackingPayload | null> | ProducedMessageResult | TrackingPayload | null;
|
|
42
|
+
ConsumeAsync?: DelegateConsumeAsync;
|
|
43
|
+
consumeAsync?: DelegateConsumeAsync;
|
|
44
|
+
ConnectionMetadata?: Record<string, string>;
|
|
45
|
+
connectionMetadata?: Record<string, string>;
|
|
46
|
+
}
|
|
47
|
+
export interface HttpOAuth2ClientCredentialsOptions {
|
|
48
|
+
TokenEndpoint?: string;
|
|
49
|
+
tokenEndpoint?: string;
|
|
50
|
+
ClientId?: string;
|
|
51
|
+
clientId?: string;
|
|
52
|
+
ClientSecret?: string;
|
|
53
|
+
clientSecret?: string;
|
|
54
|
+
Scopes?: string[];
|
|
55
|
+
scopes?: string[];
|
|
56
|
+
AdditionalFormFields?: Record<string, string>;
|
|
57
|
+
additionalFormFields?: Record<string, string>;
|
|
58
|
+
}
|
|
59
|
+
export interface HttpAuthOptions {
|
|
60
|
+
Mode?: HttpAuthMode;
|
|
61
|
+
mode?: HttpAuthMode;
|
|
62
|
+
Type?: HttpAuthMode;
|
|
63
|
+
type?: HttpAuthMode;
|
|
64
|
+
Username?: string;
|
|
65
|
+
username?: string;
|
|
66
|
+
Password?: string;
|
|
67
|
+
password?: string;
|
|
68
|
+
BearerToken?: string;
|
|
69
|
+
bearerToken?: string;
|
|
70
|
+
TokenUrl?: string;
|
|
71
|
+
tokenUrl?: string;
|
|
72
|
+
ClientId?: string;
|
|
73
|
+
clientId?: string;
|
|
74
|
+
ClientSecret?: string;
|
|
75
|
+
clientSecret?: string;
|
|
76
|
+
Scope?: string;
|
|
77
|
+
scope?: string;
|
|
78
|
+
Scopes?: string[];
|
|
79
|
+
scopes?: string[];
|
|
80
|
+
Audience?: string;
|
|
81
|
+
audience?: string;
|
|
82
|
+
TokenHeaderName?: string;
|
|
83
|
+
tokenHeaderName?: string;
|
|
84
|
+
AdditionalFormFields?: Record<string, string>;
|
|
85
|
+
additionalFormFields?: Record<string, string>;
|
|
86
|
+
OAuth2ClientCredentials?: HttpOAuth2ClientCredentialsOptions;
|
|
87
|
+
oauth2ClientCredentials?: HttpOAuth2ClientCredentialsOptions;
|
|
88
|
+
}
|
|
89
|
+
export interface HttpEndpointOptions {
|
|
90
|
+
Url?: string;
|
|
91
|
+
url: string;
|
|
92
|
+
Method?: string;
|
|
93
|
+
method?: string;
|
|
94
|
+
ConsumePoll?: () => Promise<TrackingPayload | null> | TrackingPayload | null;
|
|
95
|
+
consumePoll?: () => Promise<TrackingPayload | null> | TrackingPayload | null;
|
|
96
|
+
BodyType?: HttpRequestBodyType;
|
|
97
|
+
bodyType?: HttpRequestBodyType;
|
|
98
|
+
ResponseSource?: HttpResponseSource;
|
|
99
|
+
responseSource?: HttpResponseSource;
|
|
100
|
+
TrackingPayloadSource?: HttpTrackingPayloadSource;
|
|
101
|
+
trackingPayloadSource?: HttpTrackingPayloadSource;
|
|
102
|
+
ConsumeArrayPath?: string;
|
|
103
|
+
consumeArrayPath?: string;
|
|
104
|
+
ConsumeJsonArrayResponse?: boolean;
|
|
105
|
+
consumeJsonArrayResponse?: boolean;
|
|
106
|
+
RequestTimeoutSeconds?: number;
|
|
107
|
+
requestTimeoutSeconds?: number;
|
|
108
|
+
Auth?: HttpAuthOptions;
|
|
109
|
+
auth?: HttpAuthOptions;
|
|
110
|
+
TokenRequestHeaders?: Record<string, string>;
|
|
111
|
+
tokenRequestHeaders?: Record<string, string>;
|
|
112
|
+
}
|
|
113
|
+
export interface KafkaSaslOptions {
|
|
114
|
+
Mechanism?: KafkaSaslMechanismType;
|
|
115
|
+
mechanism?: KafkaSaslMechanismType;
|
|
116
|
+
Username?: string;
|
|
117
|
+
username?: string;
|
|
118
|
+
Password?: string;
|
|
119
|
+
password?: string;
|
|
120
|
+
OAuthBearerTokenEndpointUrl?: string;
|
|
121
|
+
oauthBearerTokenEndpointUrl?: string;
|
|
122
|
+
AccessToken?: string;
|
|
123
|
+
accessToken?: string;
|
|
124
|
+
OAuthBearerToken?: string;
|
|
125
|
+
oauthBearerToken?: string;
|
|
126
|
+
TokenEndpoint?: string;
|
|
127
|
+
tokenEndpoint?: string;
|
|
128
|
+
AdditionalSettings?: Record<string, string>;
|
|
129
|
+
additionalSettings?: Record<string, string>;
|
|
130
|
+
[key: string]: unknown;
|
|
131
|
+
}
|
|
132
|
+
export interface KafkaEndpointOptions {
|
|
133
|
+
BootstrapServers?: string;
|
|
134
|
+
bootstrapServers?: string;
|
|
135
|
+
Topic?: string;
|
|
136
|
+
topic?: string;
|
|
137
|
+
ConsumerGroupId?: string;
|
|
138
|
+
consumerGroupId?: string;
|
|
139
|
+
SecurityProtocol?: string;
|
|
140
|
+
securityProtocol?: string;
|
|
141
|
+
Sasl?: KafkaSaslOptions;
|
|
142
|
+
sasl?: KafkaSaslOptions;
|
|
143
|
+
ConfluentSettings?: Record<string, string>;
|
|
144
|
+
confluentSettings?: Record<string, string>;
|
|
145
|
+
StartFromEarliest?: boolean;
|
|
146
|
+
startFromEarliest?: boolean;
|
|
147
|
+
[key: string]: unknown;
|
|
148
|
+
}
|
|
149
|
+
export interface RabbitMqEndpointOptions {
|
|
150
|
+
HostName?: string;
|
|
151
|
+
hostName?: string;
|
|
152
|
+
Port?: number;
|
|
153
|
+
port?: number;
|
|
154
|
+
VirtualHost?: string;
|
|
155
|
+
virtualHost?: string;
|
|
156
|
+
UserName?: string;
|
|
157
|
+
userName?: string;
|
|
158
|
+
Password?: string;
|
|
159
|
+
password?: string;
|
|
160
|
+
Exchange?: string;
|
|
161
|
+
exchange?: string;
|
|
162
|
+
QueueName?: string;
|
|
163
|
+
queueName?: string;
|
|
164
|
+
RoutingKey?: string;
|
|
165
|
+
routingKey?: string;
|
|
166
|
+
Durable?: boolean;
|
|
167
|
+
durable?: boolean;
|
|
168
|
+
AutoAck?: boolean;
|
|
169
|
+
autoAck?: boolean;
|
|
170
|
+
UseSsl?: boolean;
|
|
171
|
+
useSsl?: boolean;
|
|
172
|
+
ClientProperties?: Record<string, string>;
|
|
173
|
+
clientProperties?: Record<string, string>;
|
|
174
|
+
[key: string]: unknown;
|
|
175
|
+
}
|
|
176
|
+
export interface NatsEndpointOptions {
|
|
177
|
+
ServerUrl?: string;
|
|
178
|
+
serverUrl?: string;
|
|
179
|
+
Subject?: string;
|
|
180
|
+
subject?: string;
|
|
181
|
+
QueueGroup?: string;
|
|
182
|
+
queueGroup?: string;
|
|
183
|
+
UserName?: string;
|
|
184
|
+
userName?: string;
|
|
185
|
+
Password?: string;
|
|
186
|
+
password?: string;
|
|
187
|
+
Token?: string;
|
|
188
|
+
token?: string;
|
|
189
|
+
ConnectionName?: string;
|
|
190
|
+
connectionName?: string;
|
|
191
|
+
MaxReconnectAttempts?: number;
|
|
192
|
+
maxReconnectAttempts?: number;
|
|
193
|
+
[key: string]: unknown;
|
|
194
|
+
}
|
|
195
|
+
export interface RedisStreamsEndpointOptions {
|
|
196
|
+
ConnectionString?: string;
|
|
197
|
+
connectionString?: string;
|
|
198
|
+
StreamKey?: string;
|
|
199
|
+
streamKey?: string;
|
|
200
|
+
ConsumerGroup?: string;
|
|
201
|
+
consumerGroup?: string;
|
|
202
|
+
ConsumerName?: string;
|
|
203
|
+
consumerName?: string;
|
|
204
|
+
StartFromEarliest?: boolean;
|
|
205
|
+
startFromEarliest?: boolean;
|
|
206
|
+
ReadCount?: number;
|
|
207
|
+
readCount?: number;
|
|
208
|
+
MaxLength?: number;
|
|
209
|
+
maxLength?: number;
|
|
210
|
+
[key: string]: unknown;
|
|
211
|
+
}
|
|
212
|
+
export interface AzureEventHubsEndpointOptions {
|
|
213
|
+
ConnectionString?: string;
|
|
214
|
+
connectionString?: string;
|
|
215
|
+
EventHubName?: string;
|
|
216
|
+
eventHubName?: string;
|
|
217
|
+
ConsumerGroup?: string;
|
|
218
|
+
consumerGroup?: string;
|
|
219
|
+
PartitionId?: string;
|
|
220
|
+
partitionId?: string;
|
|
221
|
+
StartFromEarliest?: boolean;
|
|
222
|
+
startFromEarliest?: boolean;
|
|
223
|
+
[key: string]: unknown;
|
|
224
|
+
}
|
|
225
|
+
export interface PushDiffusionEndpointOptions {
|
|
226
|
+
ServerUrl?: string;
|
|
227
|
+
serverUrl?: string;
|
|
228
|
+
TopicPath?: string;
|
|
229
|
+
topicPath?: string;
|
|
230
|
+
Principal?: string;
|
|
231
|
+
principal?: string;
|
|
232
|
+
Password?: string;
|
|
233
|
+
password?: string;
|
|
234
|
+
ConnectionProperties?: Record<string, string>;
|
|
235
|
+
connectionProperties?: Record<string, string>;
|
|
236
|
+
PublishAsync?: (request: ProducedMessageRequest) => Promise<ProducedMessageResult | TrackingPayload | null> | ProducedMessageResult | TrackingPayload | null;
|
|
237
|
+
publishAsync?: (request: ProducedMessageRequest) => Promise<ProducedMessageResult | TrackingPayload | null> | ProducedMessageResult | TrackingPayload | null;
|
|
238
|
+
SubscribeAsync?: DelegateConsumeAsync;
|
|
239
|
+
subscribeAsync?: DelegateConsumeAsync;
|
|
240
|
+
[key: string]: unknown;
|
|
241
|
+
}
|
|
242
|
+
export interface TrafficEndpointDefinition {
|
|
243
|
+
Kind?: EndpointKind;
|
|
244
|
+
kind?: EndpointKind;
|
|
245
|
+
Mode?: EndpointMode;
|
|
246
|
+
mode?: EndpointMode;
|
|
247
|
+
Name?: string;
|
|
248
|
+
name?: string;
|
|
249
|
+
TrackingField?: TrackingFieldSelectorInput;
|
|
250
|
+
trackingField?: TrackingFieldSelectorInput;
|
|
251
|
+
GatherByField?: TrackingFieldSelectorInput;
|
|
252
|
+
gatherByField?: TrackingFieldSelectorInput;
|
|
253
|
+
AutoGenerateTrackingIdWhenMissing?: boolean;
|
|
254
|
+
autoGenerateTrackingIdWhenMissing?: boolean;
|
|
255
|
+
PollInterval?: number;
|
|
256
|
+
pollInterval?: number;
|
|
257
|
+
PollIntervalMs?: number;
|
|
258
|
+
PollIntervalSeconds?: number;
|
|
259
|
+
pollIntervalMs?: number;
|
|
260
|
+
MessageHeaders?: Record<string, string>;
|
|
261
|
+
messageHeaders?: Record<string, string>;
|
|
262
|
+
MessagePayload?: unknown;
|
|
263
|
+
messagePayload?: unknown;
|
|
264
|
+
MessagePayloadType?: string;
|
|
265
|
+
messagePayloadType?: string;
|
|
266
|
+
JsonSettings?: Record<string, unknown>;
|
|
267
|
+
JsonSerializerSettings?: Record<string, unknown>;
|
|
268
|
+
jsonSerializerSettings?: Record<string, unknown>;
|
|
269
|
+
JsonConvertSettings?: Record<string, unknown>;
|
|
270
|
+
jsonConvertSettings?: Record<string, unknown>;
|
|
271
|
+
ContentType?: string;
|
|
272
|
+
contentType?: string;
|
|
273
|
+
ConnectionMetadata?: Record<string, string>;
|
|
274
|
+
connectionMetadata?: Record<string, string>;
|
|
275
|
+
}
|
|
276
|
+
export interface EndpointDefinition {
|
|
277
|
+
Kind?: EndpointKind;
|
|
278
|
+
kind: EndpointKind;
|
|
279
|
+
Mode?: EndpointMode;
|
|
280
|
+
mode: EndpointMode;
|
|
281
|
+
Name?: string;
|
|
282
|
+
name: string;
|
|
283
|
+
TrackingField?: string;
|
|
284
|
+
trackingField: string;
|
|
285
|
+
GatherByField?: string;
|
|
286
|
+
gatherByField?: string;
|
|
287
|
+
AutoGenerateTrackingIdWhenMissing?: boolean;
|
|
288
|
+
autoGenerateTrackingIdWhenMissing?: boolean;
|
|
289
|
+
PollIntervalMs?: number;
|
|
290
|
+
PollIntervalSeconds?: number;
|
|
291
|
+
pollIntervalMs?: number;
|
|
292
|
+
MessageHeaders?: Record<string, string>;
|
|
293
|
+
messageHeaders?: Record<string, string>;
|
|
294
|
+
MessagePayload?: unknown;
|
|
295
|
+
messagePayload?: unknown;
|
|
296
|
+
MessagePayloadType?: string;
|
|
297
|
+
messagePayloadType?: string;
|
|
298
|
+
JsonSettings?: Record<string, unknown>;
|
|
299
|
+
JsonSerializerSettings?: Record<string, unknown>;
|
|
300
|
+
jsonSerializerSettings?: Record<string, unknown>;
|
|
301
|
+
JsonConvertSettings?: Record<string, unknown>;
|
|
302
|
+
jsonConvertSettings?: Record<string, unknown>;
|
|
303
|
+
ContentType?: string;
|
|
304
|
+
contentType?: string;
|
|
305
|
+
ConnectionMetadata?: Record<string, string>;
|
|
306
|
+
connectionMetadata?: Record<string, string>;
|
|
307
|
+
Http?: HttpEndpointOptions;
|
|
308
|
+
http?: HttpEndpointOptions;
|
|
309
|
+
Kafka?: KafkaEndpointOptions;
|
|
310
|
+
kafka?: KafkaEndpointOptions;
|
|
311
|
+
RabbitMq?: RabbitMqEndpointOptions;
|
|
312
|
+
rabbitMq?: RabbitMqEndpointOptions;
|
|
313
|
+
Nats?: NatsEndpointOptions;
|
|
314
|
+
nats?: NatsEndpointOptions;
|
|
315
|
+
RedisStreams?: RedisStreamsEndpointOptions;
|
|
316
|
+
redisStreams?: RedisStreamsEndpointOptions;
|
|
317
|
+
AzureEventHubs?: AzureEventHubsEndpointOptions;
|
|
318
|
+
azureEventHubs?: AzureEventHubsEndpointOptions;
|
|
319
|
+
PushDiffusion?: PushDiffusionEndpointOptions;
|
|
320
|
+
pushDiffusion?: PushDiffusionEndpointOptions;
|
|
321
|
+
Delegate?: DelegateEndpointOptions;
|
|
322
|
+
DelegateStream?: DelegateEndpointOptions;
|
|
323
|
+
delegate?: DelegateEndpointOptions;
|
|
324
|
+
}
|
|
325
|
+
export interface DotNetHttpOAuth2ClientCredentialsOptions {
|
|
326
|
+
TokenEndpoint?: string;
|
|
327
|
+
ClientId?: string;
|
|
328
|
+
ClientSecret?: string;
|
|
329
|
+
Scopes?: string[];
|
|
330
|
+
AdditionalFormFields?: Record<string, string>;
|
|
331
|
+
}
|
|
332
|
+
export interface DotNetHttpAuthOptions {
|
|
333
|
+
Mode?: HttpAuthMode;
|
|
334
|
+
Type?: HttpAuthMode;
|
|
335
|
+
Username?: string;
|
|
336
|
+
Password?: string;
|
|
337
|
+
BearerToken?: string;
|
|
338
|
+
TokenUrl?: string;
|
|
339
|
+
ClientId?: string;
|
|
340
|
+
ClientSecret?: string;
|
|
341
|
+
Scope?: string;
|
|
342
|
+
Scopes?: string[];
|
|
343
|
+
Audience?: string;
|
|
344
|
+
TokenHeaderName?: string;
|
|
345
|
+
AdditionalFormFields?: Record<string, string>;
|
|
346
|
+
OAuth2ClientCredentials?: DotNetHttpOAuth2ClientCredentialsOptions;
|
|
347
|
+
}
|
|
348
|
+
export interface DotNetHttpEndpointOptions {
|
|
349
|
+
Url: string;
|
|
350
|
+
Method?: string;
|
|
351
|
+
ConsumePoll?: () => Promise<TrackingPayload | null> | TrackingPayload | null;
|
|
352
|
+
BodyType?: HttpRequestBodyType;
|
|
353
|
+
ResponseSource?: HttpResponseSource;
|
|
354
|
+
TrackingPayloadSource?: HttpTrackingPayloadSource;
|
|
355
|
+
ConsumeArrayPath?: string;
|
|
356
|
+
ConsumeJsonArrayResponse?: boolean;
|
|
357
|
+
RequestTimeoutSeconds?: number;
|
|
358
|
+
Auth?: DotNetHttpAuthOptions;
|
|
359
|
+
TokenRequestHeaders?: Record<string, string>;
|
|
360
|
+
}
|
|
361
|
+
export interface DotNetDelegateEndpointOptions {
|
|
362
|
+
Produce?: (payload: TrackingPayload) => Promise<TrackingPayload | null> | TrackingPayload | null;
|
|
363
|
+
Consume?: () => Promise<TrackingPayload | null> | TrackingPayload | null;
|
|
364
|
+
ProduceAsync?: (request: ProducedMessageRequest) => Promise<ProducedMessageResult | TrackingPayload | null> | ProducedMessageResult | TrackingPayload | null;
|
|
365
|
+
ConsumeAsync?: DelegateConsumeAsync;
|
|
366
|
+
ConnectionMetadata?: Record<string, string>;
|
|
367
|
+
}
|
|
368
|
+
export interface DotNetEndpointDefinition {
|
|
369
|
+
Kind: EndpointKind;
|
|
370
|
+
Mode: EndpointMode;
|
|
371
|
+
Name: string;
|
|
372
|
+
TrackingField: TrackingFieldSelectorInput;
|
|
373
|
+
GatherByField?: TrackingFieldSelectorInput;
|
|
374
|
+
AutoGenerateTrackingIdWhenMissing?: boolean;
|
|
375
|
+
PollIntervalMs?: number;
|
|
376
|
+
PollIntervalSeconds?: number;
|
|
377
|
+
MessageHeaders?: Record<string, string>;
|
|
378
|
+
MessagePayload?: unknown;
|
|
379
|
+
MessagePayloadType?: string;
|
|
380
|
+
JsonSettings?: Record<string, unknown>;
|
|
381
|
+
JsonSerializerSettings?: Record<string, unknown>;
|
|
382
|
+
JsonConvertSettings?: Record<string, unknown>;
|
|
383
|
+
ContentType?: string;
|
|
384
|
+
ConnectionMetadata?: Record<string, string>;
|
|
385
|
+
Http?: DotNetHttpEndpointOptions;
|
|
386
|
+
Kafka?: KafkaEndpointOptions;
|
|
387
|
+
RabbitMq?: RabbitMqEndpointOptions;
|
|
388
|
+
Nats?: NatsEndpointOptions;
|
|
389
|
+
RedisStreams?: RedisStreamsEndpointOptions;
|
|
390
|
+
AzureEventHubs?: AzureEventHubsEndpointOptions;
|
|
391
|
+
PushDiffusion?: PushDiffusionEndpointOptions;
|
|
392
|
+
Delegate?: DotNetDelegateEndpointOptions;
|
|
393
|
+
DelegateStream?: DotNetDelegateEndpointOptions;
|
|
394
|
+
}
|
|
395
|
+
export interface HttpEndpointDefinition extends TrafficEndpointDefinition {
|
|
396
|
+
Kind?: "Http";
|
|
397
|
+
kind?: "Http";
|
|
398
|
+
Url?: string;
|
|
399
|
+
url?: string;
|
|
400
|
+
Method?: string;
|
|
401
|
+
method?: string;
|
|
402
|
+
ConsumePoll?: () => Promise<TrackingPayload | null> | TrackingPayload | null;
|
|
403
|
+
consumePoll?: () => Promise<TrackingPayload | null> | TrackingPayload | null;
|
|
404
|
+
BodyType?: HttpRequestBodyType;
|
|
405
|
+
bodyType?: HttpRequestBodyType;
|
|
406
|
+
ResponseSource?: HttpResponseSource;
|
|
407
|
+
responseSource?: HttpResponseSource;
|
|
408
|
+
TrackingPayloadSource?: HttpTrackingPayloadSource;
|
|
409
|
+
trackingPayloadSource?: HttpTrackingPayloadSource;
|
|
410
|
+
ConsumeArrayPath?: string;
|
|
411
|
+
consumeArrayPath?: string;
|
|
412
|
+
ConsumeJsonArrayResponse?: boolean;
|
|
413
|
+
consumeJsonArrayResponse?: boolean;
|
|
414
|
+
RequestTimeout?: number;
|
|
415
|
+
requestTimeout?: number;
|
|
416
|
+
RequestTimeoutSeconds?: number;
|
|
417
|
+
requestTimeoutSeconds?: number;
|
|
418
|
+
Auth?: HttpAuthOptions;
|
|
419
|
+
auth?: HttpAuthOptions;
|
|
420
|
+
TokenRequestHeaders?: Record<string, string>;
|
|
421
|
+
tokenRequestHeaders?: Record<string, string>;
|
|
422
|
+
}
|
|
423
|
+
export interface KafkaEndpointDefinition extends TrafficEndpointDefinition {
|
|
424
|
+
Kind?: "Kafka";
|
|
425
|
+
kind?: "Kafka";
|
|
426
|
+
BootstrapServers?: string;
|
|
427
|
+
bootstrapServers?: string;
|
|
428
|
+
Topic?: string;
|
|
429
|
+
topic?: string;
|
|
430
|
+
ConsumerGroupId?: string;
|
|
431
|
+
consumerGroupId?: string;
|
|
432
|
+
SecurityProtocol?: string;
|
|
433
|
+
securityProtocol?: string;
|
|
434
|
+
Sasl?: KafkaSaslOptions;
|
|
435
|
+
sasl?: KafkaSaslOptions;
|
|
436
|
+
ConfluentSettings?: Record<string, string>;
|
|
437
|
+
confluentSettings?: Record<string, string>;
|
|
438
|
+
StartFromEarliest?: boolean;
|
|
439
|
+
startFromEarliest?: boolean;
|
|
440
|
+
}
|
|
441
|
+
export interface RabbitMqEndpointDefinition extends TrafficEndpointDefinition {
|
|
442
|
+
Kind?: "RabbitMq";
|
|
443
|
+
kind?: "RabbitMq";
|
|
444
|
+
HostName?: string;
|
|
445
|
+
hostName?: string;
|
|
446
|
+
Port?: number;
|
|
447
|
+
port?: number;
|
|
448
|
+
VirtualHost?: string;
|
|
449
|
+
virtualHost?: string;
|
|
450
|
+
UserName?: string;
|
|
451
|
+
userName?: string;
|
|
452
|
+
Password?: string;
|
|
453
|
+
password?: string;
|
|
454
|
+
Exchange?: string;
|
|
455
|
+
exchange?: string;
|
|
456
|
+
QueueName?: string;
|
|
457
|
+
queueName?: string;
|
|
458
|
+
RoutingKey?: string;
|
|
459
|
+
routingKey?: string;
|
|
460
|
+
Durable?: boolean;
|
|
461
|
+
durable?: boolean;
|
|
462
|
+
AutoAck?: boolean;
|
|
463
|
+
autoAck?: boolean;
|
|
464
|
+
UseSsl?: boolean;
|
|
465
|
+
useSsl?: boolean;
|
|
466
|
+
ClientProperties?: Record<string, string>;
|
|
467
|
+
clientProperties?: Record<string, string>;
|
|
468
|
+
}
|
|
469
|
+
export interface NatsEndpointDefinition extends TrafficEndpointDefinition {
|
|
470
|
+
Kind?: "Nats";
|
|
471
|
+
kind?: "Nats";
|
|
472
|
+
ServerUrl?: string;
|
|
473
|
+
serverUrl?: string;
|
|
474
|
+
Subject?: string;
|
|
475
|
+
subject?: string;
|
|
476
|
+
QueueGroup?: string;
|
|
477
|
+
queueGroup?: string;
|
|
478
|
+
UserName?: string;
|
|
479
|
+
userName?: string;
|
|
480
|
+
Password?: string;
|
|
481
|
+
password?: string;
|
|
482
|
+
Token?: string;
|
|
483
|
+
token?: string;
|
|
484
|
+
ConnectionName?: string;
|
|
485
|
+
connectionName?: string;
|
|
486
|
+
MaxReconnectAttempts?: number;
|
|
487
|
+
maxReconnectAttempts?: number;
|
|
488
|
+
}
|
|
489
|
+
export interface RedisStreamsEndpointDefinition extends TrafficEndpointDefinition {
|
|
490
|
+
Kind?: "RedisStreams";
|
|
491
|
+
kind?: "RedisStreams";
|
|
492
|
+
ConnectionString?: string;
|
|
493
|
+
connectionString?: string;
|
|
494
|
+
StreamKey?: string;
|
|
495
|
+
streamKey?: string;
|
|
496
|
+
ConsumerGroup?: string;
|
|
497
|
+
consumerGroup?: string;
|
|
498
|
+
ConsumerName?: string;
|
|
499
|
+
consumerName?: string;
|
|
500
|
+
StartFromEarliest?: boolean;
|
|
501
|
+
startFromEarliest?: boolean;
|
|
502
|
+
ReadCount?: number;
|
|
503
|
+
readCount?: number;
|
|
504
|
+
MaxLength?: number;
|
|
505
|
+
maxLength?: number;
|
|
506
|
+
}
|
|
507
|
+
export interface AzureEventHubsEndpointDefinition extends TrafficEndpointDefinition {
|
|
508
|
+
Kind?: "AzureEventHubs";
|
|
509
|
+
kind?: "AzureEventHubs";
|
|
510
|
+
ConnectionString?: string;
|
|
511
|
+
connectionString?: string;
|
|
512
|
+
EventHubName?: string;
|
|
513
|
+
eventHubName?: string;
|
|
514
|
+
ConsumerGroup?: string;
|
|
515
|
+
consumerGroup?: string;
|
|
516
|
+
PartitionId?: string;
|
|
517
|
+
partitionId?: string;
|
|
518
|
+
StartFromEarliest?: boolean;
|
|
519
|
+
startFromEarliest?: boolean;
|
|
520
|
+
}
|
|
521
|
+
export interface DelegateStreamEndpointDefinition extends TrafficEndpointDefinition {
|
|
522
|
+
Kind?: "DelegateStream";
|
|
523
|
+
kind?: "DelegateStream";
|
|
524
|
+
Produce?: (payload: TrackingPayload) => Promise<TrackingPayload | null> | TrackingPayload | null;
|
|
525
|
+
produce?: (payload: TrackingPayload) => Promise<TrackingPayload | null> | TrackingPayload | null;
|
|
526
|
+
Consume?: () => Promise<TrackingPayload | null> | TrackingPayload | null;
|
|
527
|
+
consume?: () => Promise<TrackingPayload | null> | TrackingPayload | null;
|
|
528
|
+
ProduceAsync?: (request: ProducedMessageRequest) => Promise<ProducedMessageResult | TrackingPayload | null> | ProducedMessageResult | TrackingPayload | null;
|
|
529
|
+
produceAsync?: (request: ProducedMessageRequest) => Promise<ProducedMessageResult | TrackingPayload | null> | ProducedMessageResult | TrackingPayload | null;
|
|
530
|
+
ConsumeAsync?: DelegateConsumeAsync;
|
|
531
|
+
consumeAsync?: DelegateConsumeAsync;
|
|
532
|
+
ConnectionMetadata?: Record<string, string>;
|
|
533
|
+
connectionMetadata?: Record<string, string>;
|
|
534
|
+
}
|
|
535
|
+
export interface PushDiffusionEndpointDefinition extends TrafficEndpointDefinition {
|
|
536
|
+
Kind?: "PushDiffusion";
|
|
537
|
+
kind?: "PushDiffusion";
|
|
538
|
+
ServerUrl?: string;
|
|
539
|
+
serverUrl?: string;
|
|
540
|
+
TopicPath?: string;
|
|
541
|
+
topicPath?: string;
|
|
542
|
+
Principal?: string;
|
|
543
|
+
principal?: string;
|
|
544
|
+
Password?: string;
|
|
545
|
+
password?: string;
|
|
546
|
+
ConnectionProperties?: Record<string, string>;
|
|
547
|
+
connectionProperties?: Record<string, string>;
|
|
548
|
+
PublishAsync?: (request: ProducedMessageRequest) => Promise<ProducedMessageResult | TrackingPayload | null> | ProducedMessageResult | TrackingPayload | null;
|
|
549
|
+
publishAsync?: (request: ProducedMessageRequest) => Promise<ProducedMessageResult | TrackingPayload | null> | ProducedMessageResult | TrackingPayload | null;
|
|
550
|
+
SubscribeAsync?: DelegateConsumeAsync;
|
|
551
|
+
subscribeAsync?: DelegateConsumeAsync;
|
|
552
|
+
}
|
|
553
|
+
type HttpOAuth2ClientCredentialsOptionsInit = Partial<DotNetHttpOAuth2ClientCredentialsOptions & HttpOAuth2ClientCredentialsOptions>;
|
|
554
|
+
type HttpAuthOptionsInit = Partial<DotNetHttpAuthOptions & HttpAuthOptions>;
|
|
555
|
+
type KafkaSaslOptionsInit = Partial<KafkaSaslOptions>;
|
|
556
|
+
type TrafficEndpointDefinitionInit = Partial<TrafficEndpointDefinition>;
|
|
557
|
+
type HttpEndpointDefinitionInit = Partial<HttpEndpointDefinition>;
|
|
558
|
+
type KafkaEndpointDefinitionInit = Partial<KafkaEndpointDefinition>;
|
|
559
|
+
type RabbitMqEndpointDefinitionInit = Partial<RabbitMqEndpointDefinition>;
|
|
560
|
+
type NatsEndpointDefinitionInit = Partial<NatsEndpointDefinition>;
|
|
561
|
+
type RedisStreamsEndpointDefinitionInit = Partial<RedisStreamsEndpointDefinition>;
|
|
562
|
+
type AzureEventHubsEndpointDefinitionInit = Partial<AzureEventHubsEndpointDefinition>;
|
|
563
|
+
type DelegateStreamEndpointDefinitionInit = Partial<DelegateStreamEndpointDefinition>;
|
|
564
|
+
type PushDiffusionEndpointDefinitionInit = Partial<PushDiffusionEndpointDefinition>;
|
|
565
|
+
declare abstract class TrafficEndpointDefinitionModel {
|
|
566
|
+
abstract readonly Kind: EndpointKind;
|
|
567
|
+
Mode: EndpointMode;
|
|
568
|
+
Name: string;
|
|
569
|
+
TrackingField: string;
|
|
570
|
+
GatherByField?: string;
|
|
571
|
+
AutoGenerateTrackingIdWhenMissing: boolean;
|
|
572
|
+
PollInterval: number;
|
|
573
|
+
MessageHeaders: Record<string, string>;
|
|
574
|
+
MessagePayload?: unknown;
|
|
575
|
+
MessagePayloadType?: string;
|
|
576
|
+
JsonSettings?: Record<string, unknown>;
|
|
577
|
+
JsonConvertSettings?: Record<string, unknown>;
|
|
578
|
+
ContentType?: string;
|
|
579
|
+
get JsonSerializerSettings(): Record<string, unknown> | undefined;
|
|
580
|
+
set JsonSerializerSettings(value: Record<string, unknown> | undefined);
|
|
581
|
+
protected constructor(initial?: TrafficEndpointDefinitionInit);
|
|
582
|
+
Validate(): void;
|
|
583
|
+
}
|
|
584
|
+
declare class HttpOAuth2ClientCredentialsOptionsModel {
|
|
585
|
+
TokenEndpoint: string;
|
|
586
|
+
ClientId: string;
|
|
587
|
+
ClientSecret: string;
|
|
588
|
+
Scopes: string[];
|
|
589
|
+
AdditionalFormFields: Record<string, string>;
|
|
590
|
+
constructor(initial?: HttpOAuth2ClientCredentialsOptionsInit);
|
|
591
|
+
Validate(): void;
|
|
592
|
+
}
|
|
593
|
+
declare class HttpAuthOptionsModel {
|
|
594
|
+
Type: HttpAuthMode;
|
|
595
|
+
Username?: string;
|
|
596
|
+
Password?: string;
|
|
597
|
+
BearerToken?: string;
|
|
598
|
+
TokenUrl?: string;
|
|
599
|
+
ClientId?: string;
|
|
600
|
+
ClientSecret?: string;
|
|
601
|
+
Scope?: string;
|
|
602
|
+
Scopes?: string[];
|
|
603
|
+
Audience?: string;
|
|
604
|
+
TokenHeaderName?: string;
|
|
605
|
+
AdditionalFormFields: Record<string, string>;
|
|
606
|
+
OAuth2ClientCredentials?: HttpOAuth2ClientCredentialsOptions | HttpOAuth2ClientCredentialsOptionsModel;
|
|
607
|
+
constructor(initial?: HttpAuthOptionsInit);
|
|
608
|
+
Validate(): void;
|
|
609
|
+
}
|
|
610
|
+
declare class KafkaSaslOptionsModel {
|
|
611
|
+
Mechanism: KafkaSaslMechanismType;
|
|
612
|
+
Username?: string;
|
|
613
|
+
Password?: string;
|
|
614
|
+
OAuthBearerTokenEndpointUrl?: string;
|
|
615
|
+
AccessToken?: string;
|
|
616
|
+
OAuthBearerToken?: string;
|
|
617
|
+
TokenEndpoint?: string;
|
|
618
|
+
AdditionalSettings: Record<string, string>;
|
|
619
|
+
constructor(initial?: KafkaSaslOptionsInit);
|
|
620
|
+
Validate(): void;
|
|
621
|
+
}
|
|
622
|
+
declare class HttpEndpointDefinitionModel extends TrafficEndpointDefinitionModel {
|
|
623
|
+
readonly Kind: "Http";
|
|
624
|
+
Url: string;
|
|
625
|
+
Method: string;
|
|
626
|
+
ConsumePoll?: () => Promise<TrackingPayload | null> | TrackingPayload | null;
|
|
627
|
+
BodyType: HttpRequestBodyType;
|
|
628
|
+
ResponseSource?: HttpResponseSource;
|
|
629
|
+
TrackingPayloadSource: HttpTrackingPayloadSource;
|
|
630
|
+
ConsumeArrayPath?: string;
|
|
631
|
+
ConsumeJsonArrayResponse: boolean;
|
|
632
|
+
RequestTimeout: number;
|
|
633
|
+
Auth: HttpAuthOptions | HttpAuthOptionsModel;
|
|
634
|
+
TokenRequestHeaders: Record<string, string>;
|
|
635
|
+
constructor(initial?: HttpEndpointDefinitionInit);
|
|
636
|
+
Validate(): void;
|
|
637
|
+
}
|
|
638
|
+
declare class KafkaEndpointDefinitionModel extends TrafficEndpointDefinitionModel {
|
|
639
|
+
readonly Kind: "Kafka";
|
|
640
|
+
BootstrapServers: string;
|
|
641
|
+
Topic: string;
|
|
642
|
+
ConsumerGroupId?: string;
|
|
643
|
+
SecurityProtocol: KafkaSecurityProtocolType;
|
|
644
|
+
Sasl?: KafkaSaslOptions | KafkaSaslOptionsModel;
|
|
645
|
+
ConfluentSettings: Record<string, string>;
|
|
646
|
+
StartFromEarliest: boolean;
|
|
647
|
+
constructor(initial?: KafkaEndpointDefinitionInit);
|
|
648
|
+
Validate(): void;
|
|
649
|
+
}
|
|
650
|
+
declare class RabbitMqEndpointDefinitionModel extends TrafficEndpointDefinitionModel {
|
|
651
|
+
readonly Kind: "RabbitMq";
|
|
652
|
+
HostName: string;
|
|
653
|
+
Port: number;
|
|
654
|
+
VirtualHost: string;
|
|
655
|
+
UserName: string;
|
|
656
|
+
Password: string;
|
|
657
|
+
Exchange: string;
|
|
658
|
+
RoutingKey: string;
|
|
659
|
+
QueueName: string;
|
|
660
|
+
Durable: boolean;
|
|
661
|
+
AutoAck: boolean;
|
|
662
|
+
UseSsl: boolean;
|
|
663
|
+
ClientProperties: Record<string, string>;
|
|
664
|
+
constructor(initial?: RabbitMqEndpointDefinitionInit);
|
|
665
|
+
Validate(): void;
|
|
666
|
+
}
|
|
667
|
+
declare class NatsEndpointDefinitionModel extends TrafficEndpointDefinitionModel {
|
|
668
|
+
readonly Kind: "Nats";
|
|
669
|
+
ServerUrl: string;
|
|
670
|
+
Subject: string;
|
|
671
|
+
QueueGroup?: string;
|
|
672
|
+
UserName?: string;
|
|
673
|
+
Password?: string;
|
|
674
|
+
Token?: string;
|
|
675
|
+
ConnectionName?: string;
|
|
676
|
+
MaxReconnectAttempts: number;
|
|
677
|
+
constructor(initial?: NatsEndpointDefinitionInit);
|
|
678
|
+
Validate(): void;
|
|
679
|
+
}
|
|
680
|
+
declare class RedisStreamsEndpointDefinitionModel extends TrafficEndpointDefinitionModel {
|
|
681
|
+
readonly Kind: "RedisStreams";
|
|
682
|
+
ConnectionString: string;
|
|
683
|
+
StreamKey: string;
|
|
684
|
+
ConsumerGroup?: string;
|
|
685
|
+
ConsumerName?: string;
|
|
686
|
+
StartFromEarliest: boolean;
|
|
687
|
+
ReadCount: number;
|
|
688
|
+
MaxLength?: number;
|
|
689
|
+
constructor(initial?: RedisStreamsEndpointDefinitionInit);
|
|
690
|
+
Validate(): void;
|
|
691
|
+
}
|
|
692
|
+
declare class AzureEventHubsEndpointDefinitionModel extends TrafficEndpointDefinitionModel {
|
|
693
|
+
readonly Kind: "AzureEventHubs";
|
|
694
|
+
ConnectionString: string;
|
|
695
|
+
EventHubName: string;
|
|
696
|
+
ConsumerGroup: string;
|
|
697
|
+
StartFromEarliest: boolean;
|
|
698
|
+
PartitionId?: string;
|
|
699
|
+
constructor(initial?: AzureEventHubsEndpointDefinitionInit);
|
|
700
|
+
Validate(): void;
|
|
701
|
+
}
|
|
702
|
+
declare class DelegateStreamEndpointDefinitionModel extends TrafficEndpointDefinitionModel {
|
|
703
|
+
readonly Kind: "DelegateStream";
|
|
704
|
+
Produce?: (payload: TrackingPayload) => Promise<TrackingPayload | null> | TrackingPayload | null;
|
|
705
|
+
Consume?: () => Promise<TrackingPayload | null> | TrackingPayload | null;
|
|
706
|
+
ProduceAsync?: (request: ProducedMessageRequest) => Promise<ProducedMessageResult | TrackingPayload | null> | ProducedMessageResult | TrackingPayload | null;
|
|
707
|
+
ConsumeAsync?: DelegateConsumeAsync;
|
|
708
|
+
ConnectionMetadata: Record<string, string>;
|
|
709
|
+
constructor(initial?: DelegateStreamEndpointDefinitionInit);
|
|
710
|
+
Validate(): void;
|
|
711
|
+
}
|
|
712
|
+
declare class PushDiffusionEndpointDefinitionModel extends TrafficEndpointDefinitionModel {
|
|
713
|
+
readonly Kind: "PushDiffusion";
|
|
714
|
+
ServerUrl: string;
|
|
715
|
+
TopicPath: string;
|
|
716
|
+
Principal?: string;
|
|
717
|
+
Password?: string;
|
|
718
|
+
ConnectionProperties: Record<string, string>;
|
|
719
|
+
PublishAsync?: (request: ProducedMessageRequest) => Promise<ProducedMessageResult | TrackingPayload | null> | ProducedMessageResult | TrackingPayload | null;
|
|
720
|
+
SubscribeAsync?: DelegateConsumeAsync;
|
|
721
|
+
constructor(initial?: PushDiffusionEndpointDefinitionInit);
|
|
722
|
+
Validate(): void;
|
|
723
|
+
}
|
|
724
|
+
export declare const TrafficEndpointDefinition: typeof TrafficEndpointDefinitionModel;
|
|
725
|
+
export declare const HttpEndpointDefinition: typeof HttpEndpointDefinitionModel;
|
|
726
|
+
export declare const KafkaEndpointDefinition: typeof KafkaEndpointDefinitionModel;
|
|
727
|
+
export declare const RabbitMqEndpointDefinition: typeof RabbitMqEndpointDefinitionModel;
|
|
728
|
+
export declare const NatsEndpointDefinition: typeof NatsEndpointDefinitionModel;
|
|
729
|
+
export declare const RedisStreamsEndpointDefinition: typeof RedisStreamsEndpointDefinitionModel;
|
|
730
|
+
export declare const AzureEventHubsEndpointDefinition: typeof AzureEventHubsEndpointDefinitionModel;
|
|
731
|
+
export declare const DelegateStreamEndpointDefinition: typeof DelegateStreamEndpointDefinitionModel;
|
|
732
|
+
export declare const PushDiffusionEndpointDefinition: typeof PushDiffusionEndpointDefinitionModel;
|
|
733
|
+
export declare const HttpOAuth2ClientCredentialsOptions: typeof HttpOAuth2ClientCredentialsOptionsModel;
|
|
734
|
+
export declare const HttpAuthOptions: typeof HttpAuthOptionsModel;
|
|
735
|
+
export declare const KafkaSaslOptions: typeof KafkaSaslOptionsModel;
|
|
736
|
+
export type EndpointDefinitionInput = EndpointDefinition | DotNetEndpointDefinition | HttpEndpointDefinition | KafkaEndpointDefinition | RabbitMqEndpointDefinition | NatsEndpointDefinition | RedisStreamsEndpointDefinition | AzureEventHubsEndpointDefinition | DelegateStreamEndpointDefinition | PushDiffusionEndpointDefinition;
|
|
737
|
+
export interface EndpointAdapter {
|
|
738
|
+
produce(payload?: TrackingPayload): Promise<TrackingPayload | null>;
|
|
739
|
+
consume(): Promise<TrackingPayload | null>;
|
|
740
|
+
dispose?(): Promise<void>;
|
|
741
|
+
}
|
|
742
|
+
export declare class EndpointAdapterFactory {
|
|
743
|
+
static create(endpoint: EndpointDefinitionInput): EndpointAdapter;
|
|
744
|
+
}
|
|
745
|
+
export {};
|