@narrative.io/data-collaboration-sdk-ts 2.58.0 → 2.58.1
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/build/index.d.ts +68 -39
- package/build/index.js +65 -22
- package/build/jobs/types.d.ts +17 -17
- package/build/nql/types.d.ts +1 -1
- package/package.json +5 -5
package/build/index.d.ts
CHANGED
|
@@ -1,53 +1,82 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export * from "./access-rules/";
|
|
2
|
+
export * from "./access-tokens";
|
|
3
|
+
export { resources } from "./access-tokens/types";
|
|
4
|
+
export type { App } from "./apps";
|
|
5
|
+
export * from "./attributes";
|
|
6
|
+
export * from "./authentication";
|
|
7
|
+
export * from "./base-api";
|
|
8
|
+
export * from "./company-info";
|
|
9
|
+
export * from "./connections";
|
|
10
|
+
export * from "./contracts";
|
|
11
|
+
export * from "./data-planes";
|
|
12
|
+
export * from "./data-planes/types";
|
|
13
|
+
export * from "./data-streams";
|
|
14
|
+
export * from "./datasets";
|
|
15
|
+
export * from "./datasets/types";
|
|
16
|
+
export * from "./encryption-materials";
|
|
17
|
+
export * from "./encryption-materials/types";
|
|
18
|
+
export * from "./forecast";
|
|
19
|
+
export * from "./health";
|
|
20
|
+
export * from "./health/types";
|
|
21
|
+
export * from "./installations";
|
|
22
|
+
export * from "./jobs";
|
|
23
|
+
export { default as JsonBigNumber } from "./json-big-number";
|
|
24
|
+
export * from "./mappings";
|
|
25
|
+
export * from "./mappings/types";
|
|
26
|
+
export * from "./model-training";
|
|
27
|
+
export * from "./models";
|
|
28
|
+
export * from "./nql";
|
|
29
|
+
export { compileStatement, parseStatement } from "./nql";
|
|
30
|
+
export { convertNqlObjectToForecastBody } from "./nql/DataRulesConverter";
|
|
31
|
+
export { buildNql, getNqlObject } from "./nql/NQLParser";
|
|
32
|
+
export type { AstNodeMetadata, AstNodeType, ForecastBody } from "./nql/types";
|
|
33
|
+
export * from "./ping";
|
|
34
|
+
export * from "./ping/types";
|
|
35
|
+
export * from "./products";
|
|
36
|
+
export * from "./queries";
|
|
37
|
+
export * from "./resources";
|
|
38
|
+
export * from "./rosetta/types";
|
|
39
|
+
export * from "./rosetta-stone";
|
|
40
|
+
export * from "./rosetta-stone/types";
|
|
41
|
+
export * from "./subscriptions";
|
|
42
|
+
export * from "./types";
|
|
43
|
+
export * from "./uploads";
|
|
44
|
+
export * from "./uploads/types";
|
|
45
|
+
export { applyMixins } from "./utils";
|
|
46
|
+
export * from "./views";
|
|
47
|
+
export * from "./whoami";
|
|
48
|
+
export * from "./whoami/types";
|
|
49
|
+
import { AccessRulesApi } from "./access-rules/";
|
|
50
|
+
import { AccessTokensApi } from "./access-tokens";
|
|
51
|
+
import { AppsApi } from "./apps";
|
|
6
52
|
import { AttributeApi, AttributeApiV2 } from "./attributes";
|
|
7
|
-
import
|
|
8
|
-
import { type ApiToken, AuthenticationApi, type LoggedInUser, type LoginRequest, type LoginResponse, type RegisterRequest, type RegisterResponse, type RegistrationStatus, type RegistrationStatusRequest, type RegistrationStatusResponse, type StytchToken, type UserRole } from "./authentication";
|
|
53
|
+
import { AuthenticationApi } from "./authentication";
|
|
9
54
|
import { BaseApi } from "./base-api";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
55
|
+
import { CompanyInfoApi } from "./company-info";
|
|
56
|
+
import { ConnectionsApi } from "./connections";
|
|
57
|
+
import { ContractsApi } from "./contracts";
|
|
13
58
|
import { DataPlaneApi } from "./data-planes";
|
|
14
|
-
import
|
|
15
|
-
import { type AttributeSet, type ColumnSet, type ColumnWithFilterAndExport, type DataRules, type DataStream, DataStreamsApi } from "./data-streams";
|
|
59
|
+
import { DataStreamsApi } from "./data-streams";
|
|
16
60
|
import { DatasetApi } from "./datasets";
|
|
17
|
-
import type { AdvancedStatistics, AdvancedStatisticsMetadata, BasicStatistics, ColumnStatistics, ColumnSummary, Columns, Configuration, CreateDatasetRefreshScheduleRequest, CreateDatasetRequest, Dataset, DatasetStatus, DatasetTableSummary, DatasetTableSummaryAPIResponse, DatasetWriteMode, FilePerSnapshotResponse, Histogram, IngestDatasetFileRequest, RetentionPolicy, Schema, SchemaArrayItems, SchemaArrayItemsArray, SchemaArrayItemsObject, SchemaArrayItemsPrimitive, SchemaArrayProperty, SchemaFileConfig, SchemaFileConfigType, SchemaObjectProperty, SchemaPrimitiveProperty, SchemaProperties, SchemaPropertiesType, SchemaProperty, SnapshotRange, UpdateDatasetRefreshScheduleRequest, UpdateDatasetRequest, Value } from "./datasets/types";
|
|
18
61
|
import { EncryptionMaterialApi } from "./encryption-materials";
|
|
19
|
-
import
|
|
20
|
-
import { type CostForecastRequest, type CostForecastResponse, type CostForecastResult, ForecastApi, type ForecastRequest, type ForecastResponse, type ForecastResult, type ForecastResultFailure, type JobState } from "./forecast";
|
|
62
|
+
import { ForecastApi } from "./forecast";
|
|
21
63
|
import { HealthCheckApi } from "./health";
|
|
22
|
-
import
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import
|
|
26
|
-
import {
|
|
27
|
-
import
|
|
28
|
-
import { ModelTrainingApi, type ModelTrainingConfig, type OutputModel, type TrainModelRequest, type TrainModelResponse } from "./model-training";
|
|
29
|
-
import { type CreateModelRequest, type Model, type ModelCollaborators, ModelsApi, type UpdateModelRequest } from "./models";
|
|
30
|
-
import { type CompiledNql, type CreateMaterializedView, compileStatement, type Deduplication, type Explain, type Expression, type Nql, NqlApi, type NqlAst, type NqlBooleanExpression, type NqlCompileResult, type NqlExpression, type NqlField, type NqlFilterBinaryExpression, type NqlFilterExpression, type NqlFilterUnaryExpression, type NqlQueryInput, type NqlResult, type NqlWhere, parseStatement, type Raw, type Select, type Statement, type Table } from "./nql";
|
|
31
|
-
import { convertNqlObjectToForecastBody } from "./nql/DataRulesConverter";
|
|
32
|
-
import { buildNql, getNqlObject } from "./nql/NQLParser";
|
|
33
|
-
import type { AstNodeMetadata, AstNodeType, ForecastBody } from "./nql/types";
|
|
64
|
+
import { InstallationsApi } from "./installations";
|
|
65
|
+
import { JobsApi } from "./jobs";
|
|
66
|
+
import { MappingsApi } from "./mappings";
|
|
67
|
+
import { ModelTrainingApi } from "./model-training";
|
|
68
|
+
import { ModelsApi } from "./models";
|
|
69
|
+
import { NqlApi } from "./nql";
|
|
34
70
|
import { PingApi } from "./ping";
|
|
35
|
-
import
|
|
36
|
-
import {
|
|
37
|
-
import { type CreateNqlQueryRequest, type NqlOwnedQueryResponse, type NqlQueryAst, type NqlQueryCollaborators, type NqlQueryMetadata, type NqlQueryOwner, type NqlQueryResponse, type NqlSharedQueryResponse, QueriesApi, type UpdateNqlQueryRequest } from "./queries";
|
|
38
|
-
import { type BucketCreationRequest, type Resource, ResourceApi, type UpdateAccessTypeRequest } from "./resources";
|
|
39
|
-
import { type ConversationAssistantMessage, type ConversationAssistantMessageWithFunctionCall, type ConversationAssistantMessageWithoutFunctionCall, type ConversationFunctionMessage, type ConversationIOMessage, type ConversationMessage, type ConversationMessageFunctionCall, type ConversationMessageName, type ConversationMessageRole, type ConversationMessages, type ConversationSystemMessage, type ConversationUserMessage, isConversationAssistantMessage, isConversationAssistantMessageWithFunctionCall, isConversationAssistantMessageWithoutFunctionCall, isConversationFunctionMessage, isConversationInputMessage, isConversationMessage, isConversationMessageFunctionCall, isConversationMessageName, isConversationMessageRole, isConversationMessages, isConversationSystemMessage, isConversationUserMessage, isRosettaRequestMessage, isType, type RosettaRequestMessage, type RosettaResponseMessage } from "./rosetta/types";
|
|
71
|
+
import { QueriesApi } from "./queries";
|
|
72
|
+
import { ResourceApi } from "./resources";
|
|
40
73
|
import { RosettaStoneApi } from "./rosetta-stone";
|
|
41
|
-
import
|
|
42
|
-
import { type DataStreamSubscriptionDetails, type MarketplaceSubscriptionDetails, type Subscription, type SubscriptionBudget, type SubscriptionDetails, type SubscriptionOutput, type SubscriptionStatus, SubscriptionsApi, type SubscriptionType } from "./subscriptions";
|
|
43
|
-
import type { ApiRecords, ApiRecordsV2, CollaboratorList, CollaboratorsConfig, Config, Environment, GeneralCollaborator, GeneralCollaboratorType, MonetaryAmount, NonAuthenticatedCollaborator, QueryAccess, QueryCollaborator, SpecificCollaboratorType, ViewAccess, ViewCollaborator } from "./types";
|
|
74
|
+
import { SubscriptionsApi } from "./subscriptions";
|
|
44
75
|
import { UploadsApi } from "./uploads";
|
|
45
|
-
import
|
|
46
|
-
import { type CreateViewRequest, type OwnedView, type SharedView, type UpdateViewRequest, type View, type ViewOwner, ViewsApi } from "./views";
|
|
76
|
+
import { ViewsApi } from "./views";
|
|
47
77
|
import { WhoAmIApi } from "./whoami";
|
|
48
|
-
import type { User } from "./whoami/types";
|
|
49
78
|
declare class NarrativeApi extends BaseApi {
|
|
50
79
|
}
|
|
51
80
|
interface NarrativeApi extends BaseApi, HealthCheckApi, AccessTokensApi, DataPlaneApi, DatasetApi, RosettaStoneApi, AttributeApi, AttributeApiV2, PingApi, CompanyInfoApi, InstallationsApi, ConnectionsApi, UploadsApi, ResourceApi, NqlApi, DataStreamsApi, ForecastApi, ContractsApi, AuthenticationApi, MappingsApi, AccessRulesApi, AppsApi, SubscriptionsApi, JobsApi, QueriesApi, ViewsApi, ModelsApi, ModelTrainingApi, EncryptionMaterialApi, WhoAmIApi {
|
|
52
81
|
}
|
|
53
|
-
export { NarrativeApi
|
|
82
|
+
export { NarrativeApi };
|
package/build/index.js
CHANGED
|
@@ -1,38 +1,81 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
// This approach maintains EXACT same exports as before
|
|
2
|
+
export * from "./access-rules/";
|
|
3
|
+
export * from "./access-tokens";
|
|
4
|
+
export { resources } from "./access-tokens/types";
|
|
5
|
+
export * from "./attributes";
|
|
6
|
+
export * from "./authentication";
|
|
7
|
+
export * from "./base-api";
|
|
8
|
+
export * from "./company-info";
|
|
9
|
+
export * from "./connections";
|
|
10
|
+
export * from "./contracts";
|
|
11
|
+
export * from "./data-planes";
|
|
12
|
+
export * from "./data-planes/types";
|
|
13
|
+
export * from "./data-streams";
|
|
14
|
+
export * from "./datasets";
|
|
15
|
+
export * from "./datasets/types";
|
|
16
|
+
export * from "./encryption-materials";
|
|
17
|
+
export * from "./encryption-materials/types";
|
|
18
|
+
export * from "./forecast";
|
|
19
|
+
export * from "./health";
|
|
20
|
+
export * from "./health/types";
|
|
21
|
+
export * from "./installations";
|
|
22
|
+
export * from "./jobs";
|
|
23
|
+
// Special imports that might be from default exports or need special handling
|
|
24
|
+
export { default as JsonBigNumber } from "./json-big-number";
|
|
25
|
+
export * from "./mappings";
|
|
26
|
+
export * from "./mappings/types";
|
|
27
|
+
export * from "./model-training";
|
|
28
|
+
export * from "./models";
|
|
29
|
+
export * from "./nql";
|
|
30
|
+
export { compileStatement, parseStatement } from "./nql";
|
|
31
|
+
export { convertNqlObjectToForecastBody } from "./nql/DataRulesConverter";
|
|
32
|
+
export { buildNql, getNqlObject } from "./nql/NQLParser";
|
|
33
|
+
export * from "./ping";
|
|
34
|
+
export * from "./ping/types";
|
|
35
|
+
export * from "./products";
|
|
36
|
+
export * from "./queries";
|
|
37
|
+
export * from "./resources";
|
|
38
|
+
export * from "./rosetta/types";
|
|
39
|
+
export * from "./rosetta-stone";
|
|
40
|
+
export * from "./rosetta-stone/types";
|
|
41
|
+
export * from "./subscriptions";
|
|
42
|
+
export * from "./types";
|
|
43
|
+
export * from "./uploads";
|
|
44
|
+
export * from "./uploads/types";
|
|
45
|
+
export { applyMixins } from "./utils";
|
|
46
|
+
export * from "./views";
|
|
47
|
+
export * from "./whoami";
|
|
48
|
+
export * from "./whoami/types";
|
|
49
|
+
import { AccessRulesApi } from "./access-rules/";
|
|
50
|
+
import { AccessTokensApi } from "./access-tokens";
|
|
4
51
|
import { AppsApi } from "./apps";
|
|
5
52
|
import { AttributeApi, AttributeApiV2 } from "./attributes";
|
|
6
|
-
import { AuthenticationApi
|
|
53
|
+
import { AuthenticationApi } from "./authentication";
|
|
54
|
+
// Handle the NarrativeApi class with mixins
|
|
7
55
|
import { BaseApi } from "./base-api";
|
|
8
56
|
import { CompanyInfoApi } from "./company-info";
|
|
9
57
|
import { ConnectionsApi } from "./connections";
|
|
10
|
-
import { ContractsApi
|
|
58
|
+
import { ContractsApi } from "./contracts";
|
|
11
59
|
import { DataPlaneApi } from "./data-planes";
|
|
12
|
-
import { DataStreamsApi
|
|
60
|
+
import { DataStreamsApi } from "./data-streams";
|
|
13
61
|
import { DatasetApi } from "./datasets";
|
|
14
62
|
import { EncryptionMaterialApi } from "./encryption-materials";
|
|
15
|
-
import { ForecastApi
|
|
63
|
+
import { ForecastApi } from "./forecast";
|
|
16
64
|
import { HealthCheckApi } from "./health";
|
|
17
|
-
import { InstallationsApi
|
|
18
|
-
import { JobsApi
|
|
19
|
-
import JsonBigNumber from "./json-big-number";
|
|
65
|
+
import { InstallationsApi } from "./installations";
|
|
66
|
+
import { JobsApi } from "./jobs";
|
|
20
67
|
import { MappingsApi } from "./mappings";
|
|
21
|
-
import { ModelTrainingApi
|
|
22
|
-
import { ModelsApi
|
|
23
|
-
import {
|
|
24
|
-
import { convertNqlObjectToForecastBody } from "./nql/DataRulesConverter";
|
|
25
|
-
import { buildNql, getNqlObject } from "./nql/NQLParser";
|
|
68
|
+
import { ModelTrainingApi } from "./model-training";
|
|
69
|
+
import { ModelsApi } from "./models";
|
|
70
|
+
import { NqlApi } from "./nql";
|
|
26
71
|
import { PingApi } from "./ping";
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import { ResourceApi, } from "./resources";
|
|
30
|
-
import { isConversationAssistantMessage, isConversationAssistantMessageWithFunctionCall, isConversationAssistantMessageWithoutFunctionCall, isConversationFunctionMessage, isConversationInputMessage, isConversationMessage, isConversationMessageFunctionCall, isConversationMessageName, isConversationMessageRole, isConversationMessages, isConversationSystemMessage, isConversationUserMessage, isRosettaRequestMessage, isType, } from "./rosetta/types";
|
|
72
|
+
import { QueriesApi } from "./queries";
|
|
73
|
+
import { ResourceApi } from "./resources";
|
|
31
74
|
import { RosettaStoneApi } from "./rosetta-stone";
|
|
32
|
-
import { SubscriptionsApi
|
|
75
|
+
import { SubscriptionsApi } from "./subscriptions";
|
|
33
76
|
import { UploadsApi } from "./uploads";
|
|
34
77
|
import { applyMixins } from "./utils";
|
|
35
|
-
import { ViewsApi
|
|
78
|
+
import { ViewsApi } from "./views";
|
|
36
79
|
import { WhoAmIApi } from "./whoami";
|
|
37
80
|
class NarrativeApi extends BaseApi {
|
|
38
81
|
}
|
|
@@ -68,4 +111,4 @@ applyMixins(NarrativeApi, [
|
|
|
68
111
|
EncryptionMaterialApi,
|
|
69
112
|
WhoAmIApi,
|
|
70
113
|
]);
|
|
71
|
-
export { NarrativeApi
|
|
114
|
+
export { NarrativeApi };
|
package/build/jobs/types.d.ts
CHANGED
|
@@ -162,7 +162,7 @@ export interface ModelsTrainClassifierJob extends BaseJob {
|
|
|
162
162
|
result: ModelsTrainClassifierResults;
|
|
163
163
|
}
|
|
164
164
|
export type Job = ForecastJob | ExplainJob | MaterializedViewJob | DatasetsDeleteTableJob | DatasetsDeliverDataJob | DatasetsSampleJob | DatasetsCalculateColumnStatsJob | ModelTrainingRunJob | ModelsDeliverModelJob | ModelsTrainClassifierJob | UnknownJob;
|
|
165
|
-
interface ModelsTrainClassifierTrainingSummary {
|
|
165
|
+
export interface ModelsTrainClassifierTrainingSummary {
|
|
166
166
|
total_features: number;
|
|
167
167
|
feature_types: Record<"text" | "categorical" | "embedding" | "numeric", number>;
|
|
168
168
|
test_accuracy: number;
|
|
@@ -170,7 +170,7 @@ interface ModelsTrainClassifierTrainingSummary {
|
|
|
170
170
|
class_names: Record<string, string>;
|
|
171
171
|
error?: unknown;
|
|
172
172
|
}
|
|
173
|
-
interface ModelsTrainClassifierRegistryInfo {
|
|
173
|
+
export interface ModelsTrainClassifierRegistryInfo {
|
|
174
174
|
model_stored: boolean;
|
|
175
175
|
model_name: string;
|
|
176
176
|
model_version: string;
|
|
@@ -178,7 +178,7 @@ interface ModelsTrainClassifierRegistryInfo {
|
|
|
178
178
|
registry_schema: string;
|
|
179
179
|
model_task: string;
|
|
180
180
|
}
|
|
181
|
-
interface ModelsTrainClassifierMinimalMetrics {
|
|
181
|
+
export interface ModelsTrainClassifierMinimalMetrics {
|
|
182
182
|
num_classes: number;
|
|
183
183
|
class_names: Record<string, string>;
|
|
184
184
|
accuracy: number;
|
|
@@ -186,12 +186,12 @@ interface ModelsTrainClassifierMinimalMetrics {
|
|
|
186
186
|
precision_macro: number;
|
|
187
187
|
recall_macro: number;
|
|
188
188
|
}
|
|
189
|
-
interface ModelsTrainClassifierConfig {
|
|
189
|
+
export interface ModelsTrainClassifierConfig {
|
|
190
190
|
name: string;
|
|
191
191
|
version: string;
|
|
192
192
|
[key: string]: unknown;
|
|
193
193
|
}
|
|
194
|
-
type ModelsTrainClassifierResults = {
|
|
194
|
+
export type ModelsTrainClassifierResults = {
|
|
195
195
|
status: "success" | "error";
|
|
196
196
|
registry_info?: ModelsTrainClassifierRegistryInfo;
|
|
197
197
|
num_categories: number;
|
|
@@ -205,16 +205,16 @@ type ModelsTrainClassifierResults = {
|
|
|
205
205
|
config: ModelsTrainClassifierConfig;
|
|
206
206
|
training_summary: ModelsTrainClassifierTrainingSummary;
|
|
207
207
|
};
|
|
208
|
-
type Metric<V = unknown, M extends Record<string, unknown> = Record<string, unknown>> = {
|
|
208
|
+
export type Metric<V = unknown, M extends Record<string, unknown> = Record<string, unknown>> = {
|
|
209
209
|
value: V;
|
|
210
210
|
metadata: M;
|
|
211
211
|
};
|
|
212
|
-
interface AveragePredictionEntropy {
|
|
212
|
+
export interface AveragePredictionEntropy {
|
|
213
213
|
correct_predictions: number;
|
|
214
214
|
incorrect_predictions: number;
|
|
215
215
|
entropy_difference: number;
|
|
216
216
|
}
|
|
217
|
-
interface PerClassMetricsLabeledPost {
|
|
217
|
+
export interface PerClassMetricsLabeledPost {
|
|
218
218
|
class: string;
|
|
219
219
|
f1_score: number;
|
|
220
220
|
precision: number;
|
|
@@ -224,7 +224,7 @@ interface PerClassMetricsLabeledPost {
|
|
|
224
224
|
total_instances: number;
|
|
225
225
|
correct_predictions: number;
|
|
226
226
|
}
|
|
227
|
-
interface EntropyStats {
|
|
227
|
+
export interface EntropyStats {
|
|
228
228
|
min: number;
|
|
229
229
|
max: number;
|
|
230
230
|
mean: number;
|
|
@@ -235,21 +235,21 @@ interface EntropyStats {
|
|
|
235
235
|
normalized_perplexity_mean: number;
|
|
236
236
|
normalized_perplexity_median: number;
|
|
237
237
|
}
|
|
238
|
-
interface EntropyPrioritizationHistogram {
|
|
238
|
+
export interface EntropyPrioritizationHistogram {
|
|
239
239
|
min: number;
|
|
240
240
|
max: number;
|
|
241
241
|
count: number;
|
|
242
242
|
inclusive_left: number;
|
|
243
243
|
inclusive_right: number;
|
|
244
244
|
}
|
|
245
|
-
interface TopEntropyRecord {
|
|
245
|
+
export interface TopEntropyRecord {
|
|
246
246
|
entropy: number;
|
|
247
247
|
top5_predicted_classes: [string, number][];
|
|
248
248
|
ID_COLUMN: string;
|
|
249
249
|
LABEL_COLUMN: string;
|
|
250
250
|
[key: string]: unknown;
|
|
251
251
|
}
|
|
252
|
-
interface GlobalMetrics {
|
|
252
|
+
export interface GlobalMetrics {
|
|
253
253
|
num_documents_corpus_pre: Metric<number, never>;
|
|
254
254
|
num_documents_labeled_pre: Metric<number, never>;
|
|
255
255
|
percent_labeled_corpus_pre: Metric<number, never>;
|
|
@@ -270,15 +270,15 @@ interface GlobalMetrics {
|
|
|
270
270
|
entropy_prioritization_histogram: Metric<EntropyPrioritizationHistogram[], never>;
|
|
271
271
|
top_entropy_records: Metric<TopEntropyRecord[], never>;
|
|
272
272
|
}
|
|
273
|
-
type TopTermsValue = Record<string, number>;
|
|
274
|
-
interface FeatureError {
|
|
273
|
+
export type TopTermsValue = Record<string, number>;
|
|
274
|
+
export interface FeatureError {
|
|
275
275
|
feature: string;
|
|
276
276
|
prevalence_diff: number;
|
|
277
277
|
incorrect_prevalence: number;
|
|
278
278
|
correct_prevalence: number;
|
|
279
279
|
ratio: number;
|
|
280
280
|
}
|
|
281
|
-
interface ErrorConcentration {
|
|
281
|
+
export interface ErrorConcentration {
|
|
282
282
|
feature: string;
|
|
283
283
|
records_with_feature: number;
|
|
284
284
|
errors_with_feature: number;
|
|
@@ -286,13 +286,13 @@ interface ErrorConcentration {
|
|
|
286
286
|
overall_error_rate: number;
|
|
287
287
|
error_lift: number;
|
|
288
288
|
}
|
|
289
|
-
interface ErrorPredictionImportance {
|
|
289
|
+
export interface ErrorPredictionImportance {
|
|
290
290
|
feature: string;
|
|
291
291
|
correlation: number;
|
|
292
292
|
p_value: number;
|
|
293
293
|
abs_correlation: number;
|
|
294
294
|
}
|
|
295
|
-
interface DynamicTextFeatureMetrics {
|
|
295
|
+
export interface DynamicTextFeatureMetrics {
|
|
296
296
|
[key: `${string}_avg_doc_length_corpus_pre`]: Metric<number>;
|
|
297
297
|
[key: `${string}_avg_doc_length_labeled_pre`]: Metric<number>;
|
|
298
298
|
[key: `${string}_ngram_vocab_size_corpus_pre`]: Metric<number>;
|
package/build/nql/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@narrative.io/data-collaboration-sdk-ts",
|
|
3
|
-
"version": "2.58.
|
|
3
|
+
"version": "2.58.1",
|
|
4
4
|
"main": "build/index.js",
|
|
5
5
|
"repository": "github:narrative-io/data-collaboration-sdk-ts",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -26,15 +26,15 @@
|
|
|
26
26
|
"@biomejs/biome": "2.1.2",
|
|
27
27
|
"@commitlint/cli": "19.8.1",
|
|
28
28
|
"@commitlint/config-conventional": "19.8.1",
|
|
29
|
-
"@types/jest": "
|
|
30
|
-
"babel-jest": "
|
|
31
|
-
"jest": "
|
|
29
|
+
"@types/jest": "30.0.0",
|
|
30
|
+
"babel-jest": "30.0.5",
|
|
31
|
+
"jest": "30.0.5",
|
|
32
32
|
"lefthook": "1.12.2",
|
|
33
33
|
"ts-jest": "29.4.0"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"mande": "2.0.9",
|
|
37
|
-
"zod": "4.0.
|
|
37
|
+
"zod": "4.0.10",
|
|
38
38
|
"bignumber.js": "9.3.1"
|
|
39
39
|
},
|
|
40
40
|
"overrides": {
|