@stackone/olap 1.37.2 → 1.39.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.
Files changed (56) hide show
  1. package/dist/chunk-C_uqNoKw.cjs +1 -0
  2. package/dist/chunk-vR2LO-B7.mjs +1 -0
  3. package/dist/client-CxiSp4Kz.mjs +7 -0
  4. package/dist/client-D_jZT_sh.cjs +7 -0
  5. package/dist/dist-cjs-7cgXmuN1.cjs +1 -0
  6. package/dist/dist-cjs-BBOPveZ_.cjs +1 -0
  7. package/dist/dist-cjs-BEXyl9CE.cjs +1 -0
  8. package/dist/dist-cjs-BJejHHw0.mjs +1 -0
  9. package/dist/dist-cjs-BROT1u6D.mjs +21 -0
  10. package/dist/dist-cjs-C3UFC3Rw.cjs +1 -0
  11. package/dist/dist-cjs-CDrv1zcx.cjs +1 -0
  12. package/dist/dist-cjs-CFQiiLMm.cjs +1 -0
  13. package/dist/dist-cjs-CImGb38T.mjs +1 -0
  14. package/dist/dist-cjs-C_zn_i01.cjs +1 -0
  15. package/dist/dist-cjs-CgFnrTst.cjs +1 -0
  16. package/dist/dist-cjs-Cj3NYQtI.mjs +1 -0
  17. package/dist/dist-cjs-CmG4hcDN.cjs +1 -0
  18. package/dist/dist-cjs-D24pTYrl.mjs +1 -0
  19. package/dist/dist-cjs-D2IONrv0.cjs +1 -0
  20. package/dist/dist-cjs-D2azcEBs.cjs +1 -0
  21. package/dist/dist-cjs-DC7dl5c4.cjs +1 -0
  22. package/dist/dist-cjs-DCc0jF-Z.mjs +1 -0
  23. package/dist/dist-cjs-DJQQKYqb.mjs +1 -0
  24. package/dist/dist-cjs-DNkXQvYD.mjs +1 -0
  25. package/dist/dist-cjs-DcIt6eMS.mjs +5 -0
  26. package/dist/dist-cjs-DdKFBEUG.mjs +1 -0
  27. package/dist/dist-cjs-DhtfbTa-.cjs +1 -0
  28. package/dist/dist-cjs-DtKIuDDF.cjs +1 -0
  29. package/dist/dist-cjs-DuCMBjQS.cjs +21 -0
  30. package/dist/dist-cjs-LWm2hVH_.cjs +12 -0
  31. package/dist/dist-cjs-PLsdzpHT.mjs +1 -0
  32. package/dist/dist-cjs-X19WxNr5.mjs +1 -0
  33. package/dist/dist-cjs-_8tdit4z.mjs +1 -0
  34. package/dist/dist-cjs-eAT0vqyG.cjs +5 -0
  35. package/dist/dist-cjs-ngBHCypA.mjs +1 -0
  36. package/dist/dist-cjs-qRyJRodq.mjs +1 -0
  37. package/dist/dist-cjs-t0C5x-PN.mjs +1 -0
  38. package/dist/dist-cjs-wmzGBAE4.mjs +12 -0
  39. package/dist/event-streams-CA37ge5J.mjs +1 -0
  40. package/dist/event-streams-XivmSWgG.cjs +1 -0
  41. package/dist/index.cjs +26 -1
  42. package/dist/index.d.cts +80 -19
  43. package/dist/index.d.mts +93 -33
  44. package/dist/index.mjs +26 -1
  45. package/dist/package--ZTLvSpm.cjs +1 -0
  46. package/dist/package-DmN2B-57.mjs +1 -0
  47. package/dist/signin-BIIeLOjk.mjs +1 -0
  48. package/dist/signin-Bxo7nUca.cjs +1 -0
  49. package/dist/sso-oidc-4-y3FFnG.mjs +1 -0
  50. package/dist/sso-oidc-Cd15Ws6v.cjs +1 -0
  51. package/dist/sts-BNVkCfCW.mjs +1 -0
  52. package/dist/sts-BbQcEhgP.mjs +1 -0
  53. package/dist/sts-JEd7nqQo.cjs +1 -0
  54. package/dist/sts-Rnhz_R5a.cjs +1 -0
  55. package/package.json +1 -1
  56. package/dist/chunk-Cfxk5zVN.mjs +0 -1
