@xyne/workflow-sdk 3.2.19 → 3.2.21
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/agents/citation-resolve.d.ts +23 -12
- package/dist/agents/citation-resolve.d.ts.map +1 -1
- package/dist/agents/citation-resolve.js +125 -24
- package/dist/agents/citation-resolve.js.map +1 -1
- package/dist/builder/index.d.ts +2 -2
- package/dist/builder/index.d.ts.map +1 -1
- package/dist/builder/index.js +1 -1
- package/dist/builder/index.js.map +1 -1
- package/dist/common/citation-ref.d.ts +525 -11
- package/dist/common/citation-ref.d.ts.map +1 -1
- package/dist/common/citation-ref.js +105 -14
- package/dist/common/citation-ref.js.map +1 -1
- package/dist/common/expression-eval.d.ts +35 -0
- package/dist/common/expression-eval.d.ts.map +1 -0
- package/dist/common/expression-eval.js +214 -0
- package/dist/common/expression-eval.js.map +1 -0
- package/dist/common/index.d.ts +2 -2
- package/dist/common/index.d.ts.map +1 -1
- package/dist/common/index.js +1 -1
- package/dist/common/index.js.map +1 -1
- package/dist/common/principal.d.ts +45 -0
- package/dist/common/principal.d.ts.map +1 -0
- package/dist/common/principal.js +9 -0
- package/dist/common/principal.js.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/steps/builtin/transform.step.d.ts +247 -0
- package/dist/steps/builtin/transform.step.d.ts.map +1 -0
- package/dist/steps/builtin/transform.step.js +135 -0
- package/dist/steps/builtin/transform.step.js.map +1 -0
- package/dist/types/attachment.d.ts +23 -0
- package/dist/types/attachment.d.ts.map +1 -0
- package/dist/types/attachment.js +2 -0
- package/dist/types/attachment.js.map +1 -0
- package/dist/types/resume-payload.d.ts +34 -0
- package/dist/types/resume-payload.d.ts.map +1 -0
- package/dist/types/resume-payload.js +12 -0
- package/dist/types/resume-payload.js.map +1 -0
- package/dist/util/executable-check.d.ts +42 -0
- package/dist/util/executable-check.d.ts.map +1 -0
- package/dist/util/executable-check.js +115 -0
- package/dist/util/executable-check.js.map +1 -0
- package/package.json +1 -1
- package/dist/authz/principal-field.d.ts +0 -23
- package/dist/authz/principal-field.d.ts.map +0 -1
- package/dist/authz/principal-field.js +0 -34
- package/dist/authz/principal-field.js.map +0 -1
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Schema-authoring helpers for principal-reference fields (approval `assignee`,
|
|
3
|
-
* access grants). A field marked with one of these formats is rendered by the
|
|
4
|
-
* UI's host-supplied `PrincipalPicker` slot; the stored value is an opaque
|
|
5
|
-
* `{ kind, id }` reference the authorizer resolves. The SDK never interprets it.
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* JSON Schema `format` marker for a principal reference. Whether the field holds
|
|
9
|
-
* one principal or a list is the field's own `type` (`object` vs `array`) — the
|
|
10
|
-
* builder derives multi-select from that, so a single format marker suffices.
|
|
11
|
-
*/
|
|
12
|
-
export declare const PRINCIPAL_FORMAT = "principal";
|
|
13
|
-
/**
|
|
14
|
-
* Stamp `format: 'principal'` onto the named properties of a config JSON Schema,
|
|
15
|
-
* so the builder renders the host's `PrincipalPicker` for them. Works for both
|
|
16
|
-
* single (`type: 'object'`) and list (`type: 'array'`) fields — the author
|
|
17
|
-
* declares the type; this only adds the marker.
|
|
18
|
-
*
|
|
19
|
-
* Mirrors {@link markAttachmentFields}. Use it in a step's
|
|
20
|
-
* `decorateConfigSchema` for its `assignee`-style fields.
|
|
21
|
-
*/
|
|
22
|
-
export declare function markPrincipalFields(jsonSchema: Record<string, unknown>, fields: readonly string[]): Record<string, unknown>;
|
|
23
|
-
//# sourceMappingURL=principal-field.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"principal-field.d.ts","sourceRoot":"","sources":["../../src/authz/principal-field.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,cAAc,CAAC;AAE5C;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,MAAM,EAAE,SAAS,MAAM,EAAE,GACxB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAWzB"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Schema-authoring helpers for principal-reference fields (approval `assignee`,
|
|
3
|
-
* access grants). A field marked with one of these formats is rendered by the
|
|
4
|
-
* UI's host-supplied `PrincipalPicker` slot; the stored value is an opaque
|
|
5
|
-
* `{ kind, id }` reference the authorizer resolves. The SDK never interprets it.
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* JSON Schema `format` marker for a principal reference. Whether the field holds
|
|
9
|
-
* one principal or a list is the field's own `type` (`object` vs `array`) — the
|
|
10
|
-
* builder derives multi-select from that, so a single format marker suffices.
|
|
11
|
-
*/
|
|
12
|
-
export const PRINCIPAL_FORMAT = 'principal';
|
|
13
|
-
/**
|
|
14
|
-
* Stamp `format: 'principal'` onto the named properties of a config JSON Schema,
|
|
15
|
-
* so the builder renders the host's `PrincipalPicker` for them. Works for both
|
|
16
|
-
* single (`type: 'object'`) and list (`type: 'array'`) fields — the author
|
|
17
|
-
* declares the type; this only adds the marker.
|
|
18
|
-
*
|
|
19
|
-
* Mirrors {@link markAttachmentFields}. Use it in a step's
|
|
20
|
-
* `decorateConfigSchema` for its `assignee`-style fields.
|
|
21
|
-
*/
|
|
22
|
-
export function markPrincipalFields(jsonSchema, fields) {
|
|
23
|
-
const props = jsonSchema['properties'];
|
|
24
|
-
if (!props)
|
|
25
|
-
return jsonSchema;
|
|
26
|
-
for (const field of fields) {
|
|
27
|
-
const prop = props[field];
|
|
28
|
-
if (!prop)
|
|
29
|
-
continue;
|
|
30
|
-
props[field] = { ...prop, format: PRINCIPAL_FORMAT };
|
|
31
|
-
}
|
|
32
|
-
return jsonSchema;
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=principal-field.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"principal-field.js","sourceRoot":"","sources":["../../src/authz/principal-field.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,WAAW,CAAC;AAE5C;;;;;;;;GAQG;AACH,MAAM,UAAU,mBAAmB,CACjC,UAAmC,EACnC,MAAyB;IAEzB,MAAM,KAAK,GAAG,UAAU,CAAC,YAAY,CAExB,CAAC;IACd,IAAI,CAAC,KAAK;QAAE,OAAO,UAAU,CAAC;IAC9B,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAC3B,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC;QAC1B,IAAI,CAAC,IAAI;YAAE,SAAS;QACpB,KAAK,CAAC,KAAK,CAAC,GAAG,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,gBAAgB,EAAE,CAAC;IACvD,CAAC;IACD,OAAO,UAAU,CAAC;AACpB,CAAC"}
|