dataiku-sdk 0.12.7 → 1.0.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.
Files changed (51) hide show
  1. package/README.md +60 -14
  2. package/bin/dss.js +1 -1
  3. package/dist/packages/types/src/index.d.ts +128 -3
  4. package/dist/packages/types/src/index.js +106 -3
  5. package/dist/src/cli/coerce.d.ts +2 -1
  6. package/dist/src/cli/coerce.js +84 -26
  7. package/dist/src/cli/commands/app.js +6 -6
  8. package/dist/src/cli/commands/code.js +2 -2
  9. package/dist/src/cli/commands/data-quality.js +8 -8
  10. package/dist/src/cli/commands/dataset.js +11 -7
  11. package/dist/src/cli/commands/folder.js +5 -4
  12. package/dist/src/cli/commands/future.js +2 -2
  13. package/dist/src/cli/commands/index.js +2 -0
  14. package/dist/src/cli/commands/job.js +11 -11
  15. package/dist/src/cli/commands/notebook.js +1 -1
  16. package/dist/src/cli/commands/project-git.d.ts +2 -0
  17. package/dist/src/cli/commands/project-git.js +563 -0
  18. package/dist/src/cli/commands/project.js +2 -2
  19. package/dist/src/cli/commands/recipe.js +14 -17
  20. package/dist/src/cli/commands/scenario.js +4 -4
  21. package/dist/src/cli/contract.d.ts +5 -4
  22. package/dist/src/cli/contract.js +413 -55
  23. package/dist/src/cli/doctor.js +6 -6
  24. package/dist/src/cli/flags.js +21 -2
  25. package/dist/src/cli/helpers/dataset.js +1 -1
  26. package/dist/src/cli/output.d.ts +2 -1
  27. package/dist/src/cli/output.js +2 -6
  28. package/dist/src/cli/usage.d.ts +1 -1
  29. package/dist/src/cli/usage.js +2 -1
  30. package/dist/src/cli/version.d.ts +2 -2
  31. package/dist/src/cli/version.js +2 -2
  32. package/dist/src/cli.js +43 -26
  33. package/dist/src/client.d.ts +3 -0
  34. package/dist/src/client.js +5 -0
  35. package/dist/src/errors.d.ts +1 -1
  36. package/dist/src/index.d.ts +3 -2
  37. package/dist/src/index.js +2 -1
  38. package/dist/src/resources/connections.d.ts +3 -1
  39. package/dist/src/resources/connections.js +82 -21
  40. package/dist/src/resources/datasets.js +42 -2
  41. package/dist/src/resources/folders.js +7 -3
  42. package/dist/src/resources/project-git.d.ts +154 -0
  43. package/dist/src/resources/project-git.js +427 -0
  44. package/dist/src/resources/recipes.js +4 -4
  45. package/dist/src/schemas.d.ts +2 -2
  46. package/dist/src/schemas.js +1 -1
  47. package/package.json +1 -1
  48. package/packages/types/dist/index.d.ts +128 -3
  49. package/packages/types/dist/index.js +106 -3
  50. package/plugin.json +1 -1
  51. package/skills/dataiku-dss/SKILL.md +26 -19
@@ -23,8 +23,8 @@ export const scenarioCommands = {
23
23
  requireArgs(a, 1, "dss scenario run <id>");
24
24
  const pk = f["project-key"];
25
25
  const options = {
26
- pollIntervalMs: num(f["poll-interval"]),
27
- timeoutMs: num(f["timeout"]),
26
+ pollIntervalMs: num(f["poll-interval"], "--poll-interval"),
27
+ timeoutMs: num(f["timeout"], "--timeout"),
28
28
  };
29
29
  if (f["dry-run"] === true) {
30
30
  return {
@@ -51,8 +51,8 @@ export const scenarioCommands = {
51
51
  requireArgs(a, 1, "dss scenario run-and-wait <id>");
52
52
  const pk = f["project-key"];
53
53
  const options = {
54
- pollIntervalMs: num(f["poll-interval"]),
55
- timeoutMs: num(f["timeout"]),
54
+ pollIntervalMs: num(f["poll-interval"], "--poll-interval"),
55
+ timeoutMs: num(f["timeout"], "--timeout"),
56
56
  };
57
57
  if (f["dry-run"] === true) {
58
58
  return {
@@ -39,7 +39,7 @@ export interface CommandStructuredExample {
39
39
  }
40
40
  export interface CommandUnsafeOutput {
41
41
  condition: string;
42
- kind: "raw-stdout" | "local-file";
42
+ kind: "local-file";
43
43
  detail: string;
44
44
  safeAlternative?: string;
45
45
  }
@@ -80,18 +80,19 @@ export interface CommandRegistryEntry {
80
80
  cleanupHint?: string;
81
81
  agentContractVersion: number;
82
82
  }
83
- export declare const COMMANDS_USAGE = "dss commands run [--fields PATHS] [--json]";
83
+ export declare const COMMANDS_USAGE = "dss commands run [--fields PATHS] [--output PATH]";
84
84
  export declare const AGENT_CONTRACT_COMMAND = "dss agent contract";
85
- export declare const AGENT_CONTRACT_USAGE = "dss agent contract [--fields PATHS] [--json]";
85
+ export declare const AGENT_CONTRACT_USAGE = "dss agent contract [--fields PATHS]";
86
86
  export declare const CLEANUP_USAGE = "dss cleanup --file PATH [--dry-run|--apply] [--continue-on-error]";
87
87
  export declare function isAllowedCleanupAction(resource: string, action: string): boolean;
88
88
  export declare function buildCommandSchemas(resource: string, action: string, flags: CommandFlagMetadata[], requiredFlags: string[], requiredOneOf: CommandFlagChoice[], payloadSchema: CommandPayloadSchema | undefined, outputShape: CommandOutputShape, usage: string): CommandAgentSchemas;
89
- export declare function inferRequiresProject(resource: string, _action: string, usage: string): boolean;
89
+ export declare function inferRequiresProject(resource: string, action: string, usage: string): boolean;
90
90
  export declare function inferInputContract(usage: string): CommandInputContract;
91
91
  export declare function supportsCleanupLedger(resource: string, action: string): boolean;
92
92
  export declare function inferCleanupHint(resource: string, action: string): string | undefined;
93
93
  export declare function buildCommandRegistry(): Record<string, Record<string, CommandRegistryEntry>>;
94
94
  export declare function agentContractJsonSchema(): Record<string, unknown>;
95
+ export declare function commandActionSummary(registry: Record<string, Record<string, CommandRegistryEntry>>): Record<string, string[]>;
95
96
  export declare function buildAgentContract(): Record<string, unknown>;
96
97
  export declare function commandPlanShape(resource: string, action: string, args: string[], flags: Record<string, string | boolean>, entry: CommandRegistryEntry, projectKey: string | undefined): {
97
98
  endpoint?: string;