package/dist/index.d.cts CHANGED
@@ -463,6 +463,44 @@ declare class HttpClient<TError extends Error = Error> implements IHttpClient {
463
463
  }): Promise<StreamHttpResponse>;
464
464
  }
465
465
  //#endregion
466
+ //#region ../core/src/source/types.d.ts
467
+ declare const SourceType: {
468
+ readonly RequestTester: "REQUEST_TESTER";
469
+ readonly ActionTester: "ACTION_TESTER";
470
+ readonly Dashboard: "DASHBOARD";
471
+ readonly Playground: "PLAYGROUND";
472
+ readonly SDK: "SDK";
473
+ readonly API: "API";
474
+ readonly Scheduler: "SCHEDULER";
475
+ readonly Webhook: "WEBHOOK";
476
+ readonly Agent: "AGENT";
477
+ readonly DataSync: "DATA_SYNC";
478
+ readonly Internal: "INTERNAL";
479
+ };
480
+ type SourceType = (typeof SourceType)[keyof typeof SourceType];
481
+ declare const TransportType: {
482
+ readonly HTTP: "HTTP";
483
+ readonly MCP: "MCP";
484
+ readonly ActionRPC: "ACTION_RPC";
485
+ readonly WebSocket: "WEBSOCKET";
486
+ };
487
+ type TransportType = (typeof TransportType)[keyof typeof TransportType];
488
+ declare const StreamType: {
489
+ readonly HTTP: "HTTP";
490
+ readonly WebSocket: "WEBSOCKET";
491
+ readonly SSE: "SSE";
492
+ };
493
+ type StreamType = (typeof StreamType)[keyof typeof StreamType] | null;
494
+ declare const AuthType: {
495
+ readonly APIKey: "API_KEY";
496
+ readonly SessionToken: "SESSION_TOKEN";
497
+ readonly UserSession: "USER_SESSION";
498
+ readonly Cookie: "COOKIE";
499
+ readonly Webhook: "WEBHOOK";
500
+ readonly Signature: "SIGNATURE";
501
+ };
502
+ type AuthType = (typeof AuthType)[keyof typeof AuthType];
503
+ //#endregion
466
504
  //#region src/olap/olapOptions.d.ts
