@diagonal-hq/cli 0.41.5 → 0.41.7

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/dist/index.d.ts CHANGED
@@ -91,6 +91,22 @@ export type UidOption = { uid?: DefinitionUid };
91
91
  */
92
92
  export type SlugOption = { slug?: DefinitionSlug };
93
93
 
94
+ export type PackageInputValue =
95
+ | null
96
+ | boolean
97
+ | number
98
+ | string
99
+ | readonly PackageInputValue[]
100
+ | { readonly [key: string]: PackageInputValue };
101
+
102
+ export type PackageInputChoices = {
103
+ readonly [key: `resource:${string}` | `role:${string}` | `permission:${string}`]: DefinitionUid;
104
+ readonly [key: `workspace_field:${string}`]:
105
+ | DefinitionUid
106
+ | { value: PackageInputValue }
107
+ | { secret: DefinitionUid | null };
108
+ };
109
+
94
110
  /**
95
111
  * The workspace config in `diagonal.config.ts`. Each deploy writes `name`,
96
112
  * `brand`, and `settings` to the workspace. Custom workspace fields are files
@@ -104,6 +120,8 @@ export type ConfigDefinition = {
104
120
  * `@app/generated/assets`, such as `Assets.WordmarkLight.key`.
105
121
  */
106
122
  brand?: BrandKit;
123
+ /** Destination choices for installed packages, by npm package name and input identity. */
124
+ packages?: { readonly [name: string]: PackageInputChoices };
107
125
  /**
108
126
  * The built-in workspace settings by their stored keys. Each
109
127
  * `custom_<status>_error_page` setting takes `Pages.<Name>.uid` from
@@ -2984,6 +2984,8 @@ type SdkWorkspace = {
2984
2984
  } | null;
2985
2985
 
2986
2986
  type SdkWorkspaceField = {
2987
+ /** A credential is saved. Its value is not needed to keep it unchanged. */
2988
+ has_stored_value?: boolean;
2987
2989
  id: string | null;
2988
2990
  key: string;
2989
2991
  type: string;
@@ -8887,7 +8889,8 @@ type SdkUseWorkspaceFieldsFormOptions = {
8887
8889
  /** Workspace field definitions to render, in order. Omit to render every field that is
8888
8890
  * not hidden and not read-only. Undefined, read-only, and hidden entries are dropped. */
8889
8891
  fields?: Array<SdkWorkspaceField | undefined>;
8890
- /** Editable seed values that override the workspace's current values. */
8892
+ /** Editable seed values that override the workspace's current values. Passwords are
8893
+ * omitted until changed; provide a string to replace one or null to clear it. */
8891
8894
  initialValues?: Record<string, any>;
8892
8895
  /** Locked values submitted even when omitted from `fields`; rendered disabled. Keys of
8893
8896
  * read-only or hidden definitions are dropped. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diagonal-hq/cli",
3
- "version": "0.41.5",
3
+ "version": "0.41.7",
4
4
  "description": "The diagonal CLI and the configuration helpers for file-based Diagonal workspaces.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {
@@ -51,8 +51,8 @@
51
51
  "bun": "1.4.4"
52
52
  },
53
53
  "optionalDependencies": {
54
- "@diagonal-hq/workflow-script-compiler-darwin-arm64": "0.1.0-h7a3d82a29750",
55
- "@diagonal-hq/workflow-script-compiler-linux-x64": "0.1.0-h7a3d82a29750",
56
- "@diagonal-hq/workflow-script-compiler-linux-arm64": "0.1.0-h7a3d82a29750"
54
+ "@diagonal-hq/workflow-script-compiler-darwin-arm64": "0.1.0-h5e67bbdc4685",
55
+ "@diagonal-hq/workflow-script-compiler-linux-x64": "0.1.0-h5e67bbdc4685",
56
+ "@diagonal-hq/workflow-script-compiler-linux-arm64": "0.1.0-h5e67bbdc4685"
57
57
  }
58
58
  }