@narrative.io/data-collaboration-sdk-ts 2.95.0-beta.0 → 2.95.0-beta.2
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/access-rules/index.d.ts +1 -1
- package/build/access-tokens/index.d.ts +1 -1
- package/build/access-tokens/types.d.ts +3 -0
- package/build/access-tokens/types.js +3 -0
- package/build/apps/index.d.ts +1 -1
- package/build/attributes/index.d.ts +1 -1
- package/build/authentication/index.d.ts +1 -1
- package/build/collaboration-policy/core/jsonschema/json-schema-types.d.ts +2 -2
- package/build/collaboration-policy/core/jsonschema/sql-builder.js +2 -1
- package/build/collaboration-policy/core/sql-builder.js +9 -11
- package/build/collaboration-policy/types/collaboration-policy.d.ts +1370 -0
- package/build/collaboration-policy/types/collaboration-policy.js +274 -0
- package/build/collaboration-policy/types/index.d.ts +2 -0
- package/build/collaboration-policy/types/index.js +1 -0
- package/build/company-info/index.d.ts +1 -1
- package/build/connections/index.d.ts +1 -1
- package/build/contracts/index.d.ts +1 -1
- package/build/data-planes/index.d.ts +2 -1
- package/build/data-planes/index.js +4 -0
- package/build/data-planes/types.d.ts +7 -1
- package/build/data-streams/index.d.ts +1 -1
- package/build/datasets/index.d.ts +12 -3
- package/build/datasets/index.js +19 -2
- package/build/datasets/statistics-types.d.ts +81 -0
- package/build/datasets/statistics-types.js +1 -0
- package/build/datasets/types.d.ts +83 -12
- package/build/datasets/types.js +1 -0
- package/build/forecast/index.d.ts +1 -1
- package/build/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/build/installations/index.d.ts +1 -1
- package/build/jobs/index.d.ts +1 -1
- package/build/jobs/types.d.ts +1 -0
- package/build/mappings/index.d.ts +1 -1
- package/build/model-inference/index.d.ts +1 -1
- package/build/model-training/index.d.ts +1 -1
- package/build/models/index.d.ts +1 -1
- package/build/nql/Ast.d.ts +1 -1
- package/build/nql/index.d.ts +1 -1
- package/build/nql/index.js +1 -1
- package/build/nql/types.d.ts +9 -8
- package/build/nql/types.js +4 -0
- package/build/products/index.d.ts +1 -1
- package/build/queries/index.d.ts +1 -1
- package/build/resources/index.d.ts +1 -1
- package/build/rosetta/types.d.ts +1 -1
- package/build/rosetta/types.js +1 -1
- package/build/rosetta-stone/index.d.ts +1 -1
- package/build/subscriptions/index.d.ts +1 -1
- package/build/uploads/index.d.ts +1 -1
- package/build/views/index.d.ts +1 -1
- package/build/workflows/index.d.ts +1 -1
- package/package.json +10 -10
package/build/index.js
CHANGED
|
@@ -15,6 +15,7 @@ export * from "./data-planes";
|
|
|
15
15
|
export * from "./data-planes/types";
|
|
16
16
|
export * from "./data-streams";
|
|
17
17
|
export * from "./datasets";
|
|
18
|
+
export * from "./datasets/statistics-types";
|
|
18
19
|
export * from "./datasets/types";
|
|
19
20
|
export * from "./encryption-materials";
|
|
20
21
|
export * from "./encryption-materials/types";
|
|
@@ -15,4 +15,4 @@ declare class InstallationsApi extends BaseApi {
|
|
|
15
15
|
getInstallations(appCategory?: string): Promise<ApiRecords<Installation>>;
|
|
16
16
|
getInstallationProfiles(installationId: number): Promise<ApiRecords<Profile>>;
|
|
17
17
|
}
|
|
18
|
-
export { type Installation, type Profile
|
|
18
|
+
export { type Installation, InstallationsApi, type Profile };
|
package/build/jobs/index.d.ts
CHANGED
|
@@ -31,4 +31,4 @@ declare class JobsApi extends BaseApi {
|
|
|
31
31
|
*/
|
|
32
32
|
cancelJob(jobId: string): Promise<void>;
|
|
33
33
|
}
|
|
34
|
-
export { type
|
|
34
|
+
export { type ColumnDetails, type DatasetsCalculateColumnStatsJob, type DatasetsDeleteTableJob, type DatasetsDeliverDataJob, type DatasetsSampleJob, type DeleteInput, type DeliverInput, type ExplainInput, type ExplainJob, type ExplainOutput, type ForecastInput, type ForecastJob, type GetJobsParameters, type Job, type JobRequestSource, type JobRequestSourceApiUser, type JobRequestSourceProcess, JobsApi, type MaterializedViewInput, type MaterializedViewJob, type MaterializedViewOutput, type ModelInferenceRunInput, type ModelInferenceRunJob, type ModelInferenceRunJobResult, type ModelsDeliverModelInput, type ModelsDeliverModelJob, type ModelTrainingRunInput, type ModelTrainingRunJob, type SampleInput, type StatsInput, };
|
package/build/jobs/types.d.ts
CHANGED
|
@@ -111,4 +111,4 @@ declare class MappingsApi extends BaseApi {
|
|
|
111
111
|
*/
|
|
112
112
|
getMapping(mappingId: string): Promise<Mapping>;
|
|
113
113
|
}
|
|
114
|
-
export { type
|
|
114
|
+
export { type CreateMapping, type Mapping, type MappingExpressionDependencies, MappingsApi, type MappingTestResult, type MappingTestResults, type ObjectMapping, type PropertyMapping, type RawMappingDefinition, type RawObjectMapping, type RawPropertyMapping, type RawValueMapping, type ValueMapping, };
|
|
@@ -15,4 +15,4 @@ declare class ModelInferenceApi extends BaseApi {
|
|
|
15
15
|
*/
|
|
16
16
|
runModelInference(request: ModelInferenceRunRequest): Promise<ModelInferenceRunJob>;
|
|
17
17
|
}
|
|
18
|
-
export {
|
|
18
|
+
export { type InferenceConfig, type InferenceMessage, type InferenceModel, type InferenceUsage, type MessageRole, ModelInferenceApi, type ModelInferenceRunRequest, type ModelInferenceRunResult, };
|
|
@@ -20,4 +20,4 @@ declare class ModelTrainingApi extends BaseApi {
|
|
|
20
20
|
*/
|
|
21
21
|
trainClassifier(data: TrainClassifierRequest): Promise<TrainClassifierResponse>;
|
|
22
22
|
}
|
|
23
|
-
export { ModelTrainingApi, type
|
|
23
|
+
export { ModelTrainingApi, type ModelTrainingConfig, type OutputModel, type TrainClassifierRequest, type TrainClassifierResponse, type TrainModelRequest, type TrainModelResponse, };
|
package/build/models/index.d.ts
CHANGED
|
@@ -28,4 +28,4 @@ declare class ModelsApi extends BaseApi {
|
|
|
28
28
|
*/
|
|
29
29
|
deleteModel(modelId: string): Promise<void>;
|
|
30
30
|
}
|
|
31
|
-
export {
|
|
31
|
+
export { type CreateModelRequest, type Model, type ModelCollaborators, ModelsApi, type UpdateModelRequest, };
|
package/build/nql/Ast.d.ts
CHANGED
|
@@ -300,4 +300,4 @@ type NqlAst = {
|
|
|
300
300
|
type: string;
|
|
301
301
|
ast_metadata?: AstNodeMetadata;
|
|
302
302
|
} & (NqlAstList | NqlAggFunction | NqlBinaryOp | NqlCase | NqlFunction | NqlLit | NqlIdent | NqlJoin | NqlTypeSpec | NqlOp | NqlWindow | NqlUnknown | NqlSelect | NqlCreateMaterializedView | NqlExplain | NqlWhen | NqlElse | NqlPlaceholder);
|
|
303
|
-
export type { NqlAst, NqlAstList,
|
|
303
|
+
export type { ExtractPlaceholderType, NqlAggFunction, NqlAst, NqlAstList, NqlAstType, NqlBinaryOp, NqlBudget, NqlCase, NqlCreateMaterializedView, NqlElse, NqlExplain, NqlFunction, NqlIdent, NqlIdentColumn, NqlIdentTable, NqlJoin, NqlJoinConditionType, NqlJoinType, NqlLit, NqlOp, NqlPlaceholder, NqlSelect, NqlSimpleType, NqlTemplateConstraint, NqlTemplateConstraintGroup, NqlTemplateConstraintLogicalOperator, NqlTypeSpec, NqlUnknown, NqlWhen, NqlWindow, };
|
package/build/nql/index.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ declare class NqlApi extends BaseApi {
|
|
|
43
43
|
*/
|
|
44
44
|
getNqlByJobId(id: string): Promise<NqlResult>;
|
|
45
45
|
}
|
|
46
|
-
export { NqlApi, type Nql, type NqlField, type NqlResult, type NqlQueryInput, type NqlCompileResult, type NqlExpression, type NqlWhere, type NqlFilterExpression, type NqlBooleanExpression, type NqlFilterBinaryExpression, type NqlFilterUnaryExpression, };
|
|
47
46
|
export * from "./Ast";
|
|
48
47
|
export * from "./AstParser";
|
|
49
48
|
export * from "./NqlBuilder";
|
|
49
|
+
export { type Nql, NqlApi, type NqlBooleanExpression, type NqlCompileResult, type NqlExpression, type NqlField, type NqlFilterBinaryExpression, type NqlFilterExpression, type NqlFilterUnaryExpression, type NqlQueryInput, type NqlResult, type NqlWhere, };
|
package/build/nql/index.js
CHANGED
package/build/nql/types.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ export declare const NqlQueryInputObj: z.ZodObject<{
|
|
|
40
40
|
dedicated: "dedicated";
|
|
41
41
|
}>;
|
|
42
42
|
}, z.core.$strip>>;
|
|
43
|
+
compute_pool_id: z.ZodOptional<z.ZodString>;
|
|
43
44
|
create_as_view: z.ZodOptional<z.ZodBoolean>;
|
|
44
45
|
}, z.core.$strip>;
|
|
45
46
|
/**
|
|
@@ -103,12 +104,12 @@ export declare const NqlFilterBinaryExpressionObj: z.ZodObject<{
|
|
|
103
104
|
}, z.core.$strip>;
|
|
104
105
|
}, z.core.$strip>, z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
105
106
|
operator: z.ZodEnum<{
|
|
107
|
+
"=": "=";
|
|
108
|
+
"!=": "!=";
|
|
106
109
|
">": ">";
|
|
107
110
|
"<": "<";
|
|
108
111
|
">=": ">=";
|
|
109
112
|
"<=": "<=";
|
|
110
|
-
"=": "=";
|
|
111
|
-
"!=": "!=";
|
|
112
113
|
IN: "IN";
|
|
113
114
|
"NOT IN": "NOT IN";
|
|
114
115
|
LIKE: "LIKE";
|
|
@@ -143,12 +144,12 @@ export declare const NqlFilterExpressionObj: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
143
144
|
}, z.core.$strip>;
|
|
144
145
|
}, z.core.$strip>, z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
145
146
|
operator: z.ZodEnum<{
|
|
147
|
+
"=": "=";
|
|
148
|
+
"!=": "!=";
|
|
146
149
|
">": ">";
|
|
147
150
|
"<": "<";
|
|
148
151
|
">=": ">=";
|
|
149
152
|
"<=": "<=";
|
|
150
|
-
"=": "=";
|
|
151
|
-
"!=": "!=";
|
|
152
153
|
IN: "IN";
|
|
153
154
|
"NOT IN": "NOT IN";
|
|
154
155
|
LIKE: "LIKE";
|
|
@@ -194,12 +195,12 @@ export declare const NqlWhereObj: z.ZodObject<{
|
|
|
194
195
|
}, z.core.$strip>;
|
|
195
196
|
}, z.core.$strip>, z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
196
197
|
operator: z.ZodEnum<{
|
|
198
|
+
"=": "=";
|
|
199
|
+
"!=": "!=";
|
|
197
200
|
">": ">";
|
|
198
201
|
"<": "<";
|
|
199
202
|
">=": ">=";
|
|
200
203
|
"<=": "<=";
|
|
201
|
-
"=": "=";
|
|
202
|
-
"!=": "!=";
|
|
203
204
|
IN: "IN";
|
|
204
205
|
"NOT IN": "NOT IN";
|
|
205
206
|
LIKE: "LIKE";
|
|
@@ -257,12 +258,12 @@ export declare const NqlObj: z.ZodObject<{
|
|
|
257
258
|
}, z.core.$strip>;
|
|
258
259
|
}, z.core.$strip>, z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
259
260
|
operator: z.ZodEnum<{
|
|
261
|
+
"=": "=";
|
|
262
|
+
"!=": "!=";
|
|
260
263
|
">": ">";
|
|
261
264
|
"<": "<";
|
|
262
265
|
">=": ">=";
|
|
263
266
|
"<=": "<=";
|
|
264
|
-
"=": "=";
|
|
265
|
-
"!=": "!=";
|
|
266
267
|
IN: "IN";
|
|
267
268
|
"NOT IN": "NOT IN";
|
|
268
269
|
LIKE: "LIKE";
|
package/build/nql/types.js
CHANGED
|
@@ -45,6 +45,10 @@ export const NqlQueryInputObj = z.object({
|
|
|
45
45
|
})
|
|
46
46
|
.optional()
|
|
47
47
|
.describe("Execution cluster configuration"),
|
|
48
|
+
compute_pool_id: z
|
|
49
|
+
.string()
|
|
50
|
+
.optional()
|
|
51
|
+
.describe("Identifier of the compute pool to run the query on. Interaction with `execution_cluster` is determined by the backend."),
|
|
48
52
|
create_as_view: z
|
|
49
53
|
.boolean()
|
|
50
54
|
.optional()
|
package/build/queries/index.d.ts
CHANGED
|
@@ -42,4 +42,4 @@ declare class QueriesApi extends BaseApi {
|
|
|
42
42
|
*/
|
|
43
43
|
updateQuery(queryId: string, data: UpdateNqlQueryRequest): Promise<NqlQueryResponse>;
|
|
44
44
|
}
|
|
45
|
-
export {
|
|
45
|
+
export { type CreateNqlQueryRequest, type NqlOwnedQueryResponse, type NqlQueryAst, type NqlQueryCollaborators, type NqlQueryMetadata, type NqlQueryOwner, type NqlQueryResponse, type NqlSharedQueryResponse, QueriesApi, type UpdateNqlQueryRequest, };
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { BaseApi } from "../base-api";
|
|
6
6
|
import type { ApiRecords } from "../types";
|
|
7
7
|
import type { BucketCreationRequest, Resource, UpdateAccessTypeRequest } from "./types";
|
|
8
|
-
export type {
|
|
8
|
+
export type { BucketCreationRequest, Resource, UpdateAccessTypeRequest };
|
|
9
9
|
/**
|
|
10
10
|
* @class ResourceApi
|
|
11
11
|
* @extends {BaseApi}
|
package/build/rosetta/types.d.ts
CHANGED
|
@@ -311,4 +311,4 @@ interface RespomseMessage {
|
|
|
311
311
|
}
|
|
312
312
|
type RosettaResponseMessage = InfoMessage | HistoryMessage | ConversationUpdatedMessage | PongMessage | ErrorMessage | ThoughtMessage | RespomseMessage | ConversationListMessage;
|
|
313
313
|
declare function isType<T>(input: unknown, schema: z.ZodType<T>): input is T;
|
|
314
|
-
export { type
|
|
314
|
+
export { 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, };
|
package/build/rosetta/types.js
CHANGED
|
@@ -225,4 +225,4 @@ function isType(input, schema) {
|
|
|
225
225
|
/// ///////////////////
|
|
226
226
|
// Exports
|
|
227
227
|
/// ///////////////////
|
|
228
|
-
export {
|
|
228
|
+
export { isConversationAssistantMessage, isConversationAssistantMessageWithFunctionCall, isConversationAssistantMessageWithoutFunctionCall, isConversationFunctionMessage, isConversationInputMessage, isConversationMessage, isConversationMessageFunctionCall, isConversationMessageName, isConversationMessageRole, isConversationMessages, isConversationSystemMessage, isConversationUserMessage, isRosettaRequestMessage, isType, };
|
|
@@ -14,4 +14,4 @@ declare class RosettaStoneApi extends BaseApi {
|
|
|
14
14
|
response: Mapping[];
|
|
15
15
|
}>;
|
|
16
16
|
}
|
|
17
|
-
export { RosettaStoneApi, type
|
|
17
|
+
export { RosettaStoneApi, type RosettaStoneResponse, type SampleRecord, type SampleRecords, };
|
|
@@ -13,4 +13,4 @@ declare class SubscriptionsApi extends BaseApi {
|
|
|
13
13
|
*/
|
|
14
14
|
getSubscriptions(): Promise<ApiRecords<Subscription>>;
|
|
15
15
|
}
|
|
16
|
-
export { type
|
|
16
|
+
export { type DataStreamSubscriptionDetails, type MarketplaceSubscriptionDetails, type Subscription, type SubscriptionBudget, type SubscriptionDetails, type SubscriptionOutput, type SubscriptionStatus, SubscriptionsApi, type SubscriptionType, };
|
package/build/uploads/index.d.ts
CHANGED
|
@@ -33,4 +33,4 @@ declare class UploadsApi extends BaseApi {
|
|
|
33
33
|
*/
|
|
34
34
|
uploadFileToS3(file: File, uploadInfo: UploadsResponse): Promise<boolean>;
|
|
35
35
|
}
|
|
36
|
-
export { type
|
|
36
|
+
export { type ConfirmDatasetUpload, UploadsApi, type UploadsResponse };
|
package/build/views/index.d.ts
CHANGED
|
@@ -42,4 +42,4 @@ declare class ViewsApi extends BaseApi {
|
|
|
42
42
|
*/
|
|
43
43
|
updateView(viewId: string, data: UpdateViewRequest): Promise<View>;
|
|
44
44
|
}
|
|
45
|
-
export {
|
|
45
|
+
export { type CreateViewRequest, type OwnedView, type SharedView, type UpdateViewRequest, type View, type ViewOwner, ViewsApi, };
|
|
@@ -63,4 +63,4 @@ declare class WorkflowsApi extends BaseApi {
|
|
|
63
63
|
*/
|
|
64
64
|
listWorkflowRuns(workflowId: string, params?: ListRunsParams): Promise<ListRunsResponse>;
|
|
65
65
|
}
|
|
66
|
-
export {
|
|
66
|
+
export { type CreateWorkflowRequest, type CreateWorkflowResponse, type ListRunsParams, type ListRunsResponse, type ListWorkflowsResponse, type ScheduleWorkflowRequest, type ScheduleWorkflowResponse, type TriggerWorkflowResponse, type WorkflowResponse, type WorkflowRun, type WorkflowRunStatus, type WorkflowStatus, WorkflowsApi, };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@narrative.io/data-collaboration-sdk-ts",
|
|
3
|
-
"version": "2.95.0-beta.
|
|
3
|
+
"version": "2.95.0-beta.2",
|
|
4
4
|
"main": "build/index.js",
|
|
5
5
|
"repository": "github:narrative-io/data-collaboration-sdk-ts",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -26,20 +26,20 @@
|
|
|
26
26
|
"license": "ISC",
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@babel/core": "7.29.0",
|
|
29
|
-
"@babel/preset-env": "7.29.
|
|
29
|
+
"@babel/preset-env": "7.29.2",
|
|
30
30
|
"@babel/preset-typescript": "7.28.5",
|
|
31
|
-
"@biomejs/biome": "2.
|
|
32
|
-
"@commitlint/cli": "20.
|
|
33
|
-
"@commitlint/config-conventional": "20.
|
|
31
|
+
"@biomejs/biome": "2.4.10",
|
|
32
|
+
"@commitlint/cli": "20.5.0",
|
|
33
|
+
"@commitlint/config-conventional": "20.5.0",
|
|
34
34
|
"@types/jest": "30.0.0",
|
|
35
35
|
"@types/json-schema": "^7.0.15",
|
|
36
|
-
"babel-jest": "30.
|
|
37
|
-
"jest": "30.
|
|
38
|
-
"lefthook": "2.1.
|
|
39
|
-
"ts-jest": "29.4.
|
|
36
|
+
"babel-jest": "30.3.0",
|
|
37
|
+
"jest": "30.3.0",
|
|
38
|
+
"lefthook": "2.1.5",
|
|
39
|
+
"ts-jest": "29.4.9"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"bignumber.js": "
|
|
42
|
+
"bignumber.js": "10.0.2",
|
|
43
43
|
"mande": "2.0.9",
|
|
44
44
|
"zod": "4.3.6"
|
|
45
45
|
},
|