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.
Files changed (127) hide show
  1. package/README.md +14 -6
  2. package/bin/bun-version.js +14 -0
  3. package/bin/dss.js +11 -15
  4. package/dist/build-metadata.json +1 -1
  5. package/dist/packages/types/src/index.d.ts +74 -1
  6. package/dist/packages/types/src/index.js +53 -1
  7. package/dist/src/cli/coerce.d.ts +1 -0
  8. package/dist/src/cli/coerce.js +19 -15
  9. package/dist/src/cli/command-syntax.json +3521 -416
  10. package/dist/src/cli/commands/analysis.js +19 -1
  11. package/dist/src/cli/commands/bundle.js +22 -0
  12. package/dist/src/cli/commands/connection.js +26 -2
  13. package/dist/src/cli/commands/data-quality.js +33 -1
  14. package/dist/src/cli/commands/dataset.js +35 -4
  15. package/dist/src/cli/commands/discussion.js +15 -0
  16. package/dist/src/cli/commands/doctor.js +1 -1
  17. package/dist/src/cli/commands/flow.d.ts +5 -0
  18. package/dist/src/cli/commands/flow.js +57 -0
  19. package/dist/src/cli/commands/future.js +8 -0
  20. package/dist/src/cli/commands/index.js +6 -0
  21. package/dist/src/cli/commands/job.js +29 -6
  22. package/dist/src/cli/commands/metrics.js +21 -1
  23. package/dist/src/cli/commands/ml-task.d.ts +5 -0
  24. package/dist/src/cli/commands/ml-task.js +86 -16
  25. package/dist/src/cli/commands/mlflow.d.ts +11 -0
  26. package/dist/src/cli/commands/mlflow.js +121 -0
  27. package/dist/src/cli/commands/plugin.js +5 -11
  28. package/dist/src/cli/commands/project-deployer.js +70 -0
  29. package/dist/src/cli/commands/project-library.js +2 -5
  30. package/dist/src/cli/commands/project.js +8 -0
  31. package/dist/src/cli/commands/recipe.d.ts +9 -0
  32. package/dist/src/cli/commands/recipe.js +93 -7
  33. package/dist/src/cli/commands/saved-model.d.ts +1 -1
  34. package/dist/src/cli/commands/saved-model.js +9 -76
  35. package/dist/src/cli/commands/streaming-endpoint.js +30 -1
  36. package/dist/src/cli/commands/webapp.js +8 -0
  37. package/dist/src/cli/commands/wiki.js +22 -0
  38. package/dist/src/cli/commands/workspace.js +8 -0
  39. package/dist/src/cli/contract.d.ts +16 -15
  40. package/dist/src/cli/contract.js +139 -3404
  41. package/dist/src/cli/doctor.d.ts +13 -0
  42. package/dist/src/cli/doctor.js +41 -1
  43. package/dist/src/cli/flags.d.ts +7 -1
  44. package/dist/src/cli/flags.js +78 -6
  45. package/dist/src/cli/helpers/app-successor.js +1 -2
  46. package/dist/src/cli/helpers/documentation.d.ts +21 -0
  47. package/dist/src/cli/helpers/documentation.js +53 -0
  48. package/dist/src/cli/helpers/trained-model.d.ts +26 -0
  49. package/dist/src/cli/helpers/trained-model.js +144 -0
  50. package/dist/src/cli/list-output.d.ts +7 -0
  51. package/dist/src/cli/list-output.js +77 -0
  52. package/dist/src/cli/list-shapes.d.ts +21 -0
  53. package/dist/src/cli/list-shapes.js +111 -0
  54. package/dist/src/cli/output-schemas.d.ts +0 -14
  55. package/dist/src/cli/output-schemas.js +4 -7
  56. package/dist/src/cli/output.d.ts +0 -1
  57. package/dist/src/cli/output.js +27 -19
  58. package/dist/src/cli/plans.d.ts +14 -0
  59. package/dist/src/cli/plans.js +3684 -0
  60. package/dist/src/cli/usage.d.ts +7 -0
  61. package/dist/src/cli/usage.js +20 -1
  62. package/dist/src/cli/version.d.ts +2 -2
  63. package/dist/src/cli/version.js +2 -2
  64. package/dist/src/cli.js +127 -113
  65. package/dist/src/client.d.ts +52 -43
  66. package/dist/src/client.js +267 -96
  67. package/dist/src/errors.d.ts +11 -1
  68. package/dist/src/errors.js +31 -47
  69. package/dist/src/generated/action-output-schemas.json +345 -89
  70. package/dist/src/index.d.ts +5 -1
  71. package/dist/src/index.js +3 -0
  72. package/dist/src/resources/analyses.d.ts +8 -0
  73. package/dist/src/resources/analyses.js +13 -1
  74. package/dist/src/resources/bundles.d.ts +34 -0
  75. package/dist/src/resources/bundles.js +67 -0
  76. package/dist/src/resources/connections.d.ts +9 -0
  77. package/dist/src/resources/connections.js +15 -0
  78. package/dist/src/resources/data-quality.d.ts +20 -0
  79. package/dist/src/resources/data-quality.js +30 -0
  80. package/dist/src/resources/dataset-create.d.ts +19 -0
  81. package/dist/src/resources/dataset-create.js +66 -0
  82. package/dist/src/resources/datasets.d.ts +25 -15
  83. package/dist/src/resources/datasets.js +59 -111
  84. package/dist/src/resources/discussions.d.ts +5 -0
  85. package/dist/src/resources/discussions.js +7 -0
  86. package/dist/src/resources/documentation.d.ts +25 -0
  87. package/dist/src/resources/documentation.js +16 -0
  88. package/dist/src/resources/flow.d.ts +48 -0
  89. package/dist/src/resources/flow.js +65 -0
  90. package/dist/src/resources/futures.d.ts +23 -0
  91. package/dist/src/resources/futures.js +32 -0
  92. package/dist/src/resources/jobs.js +102 -2
  93. package/dist/src/resources/metrics.d.ts +10 -0
  94. package/dist/src/resources/metrics.js +10 -0
  95. package/dist/src/resources/ml-tasks.d.ts +65 -2
  96. package/dist/src/resources/ml-tasks.js +102 -28
  97. package/dist/src/resources/mlflow-extension.d.ts +73 -0
  98. package/dist/src/resources/mlflow-extension.js +105 -0
  99. package/dist/src/resources/projects.d.ts +6 -0
  100. package/dist/src/resources/projects.js +8 -0
  101. package/dist/src/resources/recipe-create.d.ts +65 -0
  102. package/dist/src/resources/recipe-create.js +338 -0
  103. package/dist/src/resources/recipes.d.ts +28 -29
  104. package/dist/src/resources/recipes.js +126 -245
  105. package/dist/src/resources/saved-models.d.ts +10 -6
  106. package/dist/src/resources/saved-models.js +16 -14
  107. package/dist/src/resources/scenarios.js +8 -14
  108. package/dist/src/resources/streaming-endpoints.d.ts +12 -0
  109. package/dist/src/resources/streaming-endpoints.js +15 -0
  110. package/dist/src/resources/trained-model.d.ts +60 -0
  111. package/dist/src/resources/trained-model.js +98 -0
  112. package/dist/src/resources/webapps.d.ts +8 -0
  113. package/dist/src/resources/webapps.js +10 -0
  114. package/dist/src/resources/wiki.d.ts +5 -0
  115. package/dist/src/resources/wiki.js +7 -0
  116. package/dist/src/resources/workspaces.d.ts +2 -0
  117. package/dist/src/resources/workspaces.js +4 -0
  118. package/dist/src/utils/response-file.js +20 -9
  119. package/dist/src/utils/secret-sanitize.d.ts +7 -0
  120. package/dist/src/utils/secret-sanitize.js +46 -0
  121. package/package.json +25 -26
  122. package/plugin.json +1 -1
  123. package/skills/dataiku-dss/SKILL.md +1 -1
  124. package/skills/dataiku-dss/references/authentication.md +3 -1
  125. package/skills/dataiku-dss/references/coding.md +1 -0
  126. package/skills/dataiku-dss/references/discovery.md +4 -6
  127. 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
- shell: string;
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