467
505
  type OlapOptions = {
468
506
  logs?: LogsOptions;
@@ -578,22 +616,9 @@ type DefenderContext = {
578
616
  [key: string]: unknown;
579
617
  };
580
618
  type ActionInput = {
619
+ actionRunId: string;
581
620
  actionId?: string;
582
621
  mode: string;
583
- url?: string;
584
- pathParams?: unknown;
585
- queryParams?: unknown;
586
- body?: unknown;
587
- headers?: Record<string, string>;
588
- sourceId?: string;
589
- sourceType?: string;
590
- sourceValue?: string;
591
- isBackground?: boolean;
592
- startTime?: Date;
593
- };
594
- type ActionResult = {
595
- actionRunId: string;
596
- actionId: string;
597
622
  connectorKey: string;
598
623
  connectorVersion: string;
599
624
  connectorOwner?: string;
@@ -605,12 +630,29 @@ type ActionResult = {
605
630
  accountSecureId: string;
606
631
  originOwnerId?: string;
607
632
  originOwnerName?: string;
633
+ authType?: AuthType;
634
+ authId?: string;
635
+ sourceType?: SourceType;
636
+ userAgent?: string;
637
+ ipAddress?: string;
638
+ sessionId?: string;
639
+ agentId?: string;
640
+ transportType?: TransportType;
641
+ streamType?: StreamType;
642
+ isBackground?: boolean;
643
+ pathParams?: unknown;
644
+ queryParams?: unknown;
645
+ body?: unknown;
646
+ headers?: Record<string, string>;
608
647
  httpMethod?: string;
609
648
  url?: string;
610
649
  path?: string;
611
650
  resource?: string;
612
651
  subResource?: string;
613
652
  childResource?: string;
653
+ startTime?: Date;
654
+ };
655
+ type ActionResult = {
614
656
  success?: boolean;
615
657
  statusCode?: number;
616
658
  message?: string;
@@ -665,9 +707,12 @@ type UnifiedInput = {
665
707
  resource?: string;
666
708
  subResource?: string;
667
709
  childResource?: string;
668
- sourceId?: string;
669
- sourceType?: string;
670
- sourceValue?: string;
710
+ authType?: AuthType;
711
+ authId?: string;
712
+ sourceType?: SourceType;
713
+ userAgent?: string;
714
+ ipAddress?: string;
715
+ transportType?: TransportType;
671
716
  isBackground?: boolean;
672
717
  startTime?: Date;
673
718
  };
@@ -956,9 +1001,17 @@ type ActionLog = ILog & {
956
1001
  originOwnerName?: string;
957
1002
  httpMethod?: string;
958
1003
  url?: string;
959
- sourceType?: string;
1004
+ sourceType?: SourceType;
960
1005
  sourceId?: string;
961
1006
  sourceValue?: string;
1007
+ authType?: AuthType;
1008
+ authId?: string;
1009
+ userAgent?: string;
1010
+ ipAddress?: string;
1011
+ sessionId?: string;
1012
+ agentId?: string;
1013
+ transportType?: TransportType;
1014
+ streamType?: StreamType;
962
1015
  isBackground?: boolean;
963
1016
  success?: boolean;
964
1017
  statusCode?: number;
@@ -1001,8 +1054,16 @@ type UnifiedLog = ILog & {
1001
1054
  service?: string;
1002
1055
  action?: string;
1003
1056
  sourceId?: string;
1004
- sourceType?: string;
1057
+ sourceType?: SourceType;
1005
1058
  sourceValue?: string;
1059
+ authType?: AuthType;
1060
+ authId?: string;
1061
+ userAgent?: string;
1062
+ ipAddress?: string;
1063
+ sessionId?: string;
1064
+ agentId?: string;
1065
+ transportType?: TransportType;
1066
+ streamType?: StreamType;
1006
1067
  isBackground?: boolean;
1007
1068
  originOwnerId?: string;
1008
1069
  originOwnerName?: string;
package/dist/index.d.mts CHANGED
@@ -1,12 +1,11 @@
1
- import { t as __name } from "./chunk-Cfxk5zVN.mjs";
1
+ import { i as __name } from "./chunk-vR2LO-B7.mjs";
2
2
  import { S3Client } from "@aws-sdk/client-s3";
3
+ import { Readable } from "node:stream";
4
+ import https from "node:https";
3
5
  import http from "node:http";
4
6
  import { Producer } from "@platformatic/kafka";
5
- import https from "node:https";
6
7
  import { AxiosInstance } from "axios";
7
8
  import * as redis from "redis";
8
- import { Readable } from "node:stream";
9
- import "zod/v4";
10
9
 
11
10
  //#region ../logger/src/types.d.ts
12
11
  interface ILogger {
@@ -193,7 +192,7 @@ type HttpQueryParams = {
193
192
  };
194
193
  declare const HttpMethods: readonly ["get", "post", "put", "delete", "patch"];
195
194
  type HttpMethod = (typeof HttpMethods)[number];
196
- type HttpResponse<T = any, P$1 = any> = {
195
+ type HttpResponse<T = any, P = any> = {
197
196
  data: T;
198
197
  status: number;
199
198
  headers: HttpHeaders;
@@ -201,7 +200,7 @@ type HttpResponse<T = any, P$1 = any> = {
201
200
  responseType?: string;
202
201
  responseTime?: Date;
203
202
  message?: string;
204
- body?: P$1;
203
+ body?: P;
205
204
  };
206
205
  type StreamHttpResponse = {
207
206
  status: number;
@@ -210,7 +209,7 @@ type StreamHttpResponse = {
210
209
  requestUrl: string;
211
210
  };
212
211
  interface IHttpClient {
213
- request<P$1, T>({
212
+ request<P, T>({
214
213
  headers,
215
214
  url,
216
215
  method,
@@ -233,7 +232,7 @@ interface IHttpClient {
233
232
  responseType?: 'arraybuffer' | 'blob' | 'document' | 'json' | 'text';
234
233
  cacheTTL?: number;
235
234
  context?: RequestContext;
236
- payload?: P$1;
235
+ payload?: P;
237
236
  httpsAgent?: https.Agent;
238
237
  httpAgent?: http.Agent;
239
238
  requestConfig?: RequestConfig;
@@ -256,7 +255,7 @@ interface IHttpClient {
256
255
  context?: RequestContext;
257
256
  requestConfig?: RequestConfig;
258
257
  }): Promise<HttpResponse<T>>;
259
- post<P$1, T>({
258
+ post<P, T>({
260
259
  headers,
261
260
  url,
262
261
  maxRedirects,
@@ -270,7 +269,7 @@ interface IHttpClient {
270
269
  maxRedirects?: number;
271
270
  cacheTTL?: number;
272
271
  context?: RequestContext;
273
- payload?: P$1;
272
+ payload?: P;
274
273
  requestConfig?: RequestConfig;
275
274
  }): Promise<HttpResponse<T>>;
276
275
  requestStream({
@@ -365,7 +364,7 @@ declare class HttpClient<TError extends Error = Error> implements IHttpClient {
365
364
  redisClientConfig?: RedisClientConfig;
366
365
  errorMappingFn?: ErrorMappingFn<TError>;
367
366
  });
368
- request<P$1, T>({
367
+ request<P, T>({
369
368
  headers,
370
369
  url,
371
370
  method,
@@ -390,7 +389,7 @@ declare class HttpClient<TError extends Error = Error> implements IHttpClient {
390
389
  cacheTTL?: number;
391
390
  context?: RequestContext;
392
391
  traceId?: string;
393
- payload?: P$1;
392
+ payload?: P;
394
393
  httpsAgent?: https.Agent;
395
394
  httpAgent?: http.Agent;
396
395
  requestConfig?: RequestConfig;
@@ -415,7 +414,7 @@ declare class HttpClient<TError extends Error = Error> implements IHttpClient {
415
414
  traceId?: string;
416
415
  requestConfig?: RequestConfig;
417
416
  }): Promise<HttpResponse<T>>;
418
- post<P$1, T>({
417
+ post<P, T>({
419
418
  headers,
420
419
  url,
421
420
  maxRedirects,
@@ -431,7 +430,7 @@ declare class HttpClient<TError extends Error = Error> implements IHttpClient {
431
430
  cacheTTL?: number;
432
431
  context?: RequestContext;
433
432
  traceId?: string;
434
- payload?: P$1;
433
+ payload?: P;
435
434
  requestConfig?: RequestConfig;
436
435
  }): Promise<HttpResponse<T>>;
437
436
  requestStream({
@@ -463,6 +462,44 @@ declare class HttpClient<TError extends Error = Error> implements IHttpClient {
463
462
  }): Promise<StreamHttpResponse>;
464
463
  }
465
464
  //#endregion
465
+ //#region ../core/src/source/types.d.ts
466
+ declare const SourceType: {
467
+ readonly RequestTester: "REQUEST_TESTER";
468
+ readonly ActionTester: "ACTION_TESTER";
469
+ readonly Dashboard: "DASHBOARD";
470
+ readonly Playground: "PLAYGROUND";
471
+ readonly SDK: "SDK";
472
+ readonly API: "API";
473
+ readonly Scheduler: "SCHEDULER";
474
+ readonly Webhook: "WEBHOOK";
475
+ readonly Agent: "AGENT";
476
+ readonly DataSync: "DATA_SYNC";
477
+ readonly Internal: "INTERNAL";
478
+ };
479
+ type SourceType = (typeof SourceType)[keyof typeof SourceType];
480
+ declare const TransportType: {
481
+ readonly HTTP: "HTTP";
482
+ readonly MCP: "MCP";
483
+ readonly ActionRPC: "ACTION_RPC";
484
+ readonly WebSocket: "WEBSOCKET";
485
+ };
486
+ type TransportType = (typeof TransportType)[keyof typeof TransportType];
487
+ declare const StreamType: {
488
+ readonly HTTP: "HTTP";
489
+ readonly WebSocket: "WEBSOCKET";
490
+ readonly SSE: "SSE";
491
+ };
492
+ type StreamType = (typeof StreamType)[keyof typeof StreamType] | null;
493
+ declare const AuthType: {
494
+ readonly APIKey: "API_KEY";
495
+ readonly SessionToken: "SESSION_TOKEN";
496
+ readonly UserSession: "USER_SESSION";
497
+ readonly Cookie: "COOKIE";
498
+ readonly Webhook: "WEBHOOK";
499
+ readonly Signature: "SIGNATURE";
500
+ };
501
+ type AuthType = (typeof AuthType)[keyof typeof AuthType];
502
+ //#endregion
466
503
  //#region src/olap/olapOptions.d.ts
467
504
  type OlapOptions = {
468
505
  logs?: LogsOptions;
@@ -578,22 +615,9 @@ type DefenderContext = {
578
615
  [key: string]: unknown;
579
616
  };
580
617
  type ActionInput = {
618
+ actionRunId: string;
581
619
  actionId?: string;
582
620
  mode: string;
583
- url?: string;
584
- pathParams?: unknown;
585
- queryParams?: unknown;
586
- body?: unknown;
587
- headers?: Record<string, string>;
588
- sourceId?: string;
589
- sourceType?: string;
590
- sourceValue?: string;
591
- isBackground?: boolean;
592
- startTime?: Date;
593
- };
594
- type ActionResult = {
595
- actionRunId: string;
596
- actionId: string;
597
621
  connectorKey: string;
598
622
  connectorVersion: string;
599
623
  connectorOwner?: string;
@@ -605,12 +629,29 @@ type ActionResult = {
605
629
  accountSecureId: string;
606
630
  originOwnerId?: string;
607
631
  originOwnerName?: string;
632
+ authType?: AuthType;
633
+ authId?: string;
634
+ sourceType?: SourceType;
635
+ userAgent?: string;
636
+ ipAddress?: string;
637
+ sessionId?: string;
638
+ agentId?: string;
639
+ transportType?: TransportType;
640
+ streamType?: StreamType;
641
+ isBackground?: boolean;
642
+ pathParams?: unknown;
643
+ queryParams?: unknown;
644
+ body?: unknown;
645
+ headers?: Record<string, string>;
608
646
  httpMethod?: string;
609
647
  url?: string;
610
648
  path?: string;
611
649
  resource?: string;
612
650
  subResource?: string;
613
651
  childResource?: string;
652
+ startTime?: Date;
653
+ };
654
+ type ActionResult = {
614
655
  success?: boolean;
615
656
  statusCode?: number;
616
657
  message?: string;
@@ -665,9 +706,12 @@ type UnifiedInput = {
665
706
  resource?: string;
666
707
  subResource?: string;
667
708
  childResource?: string;
668
- sourceId?: string;
669
- sourceType?: string;
670
- sourceValue?: string;
709
+ authType?: AuthType;
710
+ authId?: string;
711
+ sourceType?: SourceType;
712
+ userAgent?: string;
713
+ ipAddress?: string;
714
+ transportType?: TransportType;
671
715
  isBackground?: boolean;
672
716
  startTime?: Date;
673
717
  };
@@ -956,9 +1000,17 @@ type ActionLog = ILog & {
956
1000
  originOwnerName?: string;
957
1001
  httpMethod?: string;
958
1002
  url?: string;
959
- sourceType?: string;
1003
+ sourceType?: SourceType;
960
1004
  sourceId?: string;
961
1005
  sourceValue?: string;
1006
+ authType?: AuthType;
1007
+ authId?: string;
1008
+ userAgent?: string;
1009
+ ipAddress?: string;
1010
+ sessionId?: string;
1011
+ agentId?: string;
1012
+ transportType?: TransportType;
1013
+ streamType?: StreamType;
962
1014
  isBackground?: boolean;
963
1015
  success?: boolean;
964
1016
  statusCode?: number;
@@ -1001,8 +1053,16 @@ type UnifiedLog = ILog & {
1001
1053
  service?: string;
1002
1054
  action?: string;
1003
1055
  sourceId?: string;
1004
- sourceType?: string;
1056
+ sourceType?: SourceType;
1005
1057
  sourceValue?: string;
1058
+ authType?: AuthType;
1059
+ authId?: string;
1060
+ userAgent?: string;
1061
+ ipAddress?: string;
1062
+ sessionId?: string;
1063
+ agentId?: string;
1064
+ transportType?: TransportType;
1065
+ streamType?: StreamType;
1006
1066
  isBackground?: boolean;
1007
1067
  originOwnerId?: string;
1008
1068
  originOwnerName?: string;