dataiku-sdk 3.3.0 → 3.5.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/README.md +6 -4
- package/dist/build-metadata.json +1 -1
- package/dist/src/cli/command-syntax.json +14524 -0
- package/dist/src/cli/commands/analysis.js +6 -9
- package/dist/src/cli/commands/api-deployer.js +15 -33
- package/dist/src/cli/commands/api-service.js +17 -27
- package/dist/src/cli/commands/app.js +22 -39
- package/dist/src/cli/commands/bundle.js +15 -24
- package/dist/src/cli/commands/business-app.js +10 -17
- package/dist/src/cli/commands/code-env.js +23 -36
- package/dist/src/cli/commands/code.js +5 -5
- package/dist/src/cli/commands/connection.js +12 -22
- package/dist/src/cli/commands/continuous-activity.js +6 -9
- package/dist/src/cli/commands/dashboard.js +8 -13
- package/dist/src/cli/commands/data-collection.js +9 -16
- package/dist/src/cli/commands/data-quality.js +14 -26
- package/dist/src/cli/commands/dataset.js +28 -51
- package/dist/src/cli/commands/discussion.js +7 -10
- package/dist/src/cli/commands/doctor.js +3 -3
- package/dist/src/cli/commands/flow-zone.js +8 -17
- package/dist/src/cli/commands/folder.js +12 -20
- package/dist/src/cli/commands/future.js +7 -10
- package/dist/src/cli/commands/group.js +7 -11
- package/dist/src/cli/commands/insight.js +7 -11
- package/dist/src/cli/commands/job.js +17 -25
- package/dist/src/cli/commands/knowledge-bank.js +5 -6
- package/dist/src/cli/commands/llm.js +5 -8
- package/dist/src/cli/commands/macro.js +11 -18
- package/dist/src/cli/commands/meaning.js +7 -11
- package/dist/src/cli/commands/metrics.js +7 -10
- package/dist/src/cli/commands/ml-task.js +12 -20
- package/dist/src/cli/commands/model-evaluation-store.js +7 -11
- package/dist/src/cli/commands/notebook.js +15 -27
- package/dist/src/cli/commands/plugin.js +35 -68
- package/dist/src/cli/commands/project-deployer.js +10 -22
- package/dist/src/cli/commands/project-folder.js +10 -17
- package/dist/src/cli/commands/project-git.js +39 -71
- package/dist/src/cli/commands/project-library.js +15 -23
- package/dist/src/cli/commands/project.js +9 -26
- package/dist/src/cli/commands/recipe.d.ts +16 -0
- package/dist/src/cli/commands/recipe.js +83 -94
- package/dist/src/cli/commands/saved-model.js +23 -39
- package/dist/src/cli/commands/scenario.js +21 -35
- package/dist/src/cli/commands/sql.js +4 -4
- package/dist/src/cli/commands/statistics.js +11 -18
- package/dist/src/cli/commands/streaming-endpoint.js +7 -11
- package/dist/src/cli/commands/user.js +11 -22
- package/dist/src/cli/commands/variable.js +3 -4
- package/dist/src/cli/commands/webapp.js +10 -16
- package/dist/src/cli/commands/wiki.js +9 -13
- package/dist/src/cli/commands/workspace.js +8 -14
- package/dist/src/cli/contract.d.ts +5 -15
- package/dist/src/cli/contract.js +179 -461
- package/dist/src/cli/doctor.js +1 -0
- package/dist/src/cli/env.d.ts +2 -0
- package/dist/src/cli/env.js +15 -1
- package/dist/src/cli/helpers/app-permissions.js +2 -1
- package/dist/src/cli/helpers/flow-zone.js +2 -1
- package/dist/src/cli/helpers/recipe.js +2 -1
- package/dist/src/cli/output-schemas.d.ts +24 -0
- package/dist/src/cli/output-schemas.js +233 -0
- package/dist/src/cli/syntax.d.ts +83 -0
- package/dist/src/cli/syntax.js +217 -0
- package/dist/src/cli/types.d.ts +3 -0
- package/dist/src/cli/usage.d.ts +1 -1
- package/dist/src/cli/usage.js +4 -2
- package/dist/src/cli/version.js +2 -0
- package/dist/src/cli.js +37 -64
- package/dist/src/client.d.ts +10 -1
- package/dist/src/client.js +27 -11
- package/dist/src/errors.d.ts +12 -1
- package/dist/src/errors.js +34 -7
- package/dist/src/generated/action-output-schemas.json +1735 -0
- package/dist/src/index.d.ts +1 -3
- package/dist/src/index.js +2 -2
- package/dist/src/resources/api-services.js +2 -3
- package/dist/src/resources/applications.js +2 -4
- package/dist/src/resources/code-envs.js +2 -2
- package/dist/src/resources/data-quality.js +4 -3
- package/dist/src/resources/datasets.d.ts +13 -0
- package/dist/src/resources/datasets.js +42 -8
- package/dist/src/resources/flow-zones.d.ts +6 -2
- package/dist/src/resources/flow-zones.js +10 -5
- package/dist/src/resources/folders.js +4 -2
- package/dist/src/resources/futures.d.ts +2 -0
- package/dist/src/resources/futures.js +39 -27
- package/dist/src/resources/insights.js +3 -2
- package/dist/src/resources/jobs.js +41 -31
- package/dist/src/resources/macros.js +2 -4
- package/dist/src/resources/ml-tasks.js +28 -19
- package/dist/src/resources/notebooks.js +2 -3
- package/dist/src/resources/plugins.d.ts +0 -2
- package/dist/src/resources/plugins.js +0 -3
- package/dist/src/resources/project-git.d.ts +6 -12
- package/dist/src/resources/project-git.js +31 -58
- package/dist/src/resources/project-library.d.ts +0 -2
- package/dist/src/resources/project-library.js +2 -7
- package/dist/src/resources/projects.d.ts +4 -2
- package/dist/src/resources/projects.js +37 -36
- package/dist/src/resources/recipes.d.ts +28 -0
- package/dist/src/resources/recipes.js +116 -84
- package/dist/src/resources/sql.js +8 -3
- package/dist/src/resources/statistics.js +2 -1
- package/dist/src/resources/variables.js +2 -1
- package/dist/src/resources/webapps.js +2 -3
- package/dist/src/schemas.d.ts +1 -2
- package/dist/src/schemas.js +1 -1
- package/dist/src/skill.js +6 -7
- package/dist/src/utils/cleanup-ledger.js +9 -8
- package/dist/src/utils/git-reference.d.ts +12 -0
- package/dist/src/utils/git-reference.js +38 -0
- package/dist/src/utils/polling.d.ts +3 -0
- package/dist/src/utils/polling.js +3 -0
- package/dist/src/utils/project-archive.js +2 -2
- package/dist/src/utils/stable-hash.d.ts +3 -1
- package/dist/src/utils/stable-hash.js +2 -0
- package/package.json +8 -8
- package/plugin.json +1 -1
- package/skills/dataiku-dss/SKILL.md +3 -2
- package/skills/dataiku-dss/references/app-releases.md +2 -3
- package/skills/dataiku-dss/references/authentication.md +7 -7
- package/skills/dataiku-dss/references/coding.md +1 -1
- package/skills/dataiku-dss/references/mutations.md +1 -1
- package/skills/dataiku-dss/references/troubleshooting.md +2 -2
- package/dist/src/utils/pagination.d.ts +0 -8
- package/dist/src/utils/pagination.js +0 -23
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { type CommandInputContract, type CommandPositionalMetadata } from "./syntax.js";
|
|
1
2
|
import type { CommandFlagChoice, CommandMeta, CommandPayloadSchema } from "./types.js";
|
|
2
3
|
export declare const AUTH_ACTIONS: Record<string, {
|
|
3
4
|
handler: (flags: Record<string, string | boolean>) => Promise<unknown>;
|
|
4
|
-
usage: string;
|
|
5
5
|
description?: string;
|
|
6
6
|
examples?: string[];
|
|
7
7
|
requiredFlags?: string[];
|
|
@@ -11,11 +11,6 @@ export type CommandOutputShape = "object" | "array" | "string" | "void";
|
|
|
11
11
|
export type CommandDestructiveLevel = "none" | "reversible" | "destructive";
|
|
12
12
|
export type CommandAsyncKind = "none" | "job" | "future";
|
|
13
13
|
export type CommandIdempotency = "safe" | "convergent" | "if-not-exists" | "if-exists" | "none";
|
|
14
|
-
export interface CommandInputContract {
|
|
15
|
-
stdin?: boolean;
|
|
16
|
-
dataFlag?: boolean;
|
|
17
|
-
dataFileFlag?: boolean;
|
|
18
|
-
}
|
|
19
14
|
export interface CommandExitCodes {
|
|
20
15
|
ok: 0;
|
|
21
16
|
usage: 1;
|
|
@@ -32,10 +27,6 @@ export type CommandFlagMetadata = {
|
|
|
32
27
|
aliases?: string[];
|
|
33
28
|
allowEmptyValue?: boolean;
|
|
34
29
|
};
|
|
35
|
-
export interface CommandPositionalMetadata {
|
|
36
|
-
name: string;
|
|
37
|
-
required: boolean;
|
|
38
|
-
}
|
|
39
30
|
export interface CommandRequiredInputAlternative {
|
|
40
31
|
flags?: string[];
|
|
41
32
|
positionals?: string[];
|
|
@@ -93,13 +84,12 @@ export interface CommandRegistryEntry {
|
|
|
93
84
|
cleanupHint?: string;
|
|
94
85
|
agentContractVersion: number;
|
|
95
86
|
}
|
|
96
|
-
export declare const COMMANDS_USAGE
|
|
87
|
+
export declare const COMMANDS_USAGE: string;
|
|
97
88
|
export declare const AGENT_CONTRACT_COMMAND = "dss agent contract";
|
|
98
|
-
export declare const AGENT_CONTRACT_USAGE
|
|
99
|
-
export declare const CLEANUP_USAGE
|
|
89
|
+
export declare const AGENT_CONTRACT_USAGE: string;
|
|
90
|
+
export declare const CLEANUP_USAGE: string;
|
|
100
91
|
export declare function isAllowedCleanupAction(resource: string, action: string): boolean;
|
|
101
92
|
export declare function buildCommandSchemas(resource: string, action: string, flags: CommandFlagMetadata[], requiredFlags: string[], requiredOneOf: CommandFlagChoice[], payloadSchema: CommandPayloadSchema | undefined, outputShape: CommandOutputShape, usage: string): CommandAgentSchemas;
|
|
102
|
-
export declare function inferInputContract(usage: string): CommandInputContract;
|
|
103
93
|
export declare function supportsCleanupLedger(resource: string, action: string): boolean;
|
|
104
94
|
export declare function inferCleanupHint(resource: string, action: string): string | undefined;
|
|
105
95
|
export declare function buildCommandRegistry(resourceFilter?: string): Record<string, Record<string, CommandRegistryEntry>>;
|
|
@@ -124,6 +114,6 @@ export declare function buildMutationPlan(resource: string, action: string, meta
|
|
|
124
114
|
* mismatch (`recipe assert-unchanged`). Batch itself stays async "none".
|
|
125
115
|
*/
|
|
126
116
|
export declare const BATCH_PLAN_EXIT_CODES: Record<string, number>;
|
|
127
|
-
export declare const BATCH_USAGE
|
|
117
|
+
export declare const BATCH_USAGE: string;
|
|
128
118
|
export declare const BATCH_HINT = "Pass a JSON array of argv arrays, e.g. [[\"dataset\",\"list\"],[\"recipe\",\"update\",\"r\",\"--data-file\",\"p.json\"]].";
|
|
129
119
|
export declare const BATCH_EXAMPLE_PAYLOAD: string[][];
|