@stackone/olap 1.46.0 → 1.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -5,77 +5,6 @@ import { Producer } from "@platformatic/kafka";
5
5
 
6
6
  //#region \0rolldown/runtime.js
7
7
  //#endregion
8
- //#region ../../node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts
9
- declare global {
10
- /**
11
- * interface merging stub.
12
- */
13
- interface RequestInit {}
14
- }
15
- //#endregion
16
- //#region ../../node_modules/@aws-sdk/types/dist-types/serde.d.ts
17
- /**
18
- * @public
19
- *
20
- * Declare DOM interfaces in case dom.d.ts is not added to the tsconfig lib, causing
21
- * interfaces to not be defined. For developers with dom.d.ts added, the interfaces will
22
- * be merged correctly.
23
- *
24
- * This is also required for any clients with streaming interfaces where the corresponding
25
- * types are also referred. The type is only declared here once since this `@aws-sdk/types`
26
- * is depended by all `@aws-sdk` packages.
27
- */
28
- declare global {
29
- /**
30
- * @public
31
- */
32
- export interface ReadableStream {}
33
- /**
34
- * @public
35
- */
36
- export interface Blob {}
37
- }
38
- //#endregion
39
- //#region ../core/src/source/types.d.ts
40
- declare const SourceType: {
41
- readonly RequestTester: "REQUEST_TESTER";
42
- readonly ActionTester: "ACTION_TESTER";
43
- readonly Discode: "DISCODE";
44
- readonly Dashboard: "DASHBOARD";
45
- readonly Playground: "PLAYGROUND";
46
- readonly SDK: "SDK";
47
- readonly API: "API";
48
- readonly Scheduler: "SCHEDULER";
49
- readonly Webhook: "WEBHOOK";
50
- readonly Agent: "AGENT";
51
- readonly Application: "APPLICATION";
52
- readonly DataSync: "DATA_SYNC";
53
- readonly Internal: "INTERNAL";
54
- };
55
- type SourceType = (typeof SourceType)[keyof typeof SourceType];
56
- declare const TransportType: {
57
- readonly HTTP: "HTTP";
58
- readonly MCP: "MCP";
59
- readonly ActionRPC: "ACTION_RPC";
60
- readonly WebSocket: "WEBSOCKET";
61
- };
62
- type TransportType = (typeof TransportType)[keyof typeof TransportType];
63
- declare const StreamType: {
64
- readonly HTTP: "HTTP";
65
- readonly WebSocket: "WEBSOCKET";
66
- readonly SSE: "SSE";
67
- };
68
- type StreamType = (typeof StreamType)[keyof typeof StreamType] | null;
69
- declare const AuthType: {
70
- readonly APIKey: "API_KEY";
71
- readonly SessionToken: "SESSION_TOKEN";
72
- readonly UserSession: "USER_SESSION";
73
- readonly Cookie: "COOKIE";
74
- readonly Webhook: "WEBHOOK";
75
- readonly Signature: "SIGNATURE";
76
- };
77
- type AuthType = (typeof AuthType)[keyof typeof AuthType];
78
- //#endregion
79
8
  //#region src/olap/olapOptions.d.ts
