@diagonal-hq/cli 0.1.0 → 0.3.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/README.md +214 -16
- package/dist/capabilities.generated.d.ts +397 -0
- package/dist/cli.mjs +14991 -1375
- package/dist/fields.generated.d.ts +416 -0
- package/dist/fields.generated.js +35 -0
- package/dist/index.d.ts +176 -77
- package/dist/index.js +10 -17
- package/dist/sdk-contract.d.ts +27 -5
- package/dist/workflow/data.d.ts +10 -0
- package/dist/workflow/generated/capabilities.d.ts +27 -26
- package/dist/workflow/notifications.d.ts +1 -1
- package/dist/workflow/workflow.d.ts +3 -1
- package/package.json +4 -1
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import type { ResourceKeyWith } from './data';
|
|
1
2
|
import type { ScriptHostContext } from './index';
|
|
2
3
|
import { type InferInput, type InputFieldSpec, type InputSchema, type InputShape } from './input';
|
|
3
4
|
export interface Identity {
|
|
4
5
|
id: string;
|
|
5
|
-
|
|
6
|
+
/** The identity's resource has the Authenticatable capability. */
|
|
7
|
+
resourceId: ResourceKeyWith<'authenticatable'>;
|
|
6
8
|
email: string | null;
|
|
7
9
|
name: string | null;
|
|
8
10
|
permissions: string[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@diagonal-hq/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
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": {
|
|
@@ -30,7 +30,10 @@
|
|
|
30
30
|
"bin/diagonal.mjs",
|
|
31
31
|
"dist/cli.mjs",
|
|
32
32
|
"dist/index.js",
|
|
33
|
+
"dist/fields.generated.js",
|
|
33
34
|
"dist/index.d.ts",
|
|
35
|
+
"dist/fields.generated.d.ts",
|
|
36
|
+
"dist/capabilities.generated.d.ts",
|
|
34
37
|
"dist/globals.d.ts",
|
|
35
38
|
"dist/sdk-contract.d.ts",
|
|
36
39
|
"dist/workflow",
|