dataiku-sdk 4.0.0 → 4.2.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 (66) hide show
  1. package/README.md +1 -0
  2. package/dist/build-metadata.json +1 -1
  3. package/dist/packages/types/src/index.d.ts +5 -1
  4. package/dist/packages/types/src/index.js +5 -1
  5. package/dist/src/cli/command-syntax.json +4136 -2756
  6. package/dist/src/cli/commands/code-env.js +5 -3
  7. package/dist/src/cli/commands/dataset.js +6 -4
  8. package/dist/src/cli/commands/future.js +7 -2
  9. package/dist/src/cli/commands/index.js +4 -0
  10. package/dist/src/cli/commands/job.js +12 -9
  11. package/dist/src/cli/commands/messaging-channel.d.ts +17 -0
  12. package/dist/src/cli/commands/messaging-channel.js +385 -0
  13. package/dist/src/cli/commands/project-deployer.js +33 -0
  14. package/dist/src/cli/commands/project.js +30 -0
  15. package/dist/src/cli/commands/recipe.js +23 -2
  16. package/dist/src/cli/commands/scenario.d.ts +6 -0
  17. package/dist/src/cli/commands/scenario.js +495 -17
  18. package/dist/src/cli/contract.js +20 -4
  19. package/dist/src/cli/env.d.ts +6 -0
  20. package/dist/src/cli/env.js +8 -0
  21. package/dist/src/cli/flags.js +34 -0
  22. package/dist/src/cli/helpers/cleanup.js +11 -0
  23. package/dist/src/cli/list-shapes.js +5 -0
  24. package/dist/src/cli/output.d.ts +2 -0
  25. package/dist/src/cli/output.js +24 -4
  26. package/dist/src/cli/plans.js +94 -2
  27. package/dist/src/cli/read-shapes.js +92 -1
  28. package/dist/src/cli/result-shapes.d.ts +19 -1
  29. package/dist/src/cli/result-shapes.js +228 -4
  30. package/dist/src/cli/selector-suggestions.d.ts +14 -0
  31. package/dist/src/cli/selector-suggestions.js +56 -0
  32. package/dist/src/cli/usage.d.ts +1 -1
  33. package/dist/src/cli/usage.js +36 -4
  34. package/dist/src/cli/version.d.ts +2 -2
  35. package/dist/src/cli/version.js +2 -2
  36. package/dist/src/cli.js +62 -13
  37. package/dist/src/client.d.ts +16 -4
  38. package/dist/src/client.js +45 -9
  39. package/dist/src/errors.d.ts +2 -0
  40. package/dist/src/errors.js +12 -2
  41. package/dist/src/generated/action-output-schemas.json +296 -0
  42. package/dist/src/index.d.ts +1 -0
  43. package/dist/src/index.js +1 -0
  44. package/dist/src/resources/bundles.d.ts +18 -0
  45. package/dist/src/resources/bundles.js +26 -0
  46. package/dist/src/resources/futures.d.ts +3 -0
  47. package/dist/src/resources/futures.js +5 -1
  48. package/dist/src/resources/messaging-channels.d.ts +83 -0
  49. package/dist/src/resources/messaging-channels.js +108 -0
  50. package/dist/src/resources/projects.d.ts +24 -0
  51. package/dist/src/resources/projects.js +36 -0
  52. package/dist/src/resources/recipe-create.d.ts +4 -1
  53. package/dist/src/resources/recipe-create.js +11 -2
  54. package/dist/src/resources/scenario-authoring.d.ts +52 -0
  55. package/dist/src/resources/scenario-authoring.js +216 -0
  56. package/dist/src/resources/scenarios.d.ts +128 -11
  57. package/dist/src/resources/scenarios.js +273 -43
  58. package/dist/src/resources/sql.js +3 -3
  59. package/dist/src/utils/messaging-channel-secrets.d.ts +17 -0
  60. package/dist/src/utils/messaging-channel-secrets.js +114 -0
  61. package/package.json +2 -1
  62. package/plugin.json +1 -1
  63. package/skills/dataiku-dss/SKILL.md +15 -16
  64. package/skills/dataiku-dss/references/discovery.md +2 -2
  65. package/skills/dataiku-dss/references/notifications.md +29 -0
  66. package/skills/dataiku-dss/references/troubleshooting.md +1 -0
