@stackone/olap 1.46.0 → 1.48.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<{
@@ -533,22 +513,29 @@ declare const OrderDirection: {
533
513
  readonly Desc: "desc";
534
514
  };
535
515
  type OrderDirection = (typeof OrderDirection)[keyof typeof OrderDirection];
536
- type IntervalType = 'minute' | 'hour' | 'day' | 'week' | 'month';
516
+ declare const IntervalType: {
517
+ readonly Minute: "minute";
518
+ readonly Hour: "hour";
519
+ readonly Day: "day";
520
+ readonly Week: "week";
521
+ readonly Month: "month";
522
+ };
523
+ type IntervalType = (typeof IntervalType)[keyof typeof IntervalType];
537
524
  declare const Dimension: {
538
- readonly ConnectorKey: "connector_key";
525
+ readonly ConnectorKey: "connectorKey";
539
526
  readonly Success: "success";
540
- readonly ActionType: "action_type";
527
+ readonly ActionType: "actionType";
541
528
  readonly Mode: "mode";
542
529
  readonly Service: "service";
543
530
  readonly Resource: "resource";
544
- readonly ActionId: "action_id";
545
- readonly HttpMethod: "http_method";
546
- readonly AccountSecureId: "account_secure_id";
547
- readonly SourceType: "source_type";
548
- readonly StatusCode: "status_code";
549
- readonly OriginOwnerId: "origin_owner_id";
550
- readonly SourceId: "source_id";
551
- readonly IsBackground: "is_background";
531
+ readonly ActionId: "actionId";
532
+ readonly HttpMethod: "httpMethod";
533
+ readonly AccountSecureId: "accountSecureId";
534
+ readonly SourceType: "sourceType";
535
+ readonly StatusCode: "statusCode";
536
+ readonly OriginOwnerId: "originOwnerId";
537
+ readonly SourceId: "sourceId";
538
+ readonly IsBackground: "isBackground";
552
539
  };
553
540
  type Dimension = (typeof Dimension)[keyof typeof Dimension];
554
541
  type AggregateQuery = Partial<Query> & {
@@ -558,7 +545,7 @@ type AggregateQuery = Partial<Query> & {
558
545
  };
559
546
  type AggregateResult = {
560
547
  data: Array<{
561
- start_time?: string;
548
+ startTime?: string;
562
549
  count: number;
563
550
  [dimension: string]: unknown;
564
551
  }>;
@@ -853,4 +840,4 @@ declare class OlapClientManager {
853
840
  static resetInstance(): void;
854
841
  }
855
842
  //#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 };
843
+ 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, IntervalType, type IntervalType as IntervalTypeValues, 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<{
@@ -533,22 +512,29 @@ declare const OrderDirection: {
533
512
  readonly Desc: "desc";
534
513
  };
535
514
  type OrderDirection = (typeof OrderDirection)[keyof typeof OrderDirection];
536
- type IntervalType = 'minute' | 'hour' | 'day' | 'week' | 'month';
515
+ declare const IntervalType: {
516
+ readonly Minute: "minute";
517
+ readonly Hour: "hour";
518
+ readonly Day: "day";
519
+ readonly Week: "week";
520
+ readonly Month: "month";
521
+ };
522
+ type IntervalType = (typeof IntervalType)[keyof typeof IntervalType];
537
523
  declare const Dimension: {
538
- readonly ConnectorKey: "connector_key";
524
+ readonly ConnectorKey: "connectorKey";
539
525
  readonly Success: "success";
540
- readonly ActionType: "action_type";
526
+ readonly ActionType: "actionType";
541
527
  readonly Mode: "mode";
542
528
  readonly Service: "service";
543
529
  readonly Resource: "resource";
544
- readonly ActionId: "action_id";
545
- readonly HttpMethod: "http_method";
546
- readonly AccountSecureId: "account_secure_id";
547
- readonly SourceType: "source_type";
548
- readonly StatusCode: "status_code";
549
- readonly OriginOwnerId: "origin_owner_id";
550
- readonly SourceId: "source_id";
551
- readonly IsBackground: "is_background";
530
+ readonly ActionId: "actionId";
531
+ readonly HttpMethod: "httpMethod";
532
+ readonly AccountSecureId: "accountSecureId";
533
+ readonly SourceType: "sourceType";
534
+ readonly StatusCode: "statusCode";
535
+ readonly OriginOwnerId: "originOwnerId";
536
+ readonly SourceId: "sourceId";
537
+ readonly IsBackground: "isBackground";
552
538
  };
553
539
  type Dimension = (typeof Dimension)[keyof typeof Dimension];
554
540
  type AggregateQuery = Partial<Query> & {
@@ -558,7 +544,7 @@ type AggregateQuery = Partial<Query> & {
558
544
  };
559
545
  type AggregateResult = {
560
546
  data: Array<{
561
- start_time?: string;
547
+ startTime?: string;
562
548
  count: number;
563
549
  [dimension: string]: unknown;
564
550
  }>;
@@ -853,4 +839,4 @@ declare class OlapClientManager {
853
839
  static resetInstance(): void;
854
840
  }
855
841
  //#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 };
842
+ 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, IntervalType, type IntervalType as IntervalTypeValues, 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 };