dataiku-sdk 3.6.1 → 3.7.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 +14 -6
- package/bin/bun-version.js +14 -0
- package/bin/dss.js +11 -15
- package/dist/build-metadata.json +1 -1
- package/dist/packages/types/src/index.d.ts +74 -1
- package/dist/packages/types/src/index.js +53 -1
- package/dist/src/cli/coerce.d.ts +1 -0
- package/dist/src/cli/coerce.js +19 -15
- package/dist/src/cli/command-syntax.json +3521 -416
- package/dist/src/cli/commands/analysis.js +19 -1
- package/dist/src/cli/commands/bundle.js +22 -0
- package/dist/src/cli/commands/connection.js +26 -2
- package/dist/src/cli/commands/data-quality.js +33 -1
- package/dist/src/cli/commands/dataset.js +35 -4
- package/dist/src/cli/commands/discussion.js +15 -0
- package/dist/src/cli/commands/doctor.js +1 -1
- package/dist/src/cli/commands/flow.d.ts +5 -0
- package/dist/src/cli/commands/flow.js +57 -0
- package/dist/src/cli/commands/future.js +8 -0
- package/dist/src/cli/commands/index.js +6 -0
- package/dist/src/cli/commands/job.js +29 -6
- package/dist/src/cli/commands/metrics.js +21 -1
- package/dist/src/cli/commands/ml-task.d.ts +5 -0
- package/dist/src/cli/commands/ml-task.js +86 -16
- package/dist/src/cli/commands/mlflow.d.ts +11 -0
- package/dist/src/cli/commands/mlflow.js +121 -0
- package/dist/src/cli/commands/plugin.js +5 -11
- package/dist/src/cli/commands/project-deployer.js +70 -0
- package/dist/src/cli/commands/project-library.js +2 -5
- package/dist/src/cli/commands/project.js +8 -0
- package/dist/src/cli/commands/recipe.d.ts +9 -0
- package/dist/src/cli/commands/recipe.js +93 -7
- package/dist/src/cli/commands/saved-model.d.ts +1 -1
- package/dist/src/cli/commands/saved-model.js +9 -76
- package/dist/src/cli/commands/streaming-endpoint.js +30 -1
- package/dist/src/cli/commands/webapp.js +8 -0
- package/dist/src/cli/commands/wiki.js +22 -0
- package/dist/src/cli/commands/workspace.js +8 -0
- package/dist/src/cli/contract.d.ts +16 -15
- package/dist/src/cli/contract.js +139 -3404
- package/dist/src/cli/doctor.d.ts +13 -0
- package/dist/src/cli/doctor.js +41 -1
- package/dist/src/cli/flags.d.ts +7 -1
- package/dist/src/cli/flags.js +78 -6
- package/dist/src/cli/helpers/app-successor.js +1 -2
- package/dist/src/cli/helpers/documentation.d.ts +21 -0
- package/dist/src/cli/helpers/documentation.js +53 -0
- package/dist/src/cli/helpers/trained-model.d.ts +26 -0
- package/dist/src/cli/helpers/trained-model.js +144 -0
- package/dist/src/cli/list-output.d.ts +7 -0
- package/dist/src/cli/list-output.js +77 -0
- package/dist/src/cli/list-shapes.d.ts +21 -0
- package/dist/src/cli/list-shapes.js +111 -0
- package/dist/src/cli/output-schemas.d.ts +0 -14
- package/dist/src/cli/output-schemas.js +4 -7
- package/dist/src/cli/output.d.ts +0 -1
- package/dist/src/cli/output.js +27 -19
- package/dist/src/cli/plans.d.ts +14 -0
- package/dist/src/cli/plans.js +3684 -0
- package/dist/src/cli/usage.d.ts +7 -0
- package/dist/src/cli/usage.js +20 -1
- package/dist/src/cli/version.d.ts +2 -2
- package/dist/src/cli/version.js +2 -2
- package/dist/src/cli.js +127 -113
- package/dist/src/client.d.ts +52 -43
- package/dist/src/client.js +267 -96
- package/dist/src/errors.d.ts +11 -1
- package/dist/src/errors.js +31 -47
- package/dist/src/generated/action-output-schemas.json +345 -89
- package/dist/src/index.d.ts +5 -1
- package/dist/src/index.js +3 -0
- package/dist/src/resources/analyses.d.ts +8 -0
- package/dist/src/resources/analyses.js +13 -1
- package/dist/src/resources/bundles.d.ts +34 -0
- package/dist/src/resources/bundles.js +67 -0
- package/dist/src/resources/connections.d.ts +9 -0
- package/dist/src/resources/connections.js +15 -0
- package/dist/src/resources/data-quality.d.ts +20 -0
- package/dist/src/resources/data-quality.js +30 -0
- package/dist/src/resources/dataset-create.d.ts +19 -0
- package/dist/src/resources/dataset-create.js +66 -0
- package/dist/src/resources/datasets.d.ts +25 -15
- package/dist/src/resources/datasets.js +59 -111
- package/dist/src/resources/discussions.d.ts +5 -0
- package/dist/src/resources/discussions.js +7 -0
- package/dist/src/resources/documentation.d.ts +25 -0
- package/dist/src/resources/documentation.js +16 -0
- package/dist/src/resources/flow.d.ts +48 -0
- package/dist/src/resources/flow.js +65 -0
- package/dist/src/resources/futures.d.ts +23 -0
- package/dist/src/resources/futures.js +32 -0
- package/dist/src/resources/jobs.js +102 -2
- package/dist/src/resources/metrics.d.ts +10 -0
- package/dist/src/resources/metrics.js +10 -0
- package/dist/src/resources/ml-tasks.d.ts +65 -2
- package/dist/src/resources/ml-tasks.js +102 -28
- package/dist/src/resources/mlflow-extension.d.ts +73 -0
- package/dist/src/resources/mlflow-extension.js +105 -0
- package/dist/src/resources/projects.d.ts +6 -0
- package/dist/src/resources/projects.js +8 -0
- package/dist/src/resources/recipe-create.d.ts +65 -0
- package/dist/src/resources/recipe-create.js +338 -0
- package/dist/src/resources/recipes.d.ts +28 -29
- package/dist/src/resources/recipes.js +126 -245
- package/dist/src/resources/saved-models.d.ts +10 -6
- package/dist/src/resources/saved-models.js +16 -14
- package/dist/src/resources/scenarios.js +8 -14
- package/dist/src/resources/streaming-endpoints.d.ts +12 -0
- package/dist/src/resources/streaming-endpoints.js +15 -0
- package/dist/src/resources/trained-model.d.ts +60 -0
- package/dist/src/resources/trained-model.js +98 -0
- package/dist/src/resources/webapps.d.ts +8 -0
- package/dist/src/resources/webapps.js +10 -0
- package/dist/src/resources/wiki.d.ts +5 -0
- package/dist/src/resources/wiki.js +7 -0
- package/dist/src/resources/workspaces.d.ts +2 -0
- package/dist/src/resources/workspaces.js +4 -0
- package/dist/src/utils/response-file.js +20 -9
- package/dist/src/utils/secret-sanitize.d.ts +7 -0
- package/dist/src/utils/secret-sanitize.js +46 -0
- package/package.json +25 -26
- package/plugin.json +1 -1
- package/skills/dataiku-dss/SKILL.md +1 -1
- package/skills/dataiku-dss/references/authentication.md +3 -1
- package/skills/dataiku-dss/references/coding.md +1 -0
- package/skills/dataiku-dss/references/discovery.md +4 -6
- package/skills/dataiku-dss/references/troubleshooting.md +3 -2
|
@@ -117,4 +117,26 @@ export const wikiCommands = withUsage("wiki", {
|
|
|
117
117
|
description: "Delete a wiki article.",
|
|
118
118
|
examples: ["dss wiki delete ARTICLE_ID --dry-run",],
|
|
119
119
|
},
|
|
120
|
+
"update-settings": {
|
|
121
|
+
handler: async (c, _a, f) => {
|
|
122
|
+
const pk = f["project-key"];
|
|
123
|
+
const settings = jsonInput(f);
|
|
124
|
+
if (!settings) {
|
|
125
|
+
throw new UsageError("--data, --data-file, or --stdin is required.", "missing_required_flag");
|
|
126
|
+
}
|
|
127
|
+
if (executionMode(f).dryRun) {
|
|
128
|
+
return {
|
|
129
|
+
dryRun: true,
|
|
130
|
+
action: "update-settings",
|
|
131
|
+
resource: "wiki",
|
|
132
|
+
current: await c.wiki.settings(pk),
|
|
133
|
+
next: settings,
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
await c.wiki.updateSettings(settings, pk);
|
|
137
|
+
return { updated: "wiki", resource: "wiki", };
|
|
138
|
+
},
|
|
139
|
+
description: "Replace the wiki properties (home article id and taxonomy tree) with an object from dss wiki settings, edited.",
|
|
140
|
+
examples: ["dss wiki update-settings --data-file wiki.json --dry-run",],
|
|
141
|
+
},
|
|
120
142
|
});
|
|
@@ -59,4 +59,12 @@ export const workspaceCommands = withUsage("workspace", {
|
|
|
59
59
|
description: "Add an object (link or DSS object) to a workspace.",
|
|
60
60
|
examples: ["dss workspace add-object MY_WS --data-file object.json",],
|
|
61
61
|
},
|
|
62
|
+
"remove-object": {
|
|
63
|
+
handler: async (c, a) => {
|
|
64
|
+
await c.workspaces.removeObject(a[0], a[1]);
|
|
65
|
+
return { removed: a[1], resource: "workspace", workspace: a[0], };
|
|
66
|
+
},
|
|
67
|
+
description: "Remove an object from a workspace by its workspace object id (see list-objects).",
|
|
68
|
+
examples: ["dss workspace remove-object MY_WORKSPACE abcd1234",],
|
|
69
|
+
},
|
|
62
70
|
});
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type CommandInputContract, type CommandPositionalMetadata } from "./syntax.js";
|
|
2
2
|
import type { CommandFlagChoice, CommandMeta, CommandPayloadSchema } from "./types.js";
|
|
3
|
+
export declare function splitPackageSpec(raw: string): string[];
|
|
3
4
|
export declare const AUTH_ACTIONS: Record<string, {
|
|
4
5
|
handler: (flags: Record<string, string | boolean>) => Promise<unknown>;
|
|
5
6
|
description?: string;
|
|
@@ -35,8 +36,7 @@ export interface CommandRequiredInputGroup {
|
|
|
35
36
|
oneOf: CommandRequiredInputAlternative[];
|
|
36
37
|
}
|
|
37
38
|
export interface CommandStructuredExample {
|
|
38
|
-
|
|
39
|
-
argv?: string[];
|
|
39
|
+
argv: string[];
|
|
40
40
|
payload?: unknown;
|
|
41
41
|
}
|
|
42
42
|
export interface CommandUnsafeOutput {
|
|
@@ -58,7 +58,6 @@ export interface CommandRegistryEntry {
|
|
|
58
58
|
examples?: string[];
|
|
59
59
|
structuredExamples: CommandStructuredExample[];
|
|
60
60
|
flags: CommandFlagMetadata[];
|
|
61
|
-
positionals: string[];
|
|
62
61
|
positionalArguments: CommandPositionalMetadata[];
|
|
63
62
|
sideEffect: CommandSideEffect;
|
|
64
63
|
requiresAuth: boolean;
|
|
@@ -92,22 +91,24 @@ export declare function isAllowedCleanupAction(resource: string, action: string)
|
|
|
92
91
|
export declare function buildCommandSchemas(resource: string, action: string, flags: CommandFlagMetadata[], requiredFlags: string[], requiredOneOf: CommandFlagChoice[], payloadSchema: CommandPayloadSchema | undefined, outputShape: CommandOutputShape, usage: string): CommandAgentSchemas;
|
|
93
92
|
export declare function supportsCleanupLedger(resource: string, action: string): boolean;
|
|
94
93
|
export declare function inferCleanupHint(resource: string, action: string): string | undefined;
|
|
94
|
+
export declare function buildRegistryEntry(resource: string, action: string, meta: CommandMeta): CommandRegistryEntry;
|
|
95
95
|
export declare function buildCommandRegistry(resourceFilter?: string): Record<string, Record<string, CommandRegistryEntry>>;
|
|
96
|
+
export interface CommandSearchMatch {
|
|
97
|
+
id: string;
|
|
98
|
+
usage: string;
|
|
99
|
+
description: string;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Find actions by concept: every query word of three or more letters is
|
|
103
|
+
* matched (case-insensitively, trailing plural `s` ignored) against the action
|
|
104
|
+
* id, usage, and description. When some actions match every word, only those
|
|
105
|
+
* are returned; otherwise actions matching more words rank first. Matches in
|
|
106
|
+
* the id break ties. Reads command definitions only, never builds entries.
|
|
107
|
+
*/
|
|
108
|
+
export declare function searchCommands(query: string): CommandSearchMatch[];
|
|
96
109
|
export declare function agentContractJsonSchema(): Record<string, unknown>;
|
|
97
110
|
export declare function commandActionSummary(): Record<string, string[]>;
|
|
98
111
|
export declare function buildAgentContract(): Record<string, unknown>;
|
|
99
|
-
export declare function commandPlanShape(resource: string, action: string, args: string[], flags: Record<string, string | boolean>, entry: CommandRegistryEntry, projectKey: string | undefined): {
|
|
100
|
-
endpoint?: string;
|
|
101
|
-
exact?: boolean;
|
|
102
|
-
identifiers?: Record<string, unknown>;
|
|
103
|
-
method?: string;
|
|
104
|
-
payload?: unknown;
|
|
105
|
-
localWrites?: unknown;
|
|
106
|
-
reason?: string;
|
|
107
|
-
wait?: unknown;
|
|
108
|
-
requests?: unknown;
|
|
109
|
-
};
|
|
110
|
-
export declare function buildMutationPlan(resource: string, action: string, meta: CommandMeta, args: string[], flags: Record<string, string | boolean>): Record<string, unknown>;
|
|
111
112
|
/**
|
|
112
113
|
* Batch plans may surface exit 4: any dispatched step can be a long-running
|
|
113
114
|
* lifecycle command whose remote work fails, or a synchronous assertion
|