package/README.md CHANGED
@@ -291,6 +291,7 @@ Use environment variables for ephemeral runs. For disposable agent tests, set `D
291
291
  Credential precedence is flags first, then `DATAIKU_*` environment variables, then saved credentials in `DSS_CONFIG_DIR` or the platform config directory.
292
292
  Set `DATAIKU_DISABLE_ENV=1` when a test must ignore both `.env` files and `DATAIKU_*` environment variables.
293
293
  When `.env` loading is enabled, the CLI reads `.env` from the CLI build/root directory and from the command's current working directory; put test-specific `.env` files in the directory where you invoke `dss`. Only `DATAIKU_*`, `NODE_TLS_REJECT_UNAUTHORIZED`, and `NODE_EXTRA_CA_CERTS` are read from `.env`; other keys are ignored.
294
+ Set `DSS_PRETTY=1` to indent stdout JSON (still one JSON value). Use it when the shell or agent harness cuts long lines (omp's bash tool cuts each line at 768 bytes), so a one-line result is not truncated. It is read from the process environment only, not from `.env`.
294
295
 
295
296
  POSIX shell:
296
297
 
@@ -1 +1 @@
1
- {"format":1,"buildRevision":"ab176cb1de853bfbdc58627b38a131ce1fc1681d"}
1
+ {"format":1,"buildRevision":"0a9c498cd629569fe77883dd3f4fb1abae25c23d"}
@@ -286,8 +286,10 @@ export declare const JobWaitResultSchema: import("@sinclair/typebox").TObject<{
286
286
  timedOut: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
287
287
  /** Present on a wait timeout: the wait never cancels the job, so this is `false`. */
288
288
  cancelled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
289
- /** CLI only, on a wait timeout: the command that resumes waiting for the still-running job. */
289
+ /** CLI only, on a wait timeout: POSIX display form of the command that resumes waiting for the still-running job. */
290
290
  resume: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
291
+ /** CLI only, on a wait timeout: the resume command as argv, runnable without a shell on any OS. */
292
+ resumeArgv: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
291
293
  progress: import("@sinclair/typebox").TObject<{
292
294
  done: import("@sinclair/typebox").TNumber;
293
295
  failed: import("@sinclair/typebox").TNumber;
@@ -387,6 +389,8 @@ export declare const ScenarioWaitResultSchema: import("@sinclair/typebox").TObje
387
389
  elapsedMs: import("@sinclair/typebox").TNumber;
388
390
  pollCount: import("@sinclair/typebox").TNumber;
389
391
  timedOut: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
392
+ /** DSS cancelled the trigger fire (the scenario was already running): no scenario run exists. */
393
+ cancelled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
390
394
  triggerRunId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
391
395
  steps: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
392
396
  name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
@@ -310,8 +310,10 @@ export const JobWaitResultSchema = Type.Object({
310
310
  timedOut: Type.Optional(Type.Boolean()),
311
311
  /** Present on a wait timeout: the wait never cancels the job, so this is `false`. */
312
312
  cancelled: Type.Optional(Type.Boolean()),
313
- /** CLI only, on a wait timeout: the command that resumes waiting for the still-running job. */
313
+ /** CLI only, on a wait timeout: POSIX display form of the command that resumes waiting for the still-running job. */
314
314
  resume: Type.Optional(Type.String()),
315
+ /** CLI only, on a wait timeout: the resume command as argv, runnable without a shell on any OS. */
316
+ resumeArgv: Type.Optional(Type.Array(Type.String())),
315
317
  progress: Type.Object({
316
318
  done: Type.Number(),
317
319
  failed: Type.Number(),
@@ -411,6 +413,8 @@ export const ScenarioWaitResultSchema = Type.Object({
411
413
  elapsedMs: Type.Number(),
412
414
  pollCount: Type.Number(),
413
415
  timedOut: Type.Optional(Type.Boolean()),
416
+ /** DSS cancelled the trigger fire (the scenario was already running): no scenario run exists. */
417
+ cancelled: Type.Optional(Type.Boolean()),
414
418
  triggerRunId: Type.Optional(Type.String()),
415
419
  steps: Type.Optional(Type.Array(ScenarioStepRunSchema)),
416
420
  });