80
9
  type OlapOptions = {
81
10
  logs?: LogsOptions;
@@ -151,6 +80,57 @@ type DefenderLog = {
151
80
  };
152
81
  //#endregion
153
82
  //#region src/types.d.ts
83
+ declare const SourceType: {
84
+ readonly RequestTester: "REQUEST_TESTER";
85
+ readonly ActionTester: "ACTION_TESTER";
86
+ readonly Discode: "DISCODE";
87
+ readonly Dashboard: "DASHBOARD";
88
+ readonly Playground: "PLAYGROUND";
89
+ readonly SDK: "SDK";
90
+ readonly API: "API";
91
+ readonly Scheduler: "SCHEDULER";
92
+ readonly Webhook: "WEBHOOK";
93
+ readonly Agent: "AGENT";
94
+ readonly Application: "APPLICATION";
95
+ readonly DataSync: "DATA_SYNC";
96
+ readonly Internal: "INTERNAL";
97
+ };
98
+ type SourceType = (typeof SourceType)[keyof typeof SourceType];
99
+ declare const TransportType: {
100
+ readonly HTTP: "HTTP";
101
+ readonly MCP: "MCP";
102
+ readonly ActionRPC: "ACTION_RPC";
103
+ readonly WebSocket: "WEBSOCKET";
104
+ };
105
+ type TransportType = (typeof TransportType)[keyof typeof TransportType];
106
+ declare const StreamType: {
107
+ readonly HTTP: "HTTP";
108
+ readonly WebSocket: "WEBSOCKET";
109
+ readonly SSE: "SSE";
110
+ };
111
+ type StreamType = (typeof StreamType)[keyof typeof StreamType] | null;
112
+ declare const AuthType: {
113
+ readonly APIKey: "API_KEY";
114
+ readonly SessionToken: "SESSION_TOKEN";
115
+ readonly UserSession: "USER_SESSION";
116
+ readonly Cookie: "COOKIE";
117
+ readonly Webhook: "WEBHOOK";
118
+ readonly Signature: "SIGNATURE";
119
+ };
120
+ type AuthType = (typeof AuthType)[keyof typeof AuthType];
121
+ type Source = {
122
+ sourceType?: SourceType;
123
+ sourceId?: string;
124
+ userAgent?: string;
125
+ ipAddress?: string;
126
+ sessionId?: string;
127
+ agentId?: string;
128
+ transportType?: TransportType;
129
+ streamType?: StreamType;
130
+ authType?: AuthType;
131
+ authId?: string;
132
+ sourceValue?: string;
133
+ };
154
134
  interface IOlapClient {
155
135
  recordAction(actionInput: ActionInput, actionResult: ActionResult, options?: OlapOptions): Promise<void>;
156
136
  recordActions(actions: Array<{
@@ -853,4 +833,4 @@ declare class OlapClientManager {
853
833
  static resetInstance(): void;
854
834
  }
855
835
  //#endregion
856
- export { type ActionAdvancedLog, type ActionInput, type ActionLog, type ActionResult, type ActionsQuery, type ActionsQueryResult, type AdvancedOptions, type AggregateQuery, type AggregateResult, type DatasetsOptions, type DefenderContext, type DefenderLog, type DefenderOptions, Dimension, type Dimension as DimensionValues, type DimensionsQuery, type DimensionsResult, type ILog, type IOlapClient, type IntervalType, LogType, type LogType as LogTypeValues, type LogsOptions, OlapClient, OlapClientManager, type OlapOptions, OrderBy, type OrderBy as OrderByValues, OrderDirection, type OrderDirection as OrderDirectionValues, type ProviderAdvancedLog, type ProviderInput, type ProviderLog, type ProviderQuery, type ProviderQueryResult, type ProviderResult, type Query, type QueryResult, type SourceQuery, type SourceResult, type StepAdvancedLog, type StepInput, type StepLog, type StepResult, type StepsQuery, type StepsQueryResult, type TinybirdConfig, type TinybirdQueryOptions, type TinybirdResponse, type UnifiedAdvancedLog, type UnifiedInput, type UnifiedLog, type UnifiedQuery, type UnifiedQueryResult, type UnifiedResult };
836
+ export { type ActionAdvancedLog, type ActionInput, type ActionLog, type ActionResult, type ActionsQuery, type ActionsQueryResult, type AdvancedOptions, type AggregateQuery, type AggregateResult, AuthType, type AuthType as AuthTypeValue, type DatasetsOptions, type DefenderContext, type DefenderLog, type DefenderOptions, Dimension, type Dimension as DimensionValues, type DimensionsQuery, type DimensionsResult, type ILog, type IOlapClient, type IntervalType, LogType, type LogType as LogTypeValues, type LogsOptions, OlapClient, OlapClientManager, type OlapOptions, OrderBy, type OrderBy as OrderByValues, OrderDirection, type OrderDirection as OrderDirectionValues, type ProviderAdvancedLog, type ProviderInput, type ProviderLog, type ProviderQuery, type ProviderQueryResult, type ProviderResult, type Query, type QueryResult, type Source, type SourceQuery, type SourceResult, SourceType, type SourceType as SourceTypeValue, type StepAdvancedLog, type StepInput, type StepLog, type StepResult, type StepsQuery, type StepsQueryResult, StreamType, type StreamType as StreamTypeValue, type TinybirdConfig, type TinybirdQueryOptions, type TinybirdResponse, TransportType, type TransportType as TransportTypeValue, type UnifiedAdvancedLog, type UnifiedInput, type UnifiedLog, type UnifiedQuery, type UnifiedQueryResult, type UnifiedResult };
package/dist/index.d.mts CHANGED
@@ -1,81 +1,9 @@
1
- import { n as __name } from "./chunk-51fMIa0T.mjs";
2
- import { z } from "@stackone/utils";
1
+ import { t as __name } from "./chunk-BhWHdk3m.mjs";
3
2
  import { S3Client } from "@aws-sdk/client-s3";
4
3
  import { HttpClient } from "@stackone/transport";
5
4
  import { ILogger } from "@stackone/logger";
6
5
  import { Producer } from "@platformatic/kafka";
7
6
 
8
- //#region ../../node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts
9
- declare global {
10
- /**
11
- * interface merging stub.
12
- */
13
- interface RequestInit {}
14
- }
15
- //#endregion
16
- //#region ../../node_modules/@aws-sdk/types/dist-types/serde.d.ts
17
- /**
18
- * @public
19
- *
20
- * Declare DOM interfaces in case dom.d.ts is not added to the tsconfig lib, causing
21
- * interfaces to not be defined. For developers with dom.d.ts added, the interfaces will
22
- * be merged correctly.
23
- *
24
- * This is also required for any clients with streaming interfaces where the corresponding
25
- * types are also referred. The type is only declared here once since this `@aws-sdk/types`
26
- * is depended by all `@aws-sdk` packages.
27
- */
28
- declare global {
29
- /**
30
- * @public
31
- */
32
- export interface ReadableStream {}
33
- /**
34
- * @public
35
- */
36
- export interface Blob {}
37
- }
38
- //#endregion
39
- //#region ../core/src/source/types.d.ts
40
- declare const SourceType: {
41
- readonly RequestTester: "REQUEST_TESTER";
42
- readonly ActionTester: "ACTION_TESTER";
43
- readonly Discode: "DISCODE";
44
- readonly Dashboard: "DASHBOARD";
45
- readonly Playground: "PLAYGROUND";
46
- readonly SDK: "SDK";
47
- readonly API: "API";
48
- readonly Scheduler: "SCHEDULER";
49
- readonly Webhook: "WEBHOOK";
50
- readonly Agent: "AGENT";
51
- readonly Application: "APPLICATION";
52
- readonly DataSync: "DATA_SYNC";
53
- readonly Internal: "INTERNAL";
54
- };
55
- type SourceType = (typeof SourceType)[keyof typeof SourceType];
56
- declare const TransportType: {
57
- readonly HTTP: "HTTP";
58
- readonly MCP: "MCP";
59
- readonly ActionRPC: "ACTION_RPC";
60
- readonly WebSocket: "WEBSOCKET";
61
- };
62
- type TransportType = (typeof TransportType)[keyof typeof TransportType];
63
- declare const StreamType: {
64
- readonly HTTP: "HTTP";
65
- readonly WebSocket: "WEBSOCKET";
66
- readonly SSE: "SSE";
67
- };
68
- type StreamType = (typeof StreamType)[keyof typeof StreamType] | null;
69
- declare const AuthType: {
70
- readonly APIKey: "API_KEY";
71
- readonly SessionToken: "SESSION_TOKEN";
72
- readonly UserSession: "USER_SESSION";
73
- readonly Cookie: "COOKIE";
74
- readonly Webhook: "WEBHOOK";
75
- readonly Signature: "SIGNATURE";
76
- };
77
- type AuthType = (typeof AuthType)[keyof typeof AuthType];
78
- //#endregion
79
7
  //#region src/olap/olapOptions.d.ts
80
8
  type OlapOptions = {
81
9
  logs?: LogsOptions;
@@ -151,6 +79,57 @@ type DefenderLog = {
151
79
  };
152
80
  //#endregion
153
81
  //#region src/types.d.ts
82
+ declare const SourceType: {
83
+ readonly RequestTester: "REQUEST_TESTER";
84
+ readonly ActionTester: "ACTION_TESTER";
85
+ readonly Discode: "DISCODE";
86
+ readonly Dashboard: "DASHBOARD";
87
+ readonly Playground: "PLAYGROUND";
88
+ readonly SDK: "SDK";
89
+ readonly API: "API";
90
+ readonly Scheduler: "SCHEDULER";
91
+ readonly Webhook: "WEBHOOK";
92
+ readonly Agent: "AGENT";
93
+ readonly Application: "APPLICATION";
94
+ readonly DataSync: "DATA_SYNC";
95
+ readonly Internal: "INTERNAL";
96
+ };
97
+ type SourceType = (typeof SourceType)[keyof typeof SourceType];
98
+ declare const TransportType: {
99
+ readonly HTTP: "HTTP";
100
+ readonly MCP: "MCP";
101
+ readonly ActionRPC: "ACTION_RPC";
102
+ readonly WebSocket: "WEBSOCKET";
103
+ };
104
+ type TransportType = (typeof TransportType)[keyof typeof TransportType];
105
+ declare const StreamType: {
106
+ readonly HTTP: "HTTP";
107
+ readonly WebSocket: "WEBSOCKET";
108
+ readonly SSE: "SSE";
109
+ };
110
+ type StreamType = (typeof StreamType)[keyof typeof StreamType] | null;
111
+ declare const AuthType: {
112
+ readonly APIKey: "API_KEY";
113
+ readonly SessionToken: "SESSION_TOKEN";
114
+ readonly UserSession: "USER_SESSION";
115
+ readonly Cookie: "COOKIE";
116
+ readonly Webhook: "WEBHOOK";
117
+ readonly Signature: "SIGNATURE";
118
+ };
119
+ type AuthType = (typeof AuthType)[keyof typeof AuthType];
120
+ type Source = {
121
+ sourceType?: SourceType;
122
+ sourceId?: string;
123
+ userAgent?: string;
124
+ ipAddress?: string;
125
+ sessionId?: string;
126
+ agentId?: string;
127
+ transportType?: TransportType;
128
+ streamType?: StreamType;
129
+ authType?: AuthType;
130
+ authId?: string;
131
+ sourceValue?: string;
132
+ };
154
133
  interface IOlapClient {
155
134
  recordAction(actionInput: ActionInput, actionResult: ActionResult, options?: OlapOptions): Promise<void>;
156
135
  recordActions(actions: Array<{
@@ -853,4 +832,4 @@ declare class OlapClientManager {
853
832
  static resetInstance(): void;
854
833
  }
855
834
  //#endregion
856
- export { type ActionAdvancedLog, type ActionInput, type ActionLog, type ActionResult, type ActionsQuery, type ActionsQueryResult, type AdvancedOptions, type AggregateQuery, type AggregateResult, type DatasetsOptions, type DefenderContext, type DefenderLog, type DefenderOptions, Dimension, type Dimension as DimensionValues, type DimensionsQuery, type DimensionsResult, type ILog, type IOlapClient, type IntervalType, LogType, type LogType as LogTypeValues, type LogsOptions, OlapClient, OlapClientManager, type OlapOptions, OrderBy, type OrderBy as OrderByValues, OrderDirection, type OrderDirection as OrderDirectionValues, type ProviderAdvancedLog, type ProviderInput, type ProviderLog, type ProviderQuery, type ProviderQueryResult, type ProviderResult, type Query, type QueryResult, type SourceQuery, type SourceResult, type StepAdvancedLog, type StepInput, type StepLog, type StepResult, type StepsQuery, type StepsQueryResult, type TinybirdConfig, type TinybirdQueryOptions, type TinybirdResponse, type UnifiedAdvancedLog, type UnifiedInput, type UnifiedLog, type UnifiedQuery, type UnifiedQueryResult, type UnifiedResult };
835
+ export { type ActionAdvancedLog, type ActionInput, type ActionLog, type ActionResult, type ActionsQuery, type ActionsQueryResult, type AdvancedOptions, type AggregateQuery, type AggregateResult, AuthType, type AuthType as AuthTypeValue, type DatasetsOptions, type DefenderContext, type DefenderLog, type DefenderOptions, Dimension, type Dimension as DimensionValues, type DimensionsQuery, type DimensionsResult, type ILog, type IOlapClient, type IntervalType, LogType, type LogType as LogTypeValues, type LogsOptions, OlapClient, OlapClientManager, type OlapOptions, OrderBy, type OrderBy as OrderByValues, OrderDirection, type OrderDirection as OrderDirectionValues, type ProviderAdvancedLog, type ProviderInput, type ProviderLog, type ProviderQuery, type ProviderQueryResult, type ProviderResult, type Query, type QueryResult, type Source, type SourceQuery, type SourceResult, SourceType, type SourceType as SourceTypeValue, type StepAdvancedLog, type StepInput, type StepLog, type StepResult, type StepsQuery, type StepsQueryResult, StreamType, type StreamType as StreamTypeValue, type TinybirdConfig, type TinybirdQueryOptions, type TinybirdResponse, TransportType, type TransportType as TransportTypeValue, type UnifiedAdvancedLog, type UnifiedInput, type UnifiedLog, type UnifiedQuery, type UnifiedQueryResult, type UnifiedResult };