@ductape/sdk 0.0.4-v99 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agents/agent-context.d.ts +3 -1
- package/dist/agents/agent-context.js +19 -3
- package/dist/agents/agent-context.js.map +1 -1
- package/dist/agents/agents.service.js +9 -5
- package/dist/agents/agents.service.js.map +1 -1
- package/dist/agents/types/agents.types.d.ts +14 -1
- package/dist/agents/types/agents.types.js.map +1 -1
- package/dist/api/services/appApi.service.js +15 -6
- package/dist/api/services/appApi.service.js.map +1 -1
- package/dist/api/services/logsApi.service.d.ts +51 -0
- package/dist/api/services/logsApi.service.js +19 -2
- package/dist/api/services/logsApi.service.js.map +1 -1
- package/dist/api/services/processorApi.service.d.ts +568 -2
- package/dist/api/services/processorApi.service.js +412 -21
- package/dist/api/services/processorApi.service.js.map +1 -1
- package/dist/api/services/productsApi.service.d.ts +20 -0
- package/dist/api/services/productsApi.service.js +44 -15
- package/dist/api/services/productsApi.service.js.map +1 -1
- package/dist/api/services/secretsApi.service.js +0 -11
- package/dist/api/services/secretsApi.service.js.map +1 -1
- package/dist/api/services/webhooksApi.service.js +13 -6
- package/dist/api/services/webhooksApi.service.js.map +1 -1
- package/dist/api/services/workflowApi.service.js +30 -12
- package/dist/api/services/workflowApi.service.js.map +1 -1
- package/dist/api/urls.d.ts +26 -0
- package/dist/api/urls.js +30 -3
- package/dist/api/urls.js.map +1 -1
- package/dist/apps/validators/joi-validators/update.appAction.validator.js +12 -1
- package/dist/apps/validators/joi-validators/update.appAction.validator.js.map +1 -1
- package/dist/brokers/brokers.service.d.ts +140 -2
- package/dist/brokers/brokers.service.js +444 -36
- package/dist/brokers/brokers.service.js.map +1 -1
- package/dist/brokers/types/index.d.ts +251 -0
- package/dist/brokers/utils/providers/rabbitmq.service.d.ts +14 -4
- package/dist/brokers/utils/providers/rabbitmq.service.js +22 -35
- package/dist/brokers/utils/providers/rabbitmq.service.js.map +1 -1
- package/dist/cache/cache.manager.d.ts +84 -5
- package/dist/cache/cache.manager.js +478 -38
- package/dist/cache/cache.manager.js.map +1 -1
- package/dist/cache/cache.service.d.ts +5 -0
- package/dist/cache/cache.service.js +163 -6
- package/dist/cache/cache.service.js.map +1 -1
- package/dist/cache/index.d.ts +1 -1
- package/dist/cache/index.js +3 -1
- package/dist/cache/index.js.map +1 -1
- package/dist/cache/types/index.d.ts +4 -0
- package/dist/database/databases.service.d.ts +70 -2
- package/dist/database/databases.service.js +150 -35
- package/dist/database/databases.service.js.map +1 -1
- package/dist/database/types/dashboard.interface.d.ts +74 -0
- package/dist/database/types/dashboard.interface.js +7 -0
- package/dist/database/types/dashboard.interface.js.map +1 -0
- package/dist/database/types/index.d.ts +1 -0
- package/dist/graph/graphs.service.d.ts +50 -12
- package/dist/graph/graphs.service.js +689 -203
- package/dist/graph/graphs.service.js.map +1 -1
- package/dist/graph/types/connection.interface.d.ts +2 -2
- package/dist/index.d.ts +286 -4
- package/dist/index.js +370 -21
- package/dist/index.js.map +1 -1
- package/dist/logs/logs.types.d.ts +16 -3
- package/dist/logs/logs.types.js +11 -0
- package/dist/logs/logs.types.js.map +1 -1
- package/dist/notifications/notifications.service.d.ts +3 -0
- package/dist/notifications/notifications.service.js +57 -14
- package/dist/notifications/notifications.service.js.map +1 -1
- package/dist/notifications/types/notifications.types.d.ts +50 -0
- package/dist/processor/services/processor.service.d.ts +132 -8
- package/dist/processor/services/processor.service.js +1174 -267
- package/dist/processor/services/processor.service.js.map +1 -1
- package/dist/processor/utils/processor.utils.d.ts +5 -0
- package/dist/processor/utils/processor.utils.js +65 -12
- package/dist/processor/utils/processor.utils.js.map +1 -1
- package/dist/processor/utils/storage.util.js +11 -2
- package/dist/processor/utils/storage.util.js.map +1 -1
- package/dist/products/services/products.service.d.ts +19 -2
- package/dist/products/services/products.service.js +388 -54
- package/dist/products/services/products.service.js.map +1 -1
- package/dist/products/validators/joi-validators/create.productFeature.validator.js +1 -1
- package/dist/products/validators/joi-validators/create.productJob.validator.js +2 -2
- package/dist/products/validators/joi-validators/create.productJob.validator.js.map +1 -1
- package/dist/products/validators/joi-validators/create.productMessageBrokerTopic.validator.js +1 -0
- package/dist/products/validators/joi-validators/create.productMessageBrokerTopic.validator.js.map +1 -1
- package/dist/products/validators/joi-validators/create.productNotification.validator.js +23 -12
- package/dist/products/validators/joi-validators/create.productNotification.validator.js.map +1 -1
- package/dist/resilience/fallback.service.d.ts +1 -0
- package/dist/resilience/fallback.service.js +2 -0
- package/dist/resilience/fallback.service.js.map +1 -1
- package/dist/resilience/quota.service.d.ts +1 -0
- package/dist/resilience/quota.service.js +2 -0
- package/dist/resilience/quota.service.js.map +1 -1
- package/dist/secrets/secrets.resolver.js +4 -1
- package/dist/secrets/secrets.resolver.js.map +1 -1
- package/dist/secrets/secrets.service.js +0 -12
- package/dist/secrets/secrets.service.js.map +1 -1
- package/dist/secrets/secrets.types.d.ts +3 -3
- package/dist/secrets/secrets.types.js +5 -5
- package/dist/secrets/secrets.types.js.map +1 -1
- package/dist/sessions/index.d.ts +1 -1
- package/dist/sessions/index.js +4 -1
- package/dist/sessions/index.js.map +1 -1
- package/dist/sessions/sessions.helper.d.ts +23 -3
- package/dist/sessions/sessions.helper.js +20 -3
- package/dist/sessions/sessions.helper.js.map +1 -1
- package/dist/sessions/sessions.resolver.d.ts +31 -0
- package/dist/sessions/sessions.resolver.js +230 -1
- package/dist/sessions/sessions.resolver.js.map +1 -1
- package/dist/sessions/sessions.service.d.ts +18 -2
- package/dist/sessions/sessions.service.js +121 -57
- package/dist/sessions/sessions.service.js.map +1 -1
- package/dist/sessions/types/index.d.ts +65 -21
- package/dist/storage/storage.service.d.ts +3 -0
- package/dist/storage/storage.service.js +179 -39
- package/dist/storage/storage.service.js.map +1 -1
- package/dist/types/index.types.d.ts +2 -0
- package/dist/types/inputs.types.d.ts +1 -0
- package/dist/types/inputs.types.js +3 -2
- package/dist/types/inputs.types.js.map +1 -1
- package/dist/types/processor.types.d.ts +72 -6
- package/dist/types/processor.types.js.map +1 -1
- package/dist/types/productsBuilder.types.d.ts +10 -0
- package/dist/types/productsBuilder.types.js +4 -0
- package/dist/types/productsBuilder.types.js.map +1 -1
- package/dist/vector/adapters/weaviate.adapter.js +22 -6
- package/dist/vector/adapters/weaviate.adapter.js.map +1 -1
- package/dist/vector/vector-database.service.d.ts +4 -2
- package/dist/vector/vector-database.service.js +71 -29
- package/dist/vector/vector-database.service.js.map +1 -1
- package/dist/workflows/types/workflows.types.d.ts +61 -3
- package/dist/workflows/types/workflows.types.js.map +1 -1
- package/dist/workflows/workflow-builder.js +17 -2
- package/dist/workflows/workflow-builder.js.map +1 -1
- package/dist/workflows/workflow-executor.d.ts +97 -18
- package/dist/workflows/workflow-executor.js +1449 -244
- package/dist/workflows/workflow-executor.js.map +1 -1
- package/dist/workflows/workflows.service.d.ts +2 -0
- package/dist/workflows/workflows.service.js +538 -74
- package/dist/workflows/workflows.service.js.map +1 -1
- package/package.json +11 -1
- package/dist/processor/services/fallback.service.d.ts +0 -5
- package/dist/processor/services/fallback.service.js +0 -43
- package/dist/processor/services/fallback.service.js.map +0 -1
- package/dist/processor/services/messagebrokers/aws-sqs.service.d.ts +0 -15
- package/dist/processor/services/messagebrokers/aws-sqs.service.js +0 -77
- package/dist/processor/services/messagebrokers/aws-sqs.service.js.map +0 -1
- package/dist/processor/services/messagebrokers/google-pubsub.service.d.ts +0 -16
- package/dist/processor/services/messagebrokers/google-pubsub.service.js +0 -34
- package/dist/processor/services/messagebrokers/google-pubsub.service.js.map +0 -1
- package/dist/processor/services/messagebrokers/index.d.ts +0 -3
- package/dist/processor/services/messagebrokers/index.js +0 -26
- package/dist/processor/services/messagebrokers/index.js.map +0 -1
- package/dist/processor/services/messagebrokers/kafka.service.d.ts +0 -14
- package/dist/processor/services/messagebrokers/kafka.service.js +0 -45
- package/dist/processor/services/messagebrokers/kafka.service.js.map +0 -1
- package/dist/processor/services/messagebrokers/messagebrokers.type.d.ts +0 -6
- package/dist/processor/services/messagebrokers/messagebrokers.type.js +0 -3
- package/dist/processor/services/messagebrokers/messagebrokers.type.js.map +0 -1
- package/dist/processor/services/messagebrokers/rabbitmq.service.d.ts +0 -14
- package/dist/processor/services/messagebrokers/rabbitmq.service.js +0 -67
- package/dist/processor/services/messagebrokers/rabbitmq.service.js.map +0 -1
- package/dist/processor/services/messagebrokers/redis.service.d.ts +0 -18
- package/dist/processor/services/messagebrokers/redis.service.js +0 -82
- package/dist/processor/services/messagebrokers/redis.service.js.map +0 -1
- package/dist/processor/services/quota.service.d.ts +0 -15
- package/dist/processor/services/quota.service.js +0 -63
- package/dist/processor/services/quota.service.js.map +0 -1
- package/dist/test/index.d.ts +0 -3
- package/dist/test/index.js +0 -11
- package/dist/test/index.js.map +0 -1
- package/dist/test/test.appBuilder.d.ts +0 -0
- package/dist/test/test.appBuilder.js +0 -1
- package/dist/test/test.appBuilder.js.map +0 -1
- package/dist/test/test.broker.kafka.d.ts +0 -1
- package/dist/test/test.broker.kafka.js +0 -172
- package/dist/test/test.broker.kafka.js.map +0 -1
- package/dist/test/test.broker.nats.d.ts +0 -1
- package/dist/test/test.broker.nats.js +0 -193
- package/dist/test/test.broker.nats.js.map +0 -1
- package/dist/test/test.broker.pubsub.d.ts +0 -1
- package/dist/test/test.broker.pubsub.js +0 -171
- package/dist/test/test.broker.pubsub.js.map +0 -1
- package/dist/test/test.broker.rabbitmq.d.ts +0 -1
- package/dist/test/test.broker.rabbitmq.js +0 -164
- package/dist/test/test.broker.rabbitmq.js.map +0 -1
- package/dist/test/test.broker.redis.d.ts +0 -1
- package/dist/test/test.broker.redis.js +0 -168
- package/dist/test/test.broker.redis.js.map +0 -1
- package/dist/test/test.broker.sqs.d.ts +0 -1
- package/dist/test/test.broker.sqs.js +0 -158
- package/dist/test/test.broker.sqs.js.map +0 -1
- package/dist/test/test.caches.d.ts +0 -1
- package/dist/test/test.caches.js +0 -231
- package/dist/test/test.caches.js.map +0 -1
- package/dist/test/test.database.d.ts +0 -1
- package/dist/test/test.database.dynamo.d.ts +0 -1
- package/dist/test/test.database.dynamo.js +0 -265
- package/dist/test/test.database.dynamo.js.map +0 -1
- package/dist/test/test.database.js +0 -140
- package/dist/test/test.database.js.map +0 -1
- package/dist/test/test.database.mongo.d.ts +0 -1
- package/dist/test/test.database.mongo.js +0 -371
- package/dist/test/test.database.mongo.js.map +0 -1
- package/dist/test/test.database.mysql.d.ts +0 -1
- package/dist/test/test.database.mysql.js +0 -415
- package/dist/test/test.database.mysql.js.map +0 -1
- package/dist/test/test.database.postgres.d.ts +0 -1
- package/dist/test/test.database.postgres.js +0 -412
- package/dist/test/test.database.postgres.js.map +0 -1
- package/dist/test/test.email.brevo.d.ts +0 -1
- package/dist/test/test.email.brevo.js +0 -326
- package/dist/test/test.email.brevo.js.map +0 -1
- package/dist/test/test.email.mailgun.d.ts +0 -1
- package/dist/test/test.email.mailgun.js +0 -352
- package/dist/test/test.email.mailgun.js.map +0 -1
- package/dist/test/test.email.postmark.d.ts +0 -1
- package/dist/test/test.email.postmark.js +0 -316
- package/dist/test/test.email.postmark.js.map +0 -1
- package/dist/test/test.email.sendgrid.d.ts +0 -1
- package/dist/test/test.email.sendgrid.js +0 -365
- package/dist/test/test.email.sendgrid.js.map +0 -1
- package/dist/test/test.email.smtp.d.ts +0 -1
- package/dist/test/test.email.smtp.js +0 -323
- package/dist/test/test.email.smtp.js.map +0 -1
- package/dist/test/test.graph.arangodb.d.ts +0 -1
- package/dist/test/test.graph.arangodb.js +0 -358
- package/dist/test/test.graph.arangodb.js.map +0 -1
- package/dist/test/test.graph.memgraph.d.ts +0 -1
- package/dist/test/test.graph.memgraph.js +0 -320
- package/dist/test/test.graph.memgraph.js.map +0 -1
- package/dist/test/test.graph.neo4j.d.ts +0 -1
- package/dist/test/test.graph.neo4j.js +0 -218
- package/dist/test/test.graph.neo4j.js.map +0 -1
- package/dist/test/test.graph.neptune.d.ts +0 -1
- package/dist/test/test.graph.neptune.js +0 -331
- package/dist/test/test.graph.neptune.js.map +0 -1
- package/dist/test/test.health.d.ts +0 -0
- package/dist/test/test.health.js +0 -1
- package/dist/test/test.health.js.map +0 -1
- package/dist/test/test.import.d.ts +0 -0
- package/dist/test/test.import.js +0 -1
- package/dist/test/test.import.js.map +0 -1
- package/dist/test/test.import.openapi.d.ts +0 -0
- package/dist/test/test.import.openapi.js +0 -1
- package/dist/test/test.import.openapi.js.map +0 -1
- package/dist/test/test.imports.d.ts +0 -1
- package/dist/test/test.imports.js +0 -21
- package/dist/test/test.imports.js.map +0 -1
- package/dist/test/test.logs.d.ts +0 -0
- package/dist/test/test.logs.js +0 -1
- package/dist/test/test.logs.js.map +0 -1
- package/dist/test/test.notifications.d.ts +0 -1
- package/dist/test/test.notifications.js +0 -198
- package/dist/test/test.notifications.js.map +0 -1
- package/dist/test/test.notifiers.d.ts +0 -0
- package/dist/test/test.notifiers.js +0 -1
- package/dist/test/test.notifiers.js.map +0 -1
- package/dist/test/test.processor.d.ts +0 -0
- package/dist/test/test.processor.js +0 -1
- package/dist/test/test.processor.js.map +0 -1
- package/dist/test/test.productBuilder.d.ts +0 -0
- package/dist/test/test.productBuilder.js +0 -1
- package/dist/test/test.productBuilder.js.map +0 -1
- package/dist/test/test.products.d.ts +0 -0
- package/dist/test/test.products.js +0 -1
- package/dist/test/test.products.js.map +0 -1
- package/dist/test/test.push.expo.d.ts +0 -1
- package/dist/test/test.push.expo.js +0 -442
- package/dist/test/test.push.expo.js.map +0 -1
- package/dist/test/test.push.firebase.d.ts +0 -1
- package/dist/test/test.push.firebase.js +0 -409
- package/dist/test/test.push.firebase.js.map +0 -1
- package/dist/test/test.session.d.ts +0 -1
- package/dist/test/test.session.js +0 -299
- package/dist/test/test.session.js.map +0 -1
- package/dist/test/test.sms.nexmo.d.ts +0 -1
- package/dist/test/test.sms.nexmo.js +0 -278
- package/dist/test/test.sms.nexmo.js.map +0 -1
- package/dist/test/test.sms.twilio.d.ts +0 -1
- package/dist/test/test.sms.twilio.js +0 -275
- package/dist/test/test.sms.twilio.js.map +0 -1
- package/dist/test/test.storage.d.ts +0 -1
- package/dist/test/test.storage.js +0 -202
- package/dist/test/test.storage.js.map +0 -1
- package/dist/test/test.triggers.d.ts +0 -1
- package/dist/test/test.triggers.js +0 -314
- package/dist/test/test.triggers.js.map +0 -1
- package/dist/test/test.vector.pinecone.d.ts +0 -1
- package/dist/test/test.vector.pinecone.js +0 -238
- package/dist/test/test.vector.pinecone.js.map +0 -1
- package/dist/test/test.vector.qdrant.d.ts +0 -1
- package/dist/test/test.vector.qdrant.js +0 -307
- package/dist/test/test.vector.qdrant.js.map +0 -1
- package/dist/test/test.vector.weaviate.d.ts +0 -1
- package/dist/test/test.vector.weaviate.js +0 -325
- package/dist/test/test.vector.weaviate.js.map +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EnvType, IProcessorResult, IProcessProductPayload, FetchRemoteCachePayload, IRemoteCache, IRefreshTokenReq, IFileURLPayload } from '../../types';
|
|
2
2
|
import { IRequestExtension } from '../../types/requests.types';
|
|
3
3
|
export interface IProcessorApiService {
|
|
4
|
+
/** Save processor result (fire-and-forget from workflow/processor). data must include start and end (Unix ms). */
|
|
4
5
|
saveResult(data: IProcessorResult, payload: IRequestExtension): Promise<void>;
|
|
5
6
|
processProduct<T = any>(product_id: string, payload: IProcessProductPayload, auth: IRequestExtension): Promise<T>;
|
|
6
7
|
fetchResult(process_id: string, payload: IRequestExtension): Promise<void>;
|
|
@@ -33,6 +34,14 @@ export interface IProcessorApiService {
|
|
|
33
34
|
product: string;
|
|
34
35
|
env: string;
|
|
35
36
|
}, auth: IRequestExtension): Promise<boolean>;
|
|
37
|
+
checkSessionRevoked(payload: {
|
|
38
|
+
product: string;
|
|
39
|
+
env: string;
|
|
40
|
+
sessionId?: string;
|
|
41
|
+
identifier?: string;
|
|
42
|
+
}, auth: IRequestExtension): Promise<{
|
|
43
|
+
revoked: boolean;
|
|
44
|
+
}>;
|
|
36
45
|
getBrokerEvents(payload: {
|
|
37
46
|
product: string;
|
|
38
47
|
env: string;
|
|
@@ -133,7 +142,67 @@ export interface IProcessorApiService {
|
|
|
133
142
|
product_tag: string;
|
|
134
143
|
session_tag: string;
|
|
135
144
|
env?: string;
|
|
136
|
-
}, auth: IRequestExtension): Promise<
|
|
145
|
+
}, auth: IRequestExtension): Promise<{
|
|
146
|
+
totalUsers: number;
|
|
147
|
+
activeUsers: number;
|
|
148
|
+
inactiveUsers: number;
|
|
149
|
+
expiredUsers: number;
|
|
150
|
+
newUsersToday: number;
|
|
151
|
+
newUsersThisWeek: number;
|
|
152
|
+
totalSessions: number;
|
|
153
|
+
activeSessions: number;
|
|
154
|
+
averageSessionsPerUser: number;
|
|
155
|
+
dau: {
|
|
156
|
+
current: number;
|
|
157
|
+
previous: number;
|
|
158
|
+
change: number;
|
|
159
|
+
};
|
|
160
|
+
wau: {
|
|
161
|
+
current: number;
|
|
162
|
+
previous: number;
|
|
163
|
+
change: number;
|
|
164
|
+
};
|
|
165
|
+
mau: {
|
|
166
|
+
current: number;
|
|
167
|
+
previous: number;
|
|
168
|
+
change: number;
|
|
169
|
+
};
|
|
170
|
+
activityTimeline: Array<{
|
|
171
|
+
date: string;
|
|
172
|
+
sessions: number;
|
|
173
|
+
}>;
|
|
174
|
+
peakHours: Array<{
|
|
175
|
+
hour: string;
|
|
176
|
+
count: number;
|
|
177
|
+
}>;
|
|
178
|
+
environmentBreakdown: Array<{
|
|
179
|
+
env: string;
|
|
180
|
+
count: number;
|
|
181
|
+
percentage: number;
|
|
182
|
+
}>;
|
|
183
|
+
avgSessionDuration: {
|
|
184
|
+
current: string;
|
|
185
|
+
previous: string;
|
|
186
|
+
change: number;
|
|
187
|
+
};
|
|
188
|
+
}>;
|
|
189
|
+
fetchUserDashboard(payload: {
|
|
190
|
+
product_tag: string;
|
|
191
|
+
session_tag: string;
|
|
192
|
+
identifier: string;
|
|
193
|
+
env?: string;
|
|
194
|
+
}, auth: IRequestExtension): Promise<{
|
|
195
|
+
totalLogs: number;
|
|
196
|
+
successRate: number;
|
|
197
|
+
activityTimeline: Array<{
|
|
198
|
+
day: string;
|
|
199
|
+
count: number;
|
|
200
|
+
}>;
|
|
201
|
+
peakHours: Array<{
|
|
202
|
+
hour: string;
|
|
203
|
+
count: number;
|
|
204
|
+
}>;
|
|
205
|
+
}>;
|
|
137
206
|
fetchSessionActivityDashboard(payload: {
|
|
138
207
|
product_tag: string;
|
|
139
208
|
session_tag: string;
|
|
@@ -148,6 +217,7 @@ export interface IProcessorApiService {
|
|
|
148
217
|
env?: string;
|
|
149
218
|
page?: number;
|
|
150
219
|
limit?: number;
|
|
220
|
+
expiryFilter?: 'all' | 'expiring' | 'permanent' | 'expired';
|
|
151
221
|
}, auth: IRequestExtension): Promise<{
|
|
152
222
|
values: any[];
|
|
153
223
|
total: number;
|
|
@@ -175,11 +245,225 @@ export interface IProcessorApiService {
|
|
|
175
245
|
}, auth: IRequestExtension): Promise<{
|
|
176
246
|
deleted: number;
|
|
177
247
|
}>;
|
|
248
|
+
/** Log notification message send for reprocessing (fire-and-forget from processor). Input may be encrypted with product private key. */
|
|
249
|
+
logNotificationMessage(payload: {
|
|
250
|
+
workspace_id: string;
|
|
251
|
+
product_id: string;
|
|
252
|
+
product_tag: string;
|
|
253
|
+
env: string;
|
|
254
|
+
notification_tag: string;
|
|
255
|
+
input: Record<string, unknown> | string;
|
|
256
|
+
type: 'email' | 'push' | 'sms' | 'callback' | 'notification';
|
|
257
|
+
status: 'pending' | 'sent' | 'failed';
|
|
258
|
+
process_id?: string;
|
|
259
|
+
error?: string;
|
|
260
|
+
retries?: number;
|
|
261
|
+
session?: string;
|
|
262
|
+
cache?: string;
|
|
263
|
+
}, auth: IRequestExtension): Promise<void>;
|
|
264
|
+
/** Create job execution record (fire-and-forget from processor). */
|
|
265
|
+
createJobExecution(payload: {
|
|
266
|
+
job_id: string;
|
|
267
|
+
workspace_id: string;
|
|
268
|
+
product_id: string;
|
|
269
|
+
product_tag: string;
|
|
270
|
+
env: string;
|
|
271
|
+
job_tag: string;
|
|
272
|
+
job_type: string;
|
|
273
|
+
phase?: string;
|
|
274
|
+
scheduled_at?: number | Date;
|
|
275
|
+
started_at?: number | Date;
|
|
276
|
+
triggered_by?: string;
|
|
277
|
+
input?: Record<string, unknown>;
|
|
278
|
+
operation?: string;
|
|
279
|
+
}, auth: IRequestExtension): Promise<void>;
|
|
280
|
+
/** Update job execution phase (fire-and-forget from processor). */
|
|
281
|
+
updateJobExecutionPhase(payload: {
|
|
282
|
+
workspace_id: string;
|
|
283
|
+
job_id: string;
|
|
284
|
+
phase: string;
|
|
285
|
+
started_at?: number | Date;
|
|
286
|
+
completed_at?: number | Date;
|
|
287
|
+
duration_ms?: number;
|
|
288
|
+
error?: string;
|
|
289
|
+
error_code?: string;
|
|
290
|
+
retry_count?: number;
|
|
291
|
+
result_metadata?: Record<string, unknown>;
|
|
292
|
+
output?: Record<string, unknown>;
|
|
293
|
+
operation?: string;
|
|
294
|
+
}, auth: IRequestExtension): Promise<void>;
|
|
295
|
+
/** Query notification message logs (send history) with time filters. Secured via user auth. */
|
|
296
|
+
queryNotificationMessageLogs(payload: {
|
|
297
|
+
workspace_id: string;
|
|
298
|
+
product_tag?: string;
|
|
299
|
+
product_id?: string;
|
|
300
|
+
env?: string;
|
|
301
|
+
notification_tag?: string;
|
|
302
|
+
status?: string;
|
|
303
|
+
type?: string;
|
|
304
|
+
process_id?: string;
|
|
305
|
+
start_date?: string;
|
|
306
|
+
end_date?: string;
|
|
307
|
+
page?: number;
|
|
308
|
+
limit?: number;
|
|
309
|
+
}, auth: IRequestExtension): Promise<{
|
|
310
|
+
items: any[];
|
|
311
|
+
total: number;
|
|
312
|
+
page: number;
|
|
313
|
+
limit: number;
|
|
314
|
+
hasMore: boolean;
|
|
315
|
+
}>;
|
|
316
|
+
trackBrokerMessage(payload: {
|
|
317
|
+
workspace_id: string;
|
|
318
|
+
product_id: string;
|
|
319
|
+
product_tag: string;
|
|
320
|
+
env: string;
|
|
321
|
+
broker_tag: string;
|
|
322
|
+
topic_tag: string;
|
|
323
|
+
event: string;
|
|
324
|
+
producer_tag: string;
|
|
325
|
+
message_encrypted: string;
|
|
326
|
+
idempotency_key?: string;
|
|
327
|
+
process_id?: string;
|
|
328
|
+
session_tag?: string;
|
|
329
|
+
metadata?: Record<string, unknown>;
|
|
330
|
+
message_id?: string;
|
|
331
|
+
}, auth: IRequestExtension): Promise<any>;
|
|
332
|
+
trackBrokerMessageIdempotent(payload: {
|
|
333
|
+
workspace_id: string;
|
|
334
|
+
product_id: string;
|
|
335
|
+
product_tag: string;
|
|
336
|
+
env: string;
|
|
337
|
+
broker_tag: string;
|
|
338
|
+
topic_tag: string;
|
|
339
|
+
event: string;
|
|
340
|
+
producer_tag: string;
|
|
341
|
+
message_encrypted: string;
|
|
342
|
+
idempotency_key?: string;
|
|
343
|
+
process_id?: string;
|
|
344
|
+
session_tag?: string;
|
|
345
|
+
metadata?: Record<string, unknown>;
|
|
346
|
+
message_id?: string;
|
|
347
|
+
}, auth: IRequestExtension): Promise<{
|
|
348
|
+
message: any;
|
|
349
|
+
isDuplicate: boolean;
|
|
350
|
+
}>;
|
|
351
|
+
registerBrokerConsumer(payload: {
|
|
352
|
+
message_id: string;
|
|
353
|
+
consumer_tag: string;
|
|
354
|
+
}, auth: IRequestExtension): Promise<any>;
|
|
355
|
+
updateBrokerConsumerStatus(payload: {
|
|
356
|
+
message_id: string;
|
|
357
|
+
consumer_tag: string;
|
|
358
|
+
status: 'pending' | 'success' | 'failed' | 'partial';
|
|
359
|
+
error?: string;
|
|
360
|
+
retry_count?: number;
|
|
361
|
+
response_data?: Record<string, unknown>;
|
|
362
|
+
private_key?: string;
|
|
363
|
+
processing_time?: number;
|
|
364
|
+
}, auth: IRequestExtension): Promise<any>;
|
|
365
|
+
getBrokerMessageStats(payload: {
|
|
366
|
+
product_tag: string;
|
|
367
|
+
env: string;
|
|
368
|
+
broker_tag: string;
|
|
369
|
+
}, auth: IRequestExtension): Promise<{
|
|
370
|
+
total: number;
|
|
371
|
+
pending: number;
|
|
372
|
+
success: number;
|
|
373
|
+
failed: number;
|
|
374
|
+
partial: number;
|
|
375
|
+
}>;
|
|
376
|
+
retryBrokerMessage(payload: {
|
|
377
|
+
message_id: string;
|
|
378
|
+
consumer_tag: string;
|
|
379
|
+
}, auth: IRequestExtension): Promise<any>;
|
|
380
|
+
failBrokerMessage(payload: {
|
|
381
|
+
message_id: string;
|
|
382
|
+
error: string;
|
|
383
|
+
}, auth: IRequestExtension): Promise<any>;
|
|
384
|
+
queryBrokerMessages(payload: {
|
|
385
|
+
product_tag: string;
|
|
386
|
+
env: string;
|
|
387
|
+
broker_tag: string;
|
|
388
|
+
topic_tag?: string;
|
|
389
|
+
producer_tag?: string;
|
|
390
|
+
consumer_tag?: string;
|
|
391
|
+
status?: string;
|
|
392
|
+
start_date?: string;
|
|
393
|
+
end_date?: string;
|
|
394
|
+
page?: number;
|
|
395
|
+
limit?: number;
|
|
396
|
+
}, auth: IRequestExtension): Promise<{
|
|
397
|
+
messages: any[];
|
|
398
|
+
total: number;
|
|
399
|
+
page: number;
|
|
400
|
+
limit: number;
|
|
401
|
+
hasMore: boolean;
|
|
402
|
+
}>;
|
|
403
|
+
getBrokerProducers(payload: {
|
|
404
|
+
product_tag: string;
|
|
405
|
+
env: string;
|
|
406
|
+
broker_tag: string;
|
|
407
|
+
topic_tag?: string;
|
|
408
|
+
page?: number;
|
|
409
|
+
limit?: number;
|
|
410
|
+
}, auth: IRequestExtension): Promise<{
|
|
411
|
+
producers: any[];
|
|
412
|
+
total: number;
|
|
413
|
+
page: number;
|
|
414
|
+
limit: number;
|
|
415
|
+
hasMore: boolean;
|
|
416
|
+
}>;
|
|
417
|
+
getBrokerConsumers(payload: {
|
|
418
|
+
product_tag: string;
|
|
419
|
+
env: string;
|
|
420
|
+
broker_tag: string;
|
|
421
|
+
topic_tag?: string;
|
|
422
|
+
page?: number;
|
|
423
|
+
limit?: number;
|
|
424
|
+
}, auth: IRequestExtension): Promise<{
|
|
425
|
+
consumers: any[];
|
|
426
|
+
total: number;
|
|
427
|
+
page: number;
|
|
428
|
+
limit: number;
|
|
429
|
+
hasMore: boolean;
|
|
430
|
+
}>;
|
|
431
|
+
getBrokerDeadLetters(payload: {
|
|
432
|
+
product_tag: string;
|
|
433
|
+
env: string;
|
|
434
|
+
broker_tag: string;
|
|
435
|
+
topic_tag?: string;
|
|
436
|
+
consumer_tag?: string;
|
|
437
|
+
start_date?: string;
|
|
438
|
+
end_date?: string;
|
|
439
|
+
page?: number;
|
|
440
|
+
limit?: number;
|
|
441
|
+
}, auth: IRequestExtension): Promise<{
|
|
442
|
+
deadLetters: any[];
|
|
443
|
+
total: number;
|
|
444
|
+
page: number;
|
|
445
|
+
limit: number;
|
|
446
|
+
hasMore: boolean;
|
|
447
|
+
}>;
|
|
448
|
+
getBrokerComprehensiveStats(payload: {
|
|
449
|
+
product_tag: string;
|
|
450
|
+
env: string;
|
|
451
|
+
broker_tag: string;
|
|
452
|
+
}, auth: IRequestExtension): Promise<any>;
|
|
453
|
+
getBrokerDashboard(payload: {
|
|
454
|
+
product_tag: string;
|
|
455
|
+
env: string;
|
|
456
|
+
broker_tag: string;
|
|
457
|
+
}, auth: IRequestExtension): Promise<any>;
|
|
178
458
|
}
|
|
179
459
|
export declare class ProcessorApiService implements IProcessorApiService {
|
|
180
460
|
private environment;
|
|
181
461
|
constructor(environment: EnvType);
|
|
182
462
|
saveFileURL(payload: IFileURLPayload, auth: IRequestExtension): Promise<void>;
|
|
463
|
+
/**
|
|
464
|
+
* Save processor result (fire-and-forget from workflow executor / processor).
|
|
465
|
+
* data must include start and end (Unix ms) for timeline and list ordering.
|
|
466
|
+
*/
|
|
183
467
|
saveResult(data: IProcessorResult, payload: IRequestExtension): Promise<void>;
|
|
184
468
|
fetchResult(process_id: string, payload: IRequestExtension): Promise<void>;
|
|
185
469
|
processProduct<T = any>(product_id: string, payload: IProcessProductPayload, auth: IRequestExtension): Promise<T>;
|
|
@@ -211,6 +495,14 @@ export declare class ProcessorApiService implements IProcessorApiService {
|
|
|
211
495
|
product: string;
|
|
212
496
|
env: string;
|
|
213
497
|
}, auth: IRequestExtension): Promise<boolean>;
|
|
498
|
+
checkSessionRevoked(payload: {
|
|
499
|
+
product: string;
|
|
500
|
+
env: string;
|
|
501
|
+
sessionId?: string;
|
|
502
|
+
identifier?: string;
|
|
503
|
+
}, auth: IRequestExtension): Promise<{
|
|
504
|
+
revoked: boolean;
|
|
505
|
+
}>;
|
|
214
506
|
getBrokerEvents(payload: {
|
|
215
507
|
product: string;
|
|
216
508
|
env: string;
|
|
@@ -311,7 +603,67 @@ export declare class ProcessorApiService implements IProcessorApiService {
|
|
|
311
603
|
product_tag: string;
|
|
312
604
|
session_tag: string;
|
|
313
605
|
env?: string;
|
|
314
|
-
}, auth: IRequestExtension): Promise<
|
|
606
|
+
}, auth: IRequestExtension): Promise<{
|
|
607
|
+
totalUsers: number;
|
|
608
|
+
activeUsers: number;
|
|
609
|
+
inactiveUsers: number;
|
|
610
|
+
expiredUsers: number;
|
|
611
|
+
newUsersToday: number;
|
|
612
|
+
newUsersThisWeek: number;
|
|
613
|
+
totalSessions: number;
|
|
614
|
+
activeSessions: number;
|
|
615
|
+
averageSessionsPerUser: number;
|
|
616
|
+
dau: {
|
|
617
|
+
current: number;
|
|
618
|
+
previous: number;
|
|
619
|
+
change: number;
|
|
620
|
+
};
|
|
621
|
+
wau: {
|
|
622
|
+
current: number;
|
|
623
|
+
previous: number;
|
|
624
|
+
change: number;
|
|
625
|
+
};
|
|
626
|
+
mau: {
|
|
627
|
+
current: number;
|
|
628
|
+
previous: number;
|
|
629
|
+
change: number;
|
|
630
|
+
};
|
|
631
|
+
activityTimeline: Array<{
|
|
632
|
+
date: string;
|
|
633
|
+
sessions: number;
|
|
634
|
+
}>;
|
|
635
|
+
peakHours: Array<{
|
|
636
|
+
hour: string;
|
|
637
|
+
count: number;
|
|
638
|
+
}>;
|
|
639
|
+
environmentBreakdown: Array<{
|
|
640
|
+
env: string;
|
|
641
|
+
count: number;
|
|
642
|
+
percentage: number;
|
|
643
|
+
}>;
|
|
644
|
+
avgSessionDuration: {
|
|
645
|
+
current: string;
|
|
646
|
+
previous: string;
|
|
647
|
+
change: number;
|
|
648
|
+
};
|
|
649
|
+
}>;
|
|
650
|
+
fetchUserDashboard(payload: {
|
|
651
|
+
product_tag: string;
|
|
652
|
+
session_tag: string;
|
|
653
|
+
identifier: string;
|
|
654
|
+
env?: string;
|
|
655
|
+
}, auth: IRequestExtension): Promise<{
|
|
656
|
+
totalLogs: number;
|
|
657
|
+
successRate: number;
|
|
658
|
+
activityTimeline: Array<{
|
|
659
|
+
day: string;
|
|
660
|
+
count: number;
|
|
661
|
+
}>;
|
|
662
|
+
peakHours: Array<{
|
|
663
|
+
hour: string;
|
|
664
|
+
count: number;
|
|
665
|
+
}>;
|
|
666
|
+
}>;
|
|
315
667
|
fetchSessionActivityDashboard(payload: {
|
|
316
668
|
product_tag: string;
|
|
317
669
|
session_tag: string;
|
|
@@ -326,6 +678,7 @@ export declare class ProcessorApiService implements IProcessorApiService {
|
|
|
326
678
|
env?: string;
|
|
327
679
|
page?: number;
|
|
328
680
|
limit?: number;
|
|
681
|
+
expiryFilter?: 'all' | 'expiring' | 'permanent' | 'expired';
|
|
329
682
|
}, auth: IRequestExtension): Promise<{
|
|
330
683
|
values: any[];
|
|
331
684
|
total: number;
|
|
@@ -353,4 +706,217 @@ export declare class ProcessorApiService implements IProcessorApiService {
|
|
|
353
706
|
}, auth: IRequestExtension): Promise<{
|
|
354
707
|
deleted: number;
|
|
355
708
|
}>;
|
|
709
|
+
logNotificationMessage(payload: {
|
|
710
|
+
workspace_id: string;
|
|
711
|
+
product_id: string;
|
|
712
|
+
product_tag: string;
|
|
713
|
+
env: string;
|
|
714
|
+
notification_tag: string;
|
|
715
|
+
input: Record<string, unknown> | string;
|
|
716
|
+
type: 'email' | 'push' | 'sms' | 'callback' | 'notification';
|
|
717
|
+
status: 'pending' | 'sent' | 'failed';
|
|
718
|
+
process_id?: string;
|
|
719
|
+
error?: string;
|
|
720
|
+
retries?: number;
|
|
721
|
+
session?: string;
|
|
722
|
+
cache?: string;
|
|
723
|
+
}, auth: IRequestExtension): Promise<void>;
|
|
724
|
+
/**
|
|
725
|
+
* Create job execution record (fire-and-forget from processor). Does not throw; errors are logged.
|
|
726
|
+
*/
|
|
727
|
+
createJobExecution(payload: {
|
|
728
|
+
job_id: string;
|
|
729
|
+
workspace_id: string;
|
|
730
|
+
product_id: string;
|
|
731
|
+
product_tag: string;
|
|
732
|
+
env: string;
|
|
733
|
+
job_tag: string;
|
|
734
|
+
job_type: string;
|
|
735
|
+
phase?: string;
|
|
736
|
+
scheduled_at?: number | Date;
|
|
737
|
+
started_at?: number | Date;
|
|
738
|
+
triggered_by?: string;
|
|
739
|
+
input?: Record<string, unknown>;
|
|
740
|
+
operation?: string;
|
|
741
|
+
}, auth: IRequestExtension): Promise<void>;
|
|
742
|
+
/**
|
|
743
|
+
* Update job execution phase (fire-and-forget from processor). Does not throw; errors are logged.
|
|
744
|
+
*/
|
|
745
|
+
updateJobExecutionPhase(payload: {
|
|
746
|
+
workspace_id: string;
|
|
747
|
+
job_id: string;
|
|
748
|
+
phase: string;
|
|
749
|
+
started_at?: number | Date;
|
|
750
|
+
completed_at?: number | Date;
|
|
751
|
+
duration_ms?: number;
|
|
752
|
+
error?: string;
|
|
753
|
+
error_code?: string;
|
|
754
|
+
retry_count?: number;
|
|
755
|
+
result_metadata?: Record<string, unknown>;
|
|
756
|
+
output?: Record<string, unknown>;
|
|
757
|
+
operation?: string;
|
|
758
|
+
}, auth: IRequestExtension): Promise<void>;
|
|
759
|
+
queryNotificationMessageLogs(payload: {
|
|
760
|
+
workspace_id: string;
|
|
761
|
+
product_tag?: string;
|
|
762
|
+
product_id?: string;
|
|
763
|
+
env?: string;
|
|
764
|
+
notification_tag?: string;
|
|
765
|
+
status?: string;
|
|
766
|
+
type?: string;
|
|
767
|
+
process_id?: string;
|
|
768
|
+
start_date?: string;
|
|
769
|
+
end_date?: string;
|
|
770
|
+
page?: number;
|
|
771
|
+
limit?: number;
|
|
772
|
+
}, auth: IRequestExtension): Promise<{
|
|
773
|
+
items: any[];
|
|
774
|
+
total: number;
|
|
775
|
+
page: number;
|
|
776
|
+
limit: number;
|
|
777
|
+
hasMore: boolean;
|
|
778
|
+
}>;
|
|
779
|
+
trackBrokerMessage(payload: {
|
|
780
|
+
workspace_id: string;
|
|
781
|
+
product_id: string;
|
|
782
|
+
product_tag: string;
|
|
783
|
+
env: string;
|
|
784
|
+
broker_tag: string;
|
|
785
|
+
topic_tag: string;
|
|
786
|
+
event: string;
|
|
787
|
+
producer_tag: string;
|
|
788
|
+
message_encrypted: string;
|
|
789
|
+
idempotency_key?: string;
|
|
790
|
+
process_id?: string;
|
|
791
|
+
session_tag?: string;
|
|
792
|
+
metadata?: Record<string, unknown>;
|
|
793
|
+
message_id?: string;
|
|
794
|
+
}, auth: IRequestExtension): Promise<any>;
|
|
795
|
+
trackBrokerMessageIdempotent(payload: {
|
|
796
|
+
workspace_id: string;
|
|
797
|
+
product_id: string;
|
|
798
|
+
product_tag: string;
|
|
799
|
+
env: string;
|
|
800
|
+
broker_tag: string;
|
|
801
|
+
topic_tag: string;
|
|
802
|
+
event: string;
|
|
803
|
+
producer_tag: string;
|
|
804
|
+
message_encrypted: string;
|
|
805
|
+
idempotency_key?: string;
|
|
806
|
+
process_id?: string;
|
|
807
|
+
session_tag?: string;
|
|
808
|
+
metadata?: Record<string, unknown>;
|
|
809
|
+
message_id?: string;
|
|
810
|
+
}, auth: IRequestExtension): Promise<{
|
|
811
|
+
message: any;
|
|
812
|
+
isDuplicate: boolean;
|
|
813
|
+
}>;
|
|
814
|
+
registerBrokerConsumer(payload: {
|
|
815
|
+
message_id: string;
|
|
816
|
+
consumer_tag: string;
|
|
817
|
+
status?: 'pending' | 'success' | 'failed' | 'partial';
|
|
818
|
+
error?: string;
|
|
819
|
+
}, auth: IRequestExtension): Promise<any>;
|
|
820
|
+
updateBrokerConsumerStatus(payload: {
|
|
821
|
+
message_id: string;
|
|
822
|
+
consumer_tag: string;
|
|
823
|
+
status: 'pending' | 'success' | 'failed' | 'partial';
|
|
824
|
+
error?: string;
|
|
825
|
+
retry_count?: number;
|
|
826
|
+
response_data?: Record<string, unknown>;
|
|
827
|
+
private_key?: string;
|
|
828
|
+
}, auth: IRequestExtension): Promise<any>;
|
|
829
|
+
getBrokerMessageStats(payload: {
|
|
830
|
+
product_tag: string;
|
|
831
|
+
env: string;
|
|
832
|
+
broker_tag: string;
|
|
833
|
+
}, auth: IRequestExtension): Promise<{
|
|
834
|
+
total: number;
|
|
835
|
+
pending: number;
|
|
836
|
+
success: number;
|
|
837
|
+
failed: number;
|
|
838
|
+
partial: number;
|
|
839
|
+
}>;
|
|
840
|
+
retryBrokerMessage(payload: {
|
|
841
|
+
message_id: string;
|
|
842
|
+
consumer_tag: string;
|
|
843
|
+
}, auth: IRequestExtension): Promise<any>;
|
|
844
|
+
failBrokerMessage(payload: {
|
|
845
|
+
message_id: string;
|
|
846
|
+
error: string;
|
|
847
|
+
}, auth: IRequestExtension): Promise<any>;
|
|
848
|
+
queryBrokerMessages(payload: {
|
|
849
|
+
product_tag: string;
|
|
850
|
+
env: string;
|
|
851
|
+
broker_tag: string;
|
|
852
|
+
topic_tag?: string;
|
|
853
|
+
producer_tag?: string;
|
|
854
|
+
consumer_tag?: string;
|
|
855
|
+
status?: string;
|
|
856
|
+
start_date?: string;
|
|
857
|
+
end_date?: string;
|
|
858
|
+
page?: number;
|
|
859
|
+
limit?: number;
|
|
860
|
+
}, auth: IRequestExtension): Promise<{
|
|
861
|
+
messages: any[];
|
|
862
|
+
total: number;
|
|
863
|
+
page: number;
|
|
864
|
+
limit: number;
|
|
865
|
+
hasMore: boolean;
|
|
866
|
+
}>;
|
|
867
|
+
getBrokerProducers(payload: {
|
|
868
|
+
product_tag: string;
|
|
869
|
+
env: string;
|
|
870
|
+
broker_tag: string;
|
|
871
|
+
topic_tag?: string;
|
|
872
|
+
page?: number;
|
|
873
|
+
limit?: number;
|
|
874
|
+
}, auth: IRequestExtension): Promise<{
|
|
875
|
+
producers: any[];
|
|
876
|
+
total: number;
|
|
877
|
+
page: number;
|
|
878
|
+
limit: number;
|
|
879
|
+
hasMore: boolean;
|
|
880
|
+
}>;
|
|
881
|
+
getBrokerConsumers(payload: {
|
|
882
|
+
product_tag: string;
|
|
883
|
+
env: string;
|
|
884
|
+
broker_tag: string;
|
|
885
|
+
topic_tag?: string;
|
|
886
|
+
page?: number;
|
|
887
|
+
limit?: number;
|
|
888
|
+
}, auth: IRequestExtension): Promise<{
|
|
889
|
+
consumers: any[];
|
|
890
|
+
total: number;
|
|
891
|
+
page: number;
|
|
892
|
+
limit: number;
|
|
893
|
+
hasMore: boolean;
|
|
894
|
+
}>;
|
|
895
|
+
getBrokerDeadLetters(payload: {
|
|
896
|
+
product_tag: string;
|
|
897
|
+
env: string;
|
|
898
|
+
broker_tag: string;
|
|
899
|
+
topic_tag?: string;
|
|
900
|
+
consumer_tag?: string;
|
|
901
|
+
start_date?: string;
|
|
902
|
+
end_date?: string;
|
|
903
|
+
page?: number;
|
|
904
|
+
limit?: number;
|
|
905
|
+
}, auth: IRequestExtension): Promise<{
|
|
906
|
+
deadLetters: any[];
|
|
907
|
+
total: number;
|
|
908
|
+
page: number;
|
|
909
|
+
limit: number;
|
|
910
|
+
hasMore: boolean;
|
|
911
|
+
}>;
|
|
912
|
+
getBrokerComprehensiveStats(payload: {
|
|
913
|
+
product_tag: string;
|
|
914
|
+
env: string;
|
|
915
|
+
broker_tag: string;
|
|
916
|
+
}, auth: IRequestExtension): Promise<any>;
|
|
917
|
+
getBrokerDashboard(payload: {
|
|
918
|
+
product_tag: string;
|
|
919
|
+
env: string;
|
|
920
|
+
broker_tag: string;
|
|
921
|
+
}, auth: IRequestExtension): Promise<any>;
|
|
356
922
|
}
|