@stackone/olap 1.38.0 → 1.40.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 +15 -10
  43. package/dist/index.d.mts +18 -13
  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
@@ -470,27 +470,29 @@ declare const SourceType: {
470
470
  readonly Dashboard: "DASHBOARD";
471
471
  readonly Playground: "PLAYGROUND";
472
472
  readonly SDK: "SDK";
473
+ readonly API: "API";
473
474
  readonly Scheduler: "SCHEDULER";
474
475
  readonly Webhook: "WEBHOOK";
475
476
  readonly Agent: "AGENT";
477
+ readonly DataSync: "DATA_SYNC";
476
478
  readonly Internal: "INTERNAL";
477
479
  };
478
480
  type SourceType = (typeof SourceType)[keyof typeof SourceType];
479
481
  declare const TransportType: {
480
- readonly Http: "HTTP";
481
- readonly Mcp: "MCP";
482
- readonly ActionRpc: "ACTION_RPC";
482
+ readonly HTTP: "HTTP";
483
+ readonly MCP: "MCP";
484
+ readonly ActionRPC: "ACTION_RPC";
483
485
  readonly WebSocket: "WEBSOCKET";
484
486
  };
485
487
  type TransportType = (typeof TransportType)[keyof typeof TransportType];
486
488
  declare const StreamType: {
487
- readonly Http: "HTTP";
489
+ readonly HTTP: "HTTP";
488
490
  readonly WebSocket: "WEBSOCKET";
489
- readonly Sse: "SSE";
491
+ readonly SSE: "SSE";
490
492
  };
491
493
  type StreamType = (typeof StreamType)[keyof typeof StreamType] | null;
492
494
  declare const AuthType: {
493
- readonly ApiKey: "API_KEY";
495
+ readonly APIKey: "API_KEY";
494
496
  readonly SessionToken: "SESSION_TOKEN";
495
497
  readonly UserSession: "USER_SESSION";
496
498
  readonly Cookie: "COOKIE";
@@ -590,6 +592,7 @@ interface IOlapClient {
590
592
  getLogs(organizationId: string, projectSecureId: string, query: Query): Promise<QueryResult>;
591
593
  getActionLogs(organizationId: string, projectSecureId: string, query: ActionsQuery): Promise<ActionsQueryResult>;
592
594
  getActionLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionLog | undefined>;
595
+ getLog(organizationId: string, projectSecureId: string, logId: string): Promise<ActionLog | UnifiedLog | StepLog | ProviderLog | undefined>;
593
596
  getStepLogs(organizationId: string, projectSecureId: string, query: StepsQuery): Promise<StepsQueryResult>;
594
597
  getStepLog(organizationId: string, projectSecureId: string, actionRunId: string, stepIndex: number): Promise<StepLog | undefined>;
595
598
  getUnifiedLogs(organizationId: string, projectSecureId: string, query: UnifiedQuery): Promise<UnifiedQueryResult>;
@@ -630,7 +633,7 @@ type ActionInput = {
630
633
  originOwnerName?: string;
631
634
  authType?: AuthType;
632
635
  authId?: string;
633
- sourceType?: SourceType | string;
636
+ sourceType?: SourceType;
634
637
  userAgent?: string;
635
638
  ipAddress?: string;
636
639
  sessionId?: string;
@@ -707,7 +710,7 @@ type UnifiedInput = {
707
710
  childResource?: string;
708
711
  authType?: AuthType;
709
712
  authId?: string;
710
- sourceType?: SourceType | string;
713
+ sourceType?: SourceType;
711
714
  userAgent?: string;
712
715
  ipAddress?: string;
713
716
  transportType?: TransportType;
@@ -785,6 +788,7 @@ type Query = {
785
788
  originOwnerId?: string | string[];
786
789
  httpMethod?: string | string[];
787
790
  isBackground?: boolean;
791
+ logId?: string | string[];
788
792
  logType?: (typeof LogType.Action | typeof LogType.Unified) | (typeof LogType.Action | typeof LogType.Unified)[];
789
793
  success?: boolean;
790
794
  startTime?: Date;
@@ -999,7 +1003,7 @@ type ActionLog = ILog & {
999
1003
  originOwnerName?: string;
1000
1004
  httpMethod?: string;
1001
1005
  url?: string;
1002
- sourceType?: SourceType | string;
1006
+ sourceType?: SourceType;
1003
1007
  sourceId?: string;
1004
1008
  sourceValue?: string;
1005
1009
  authType?: AuthType;
@@ -1052,7 +1056,7 @@ type UnifiedLog = ILog & {
1052
1056
  service?: string;
1053
1057
  action?: string;
1054
1058
  sourceId?: string;
1055
- sourceType?: SourceType | string;
1059
+ sourceType?: SourceType;
1056
1060
  sourceValue?: string;
1057
1061
  authType?: AuthType;
1058
1062
  authId?: string;
@@ -1141,6 +1145,7 @@ declare class OlapClient implements IOlapClient {
1141
1145
  getLogs(organizationId: string, projectSecureId: string, query: Query): Promise<QueryResult>;
1142
1146
  getActionLogs(organizationId: string, projectSecureId: string, query: ActionsQuery): Promise<ActionsQueryResult>;
1143
1147
  getActionLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionLog | undefined>;
1148
+ getLog(organizationId: string, projectSecureId: string, logId: string): Promise<ActionLog | UnifiedLog | StepLog | ProviderLog | undefined>;
1144
1149
  getStepLogs(organizationId: string, projectSecureId: string, query: StepsQuery): Promise<StepsQueryResult>;
1145
1150
  getStepLog(organizationId: string, projectSecureId: string, actionRunId: string, stepIndex: number): Promise<StepLog | undefined>;
1146
1151
  getUnifiedLogs(organizationId: string, projectSecureId: string, query: UnifiedQuery): Promise<UnifiedQueryResult>;
package/dist/index.d.mts CHANGED
@@ -1,8 +1,8 @@
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 http from "node:http";
4
- import https from "node:https";
5
3
  import { Readable } from "node:stream";
4
+ import https from "node:https";
5
+ import http from "node:http";
6
6
  import { Producer } from "@platformatic/kafka";
7
7
  import { AxiosInstance } from "axios";
8
8
  import * as redis from "redis";
@@ -469,27 +469,29 @@ declare const SourceType: {
469
469
  readonly Dashboard: "DASHBOARD";
470
470
  readonly Playground: "PLAYGROUND";
471
471
  readonly SDK: "SDK";
472
+ readonly API: "API";
472
473
  readonly Scheduler: "SCHEDULER";
473
474
  readonly Webhook: "WEBHOOK";
474
475
  readonly Agent: "AGENT";
476
+ readonly DataSync: "DATA_SYNC";
475
477
  readonly Internal: "INTERNAL";
476
478
  };
477
479
  type SourceType = (typeof SourceType)[keyof typeof SourceType];
478
480
  declare const TransportType: {
479
- readonly Http: "HTTP";
480
- readonly Mcp: "MCP";
481
- readonly ActionRpc: "ACTION_RPC";
481
+ readonly HTTP: "HTTP";
482
+ readonly MCP: "MCP";
483
+ readonly ActionRPC: "ACTION_RPC";
482
484
  readonly WebSocket: "WEBSOCKET";
483
485
  };
484
486
  type TransportType = (typeof TransportType)[keyof typeof TransportType];
485
487
  declare const StreamType: {
486
- readonly Http: "HTTP";
488
+ readonly HTTP: "HTTP";
487
489
  readonly WebSocket: "WEBSOCKET";
488
- readonly Sse: "SSE";
490
+ readonly SSE: "SSE";
489
491
  };
490
492
  type StreamType = (typeof StreamType)[keyof typeof StreamType] | null;
491
493
  declare const AuthType: {
492
- readonly ApiKey: "API_KEY";
494
+ readonly APIKey: "API_KEY";
493
495
  readonly SessionToken: "SESSION_TOKEN";
494
496
  readonly UserSession: "USER_SESSION";
495
497
  readonly Cookie: "COOKIE";
@@ -589,6 +591,7 @@ interface IOlapClient {
589
591
  getLogs(organizationId: string, projectSecureId: string, query: Query): Promise<QueryResult>;
590
592
  getActionLogs(organizationId: string, projectSecureId: string, query: ActionsQuery): Promise<ActionsQueryResult>;
591
593
  getActionLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionLog | undefined>;
594
+ getLog(organizationId: string, projectSecureId: string, logId: string): Promise<ActionLog | UnifiedLog | StepLog | ProviderLog | undefined>;
592
595
  getStepLogs(organizationId: string, projectSecureId: string, query: StepsQuery): Promise<StepsQueryResult>;
593
596
  getStepLog(organizationId: string, projectSecureId: string, actionRunId: string, stepIndex: number): Promise<StepLog | undefined>;
594
597
  getUnifiedLogs(organizationId: string, projectSecureId: string, query: UnifiedQuery): Promise<UnifiedQueryResult>;
@@ -629,7 +632,7 @@ type ActionInput = {
629
632
  originOwnerName?: string;
630
633
  authType?: AuthType;
631
634
  authId?: string;
632
- sourceType?: SourceType | string;
635
+ sourceType?: SourceType;
633
636
  userAgent?: string;
634
637
  ipAddress?: string;
635
638
  sessionId?: string;
@@ -706,7 +709,7 @@ type UnifiedInput = {
706
709
  childResource?: string;
707
710
  authType?: AuthType;
708
711
  authId?: string;
709
- sourceType?: SourceType | string;
712
+ sourceType?: SourceType;
710
713
  userAgent?: string;
711
714
  ipAddress?: string;
712
715
  transportType?: TransportType;
@@ -784,6 +787,7 @@ type Query = {
784
787
  originOwnerId?: string | string[];
785
788
  httpMethod?: string | string[];
786
789
  isBackground?: boolean;
790
+ logId?: string | string[];
787
791
  logType?: (typeof LogType.Action | typeof LogType.Unified) | (typeof LogType.Action | typeof LogType.Unified)[];
788
792
  success?: boolean;
789
793
  startTime?: Date;
@@ -998,7 +1002,7 @@ type ActionLog = ILog & {
998
1002
  originOwnerName?: string;
999
1003
  httpMethod?: string;
1000
1004
  url?: string;
1001
- sourceType?: SourceType | string;
1005
+ sourceType?: SourceType;
1002
1006
  sourceId?: string;
1003
1007
  sourceValue?: string;
1004
1008
  authType?: AuthType;
@@ -1051,7 +1055,7 @@ type UnifiedLog = ILog & {
1051
1055
  service?: string;
1052
1056
  action?: string;
1053
1057
  sourceId?: string;
1054
- sourceType?: SourceType | string;
1058
+ sourceType?: SourceType;
1055
1059
  sourceValue?: string;
1056
1060
  authType?: AuthType;
1057
1061
  authId?: string;
@@ -1140,6 +1144,7 @@ declare class OlapClient implements IOlapClient {
1140
1144
  getLogs(organizationId: string, projectSecureId: string, query: Query): Promise<QueryResult>;
1141
1145
  getActionLogs(organizationId: string, projectSecureId: string, query: ActionsQuery): Promise<ActionsQueryResult>;
1142
1146
  getActionLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionLog | undefined>;
1147
+ getLog(organizationId: string, projectSecureId: string, logId: string): Promise<ActionLog | UnifiedLog | StepLog | ProviderLog | undefined>;
1143
1148
  getStepLogs(organizationId: string, projectSecureId: string, query: StepsQuery): Promise<StepsQueryResult>;
1144
1149
  getStepLog(organizationId: string, projectSecureId: string, actionRunId: string, stepIndex: number): Promise<StepLog | undefined>;
1145
1150
  getUnifiedLogs(organizationId: string, projectSecureId: string, query: UnifiedQuery): Promise<UnifiedQueryResult>;