dataiku-sdk 2.0.0 → 3.1.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/LICENSE +107 -17
- package/README.md +144 -17
- package/dist/build-metadata.json +1 -1
- package/dist/packages/types/src/index.d.ts +39 -4
- package/dist/packages/types/src/index.js +31 -2
- package/dist/src/cli/commands/api-service.js +62 -16
- package/dist/src/cli/commands/bundle.js +49 -15
- package/dist/src/cli/commands/code-env.js +210 -49
- package/dist/src/cli/commands/code.d.ts +19 -0
- package/dist/src/cli/commands/code.js +87 -15
- package/dist/src/cli/commands/dataset.js +8 -3
- package/dist/src/cli/commands/flow-zone.js +33 -5
- package/dist/src/cli/commands/notebook.js +72 -41
- package/dist/src/cli/commands/project-git.js +8 -5
- package/dist/src/cli/commands/project-library.d.ts +21 -0
- package/dist/src/cli/commands/project-library.js +121 -50
- package/dist/src/cli/commands/project.js +16 -2
- package/dist/src/cli/commands/recipe.js +37 -12
- package/dist/src/cli/commands/sql.d.ts +10 -0
- package/dist/src/cli/commands/sql.js +39 -17
- package/dist/src/cli/commands/webapp.js +67 -13
- package/dist/src/cli/contract.d.ts +15 -0
- package/dist/src/cli/contract.js +870 -107
- package/dist/src/cli/env.d.ts +9 -0
- package/dist/src/cli/env.js +20 -2
- package/dist/src/cli/flags.js +9 -0
- package/dist/src/cli/helpers/cleanup.js +104 -3
- package/dist/src/cli/helpers/flow-zone.d.ts +3 -0
- package/dist/src/cli/helpers/flow-zone.js +33 -3
- package/dist/src/cli/helpers/recipe.d.ts +20 -0
- package/dist/src/cli/helpers/recipe.js +158 -3
- package/dist/src/cli/output.d.ts +2 -0
- package/dist/src/cli/output.js +33 -6
- package/dist/src/cli/runtime.d.ts +35 -1
- package/dist/src/cli/runtime.js +125 -18
- package/dist/src/cli/types.d.ts +7 -0
- package/dist/src/cli.js +135 -28
- package/dist/src/client.d.ts +60 -0
- package/dist/src/client.js +237 -42
- package/dist/src/errors.d.ts +8 -2
- package/dist/src/errors.js +40 -0
- package/dist/src/index.d.ts +4 -3
- package/dist/src/index.js +2 -1
- package/dist/src/resources/api-services.d.ts +48 -6
- package/dist/src/resources/api-services.js +54 -8
- package/dist/src/resources/bundles.d.ts +51 -6
- package/dist/src/resources/bundles.js +39 -9
- package/dist/src/resources/code-envs.d.ts +25 -3
- package/dist/src/resources/code-envs.js +104 -2
- package/dist/src/resources/datasets.d.ts +20 -0
- package/dist/src/resources/datasets.js +232 -52
- package/dist/src/resources/jobs.d.ts +35 -10
- package/dist/src/resources/jobs.js +92 -17
- package/dist/src/resources/notebooks.d.ts +77 -7
- package/dist/src/resources/notebooks.js +143 -19
- package/dist/src/resources/project-git.d.ts +12 -0
- package/dist/src/resources/project-git.js +39 -8
- package/dist/src/resources/project-library.d.ts +122 -7
- package/dist/src/resources/project-library.js +494 -25
- package/dist/src/resources/projects.d.ts +5 -2
- package/dist/src/resources/projects.js +18 -2
- package/dist/src/resources/scenarios.d.ts +30 -0
- package/dist/src/resources/scenarios.js +73 -27
- package/dist/src/resources/sql.d.ts +6 -0
- package/dist/src/resources/sql.js +22 -2
- package/dist/src/resources/webapps.d.ts +35 -4
- package/dist/src/resources/webapps.js +54 -5
- package/dist/src/schemas.d.ts +2 -2
- package/dist/src/schemas.js +1 -1
- package/dist/src/skill.d.ts +9 -0
- package/dist/src/skill.js +37 -4
- package/dist/src/utils/flow-analysis.d.ts +53 -0
- package/dist/src/utils/flow-analysis.js +382 -0
- package/dist/src/utils/project-archive.d.ts +41 -2
- package/dist/src/utils/project-archive.js +159 -16
- package/package.json +5 -5
- package/packages/types/dist/index.d.ts +39 -4
- package/packages/types/dist/index.js +31 -2
- package/plugin.json +2 -2
- package/skills/dataiku-dss/SKILL.md +75 -48
|
@@ -32,6 +32,17 @@ export type CommandFlagMetadata = {
|
|
|
32
32
|
aliases?: string[];
|
|
33
33
|
allowEmptyValue?: boolean;
|
|
34
34
|
};
|
|
35
|
+
export interface CommandPositionalMetadata {
|
|
36
|
+
name: string;
|
|
37
|
+
required: boolean;
|
|
38
|
+
}
|
|
39
|
+
export interface CommandRequiredInputAlternative {
|
|
40
|
+
flags?: string[];
|
|
41
|
+
positionals?: string[];
|
|
42
|
+
}
|
|
43
|
+
export interface CommandRequiredInputGroup {
|
|
44
|
+
oneOf: CommandRequiredInputAlternative[];
|
|
45
|
+
}
|
|
35
46
|
export interface CommandStructuredExample {
|
|
36
47
|
shell: string;
|
|
37
48
|
argv?: string[];
|
|
@@ -57,6 +68,7 @@ export interface CommandRegistryEntry {
|
|
|
57
68
|
structuredExamples: CommandStructuredExample[];
|
|
58
69
|
flags: CommandFlagMetadata[];
|
|
59
70
|
positionals: string[];
|
|
71
|
+
positionalArguments: CommandPositionalMetadata[];
|
|
60
72
|
sideEffect: CommandSideEffect;
|
|
61
73
|
requiresAuth: boolean;
|
|
62
74
|
requiresProject: boolean;
|
|
@@ -70,6 +82,7 @@ export interface CommandRegistryEntry {
|
|
|
70
82
|
dryRun: boolean;
|
|
71
83
|
requiredFlags: string[];
|
|
72
84
|
requiredOneOf?: CommandFlagChoice[];
|
|
85
|
+
requiredInputGroups?: CommandRequiredInputGroup[];
|
|
73
86
|
optionalFlags: string[];
|
|
74
87
|
payloadSchema?: CommandPayloadSchema;
|
|
75
88
|
schemas: CommandAgentSchemas;
|
|
@@ -96,10 +109,12 @@ export declare function commandActionSummary(registry: Record<string, Record<str
|
|
|
96
109
|
export declare function buildAgentContract(): Record<string, unknown>;
|
|
97
110
|
export declare function commandPlanShape(resource: string, action: string, args: string[], flags: Record<string, string | boolean>, entry: CommandRegistryEntry, projectKey: string | undefined): {
|
|
98
111
|
endpoint?: string;
|
|
112
|
+
exact?: boolean;
|
|
99
113
|
identifiers?: Record<string, unknown>;
|
|
100
114
|
method?: string;
|
|
101
115
|
payload?: unknown;
|
|
102
116
|
localWrites?: unknown;
|
|
117
|
+
reason?: string;
|
|
103
118
|
wait?: unknown;
|
|
104
119
|
requests?: unknown;
|
|
105
120
|
};
|