@opencxh/domain 1.193.0 → 1.195.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/dist/entities/ai-message/types.d.ts +13 -0
- package/dist/entities/playbook/trust.test.d.ts +1 -0
- package/dist/entities/playbook/types.d.ts +40 -5
- package/dist/entities/work/types.d.ts +11 -0
- package/dist/index.cjs +6 -6
- package/dist/index.js +522 -508
- package/dist/platform/assist-source.d.ts +6 -0
- package/dist/platform/resource-source.d.ts +16 -0
- package/package.json +1 -1
|
@@ -50,6 +50,12 @@ export interface AssistNudge extends AssistRanked {
|
|
|
50
50
|
* Handed {@link AssistCardProps}. Absent = the queue falls back to `text` plus a button to `url`.
|
|
51
51
|
*/
|
|
52
52
|
resource?: string;
|
|
53
|
+
/**
|
|
54
|
+
* The body carries a send action that Cmd/Ctrl+Enter fires from its composer. Declared by the
|
|
55
|
+
* source, not inferred from `resource`: the queue used to key this on one app's component name,
|
|
56
|
+
* so every other source got a keyboard map with a hole in it.
|
|
57
|
+
*/
|
|
58
|
+
primaryAction?: boolean;
|
|
53
59
|
}
|
|
54
60
|
/** What a nudge's federated body receives. */
|
|
55
61
|
export interface AssistCardProps {
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
* | `resources.describe` | — | {@link ResourceSourceDescribe} |
|
|
20
20
|
* | `resources.search` | {@link ResourceSearchParams} | {@link ResourceSummary}`[]` |
|
|
21
21
|
* | `resources.resolve` | {@link ResourceResolveParams} | {@link ResourceSummary}`[]` |
|
|
22
|
+
* | `resources.attached` | {@link ResourceAttachedParams} | {@link ResourceSummary}`[]` |
|
|
22
23
|
*
|
|
23
24
|
* `describe` is not cosmetic: a picker draws its kind filters from what actually answers. Without
|
|
24
25
|
* that call it would show a fixed list with tabs that stay empty as soon as an app is not
|
|
@@ -28,6 +29,15 @@
|
|
|
28
29
|
export declare const RESOURCE_DESCRIBE_SERVICE = "resources.describe";
|
|
29
30
|
export declare const RESOURCE_SEARCH_SERVICE = "resources.search";
|
|
30
31
|
export declare const RESOURCE_RESOLVE_SERVICE = "resources.resolve";
|
|
32
|
+
/**
|
|
33
|
+
* The mirror of `resolve`: not "what is this key called" but "what of yours hangs on it".
|
|
34
|
+
*
|
|
35
|
+
* The reverse question has to be asked of the *other* app, because the link lives there — work
|
|
36
|
+
* items carry the conversation's key, the conversation knows nothing about work. Answering it
|
|
37
|
+
* here rather than per consumer is what keeps the shell from growing an
|
|
38
|
+
* `if (kind === "interaction")` per app that could be linked.
|
|
39
|
+
*/
|
|
40
|
+
export declare const RESOURCE_ATTACHED_SERVICE = "resources.attached";
|
|
31
41
|
/** One pointable resource, as the app that owns it shows it. */
|
|
32
42
|
export interface ResourceSummary {
|
|
33
43
|
/**
|
|
@@ -83,6 +93,12 @@ export interface ResourceSearchParams {
|
|
|
83
93
|
export interface ResourceResolveParams {
|
|
84
94
|
scopeKeys: string[];
|
|
85
95
|
}
|
|
96
|
+
/** Params for `resources.attached`: what hangs on this one key. */
|
|
97
|
+
export interface ResourceAttachedParams {
|
|
98
|
+
scopeKey: string;
|
|
99
|
+
/** Maximum per provider. Absent = the provider's own sensible cap. */
|
|
100
|
+
limit?: number;
|
|
101
|
+
}
|
|
86
102
|
/**
|
|
87
103
|
* The kind out of a scopeKey, without having to split the rest.
|
|
88
104
|
*
|