@happyvertical/smrt-approvals 0.57.35 → 0.57.37

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.
@@ -0,0 +1,193 @@
1
+ /**
2
+ * Declared recipes for smrt-approvals (#4409): user-facing units of
3
+ * functionality an app or agent can pick instead of the whole package.
4
+ * The scanner reads these statics into the `recipes` array of `manifest.json`
5
+ * and `smrt-knowledge.json`; nothing here runs at that point.
6
+ *
7
+ * @packageDocumentation
8
+ */
9
+ import { SmrtRecipe } from '@happyvertical/smrt-core';
10
+ import { ApprovalEvent } from './models/ApprovalEvent.js';
11
+ import { ApprovalPolicy } from './models/ApprovalPolicy.js';
12
+ import { ApprovalRequest } from './models/ApprovalRequest.js';
13
+ /**
14
+ * Approvals: who has to say yes before something happens. Every model is
15
+ * exposed read-only (`list`/`get`); the approval service is the only write
16
+ * path, so the generated screens find and read, never change.
17
+ */
18
+ export declare class ApprovalsRecipe extends SmrtRecipe {
19
+ static id: string;
20
+ static help: string;
21
+ static label: string;
22
+ static summary: string;
23
+ static synonyms: string[];
24
+ static section: {
25
+ id: string;
26
+ label: string;
27
+ icon: string;
28
+ description: string;
29
+ };
30
+ static models: (typeof ApprovalRequest | typeof ApprovalEvent | typeof ApprovalPolicy)[];
31
+ static nav: ({
32
+ label: string;
33
+ model: typeof ApprovalRequest;
34
+ icon: string;
35
+ description: string;
36
+ noun: string;
37
+ } | {
38
+ label: string;
39
+ model: typeof ApprovalEvent;
40
+ icon: string;
41
+ description: string;
42
+ noun: string;
43
+ } | {
44
+ label: string;
45
+ model: typeof ApprovalPolicy;
46
+ icon: string;
47
+ description: string;
48
+ noun: string;
49
+ })[];
50
+ static options: {
51
+ readonly ApprovalRequest: {
52
+ readonly fields: {
53
+ readonly summary: {
54
+ readonly order: 1;
55
+ };
56
+ readonly kind: {
57
+ readonly order: 2;
58
+ };
59
+ readonly status: {
60
+ readonly order: 3;
61
+ };
62
+ readonly requestedBy: {
63
+ readonly label: "Requested by";
64
+ readonly order: 4;
65
+ };
66
+ readonly requestedByType: {
67
+ readonly label: "Requested by a";
68
+ readonly order: 5;
69
+ };
70
+ readonly expiresAt: {
71
+ readonly label: "Expires";
72
+ readonly order: 6;
73
+ };
74
+ readonly decidedAt: {
75
+ readonly label: "Decided on";
76
+ readonly order: 7;
77
+ };
78
+ readonly subjectType: {
79
+ readonly label: "What it is about";
80
+ readonly visibility: "advanced";
81
+ };
82
+ readonly subjectId: {
83
+ readonly label: "Which one";
84
+ readonly visibility: "advanced";
85
+ };
86
+ readonly requiredApprovals: {
87
+ readonly label: "Approvals needed";
88
+ readonly visibility: "advanced";
89
+ };
90
+ readonly approvalCount: {
91
+ readonly label: "Approvals so far";
92
+ readonly visibility: "advanced";
93
+ };
94
+ readonly consumedAt: {
95
+ readonly label: "Used on";
96
+ readonly visibility: "advanced";
97
+ };
98
+ readonly consumedBy: {
99
+ readonly label: "Used by";
100
+ readonly visibility: "advanced";
101
+ };
102
+ readonly tenantId: {
103
+ readonly visibility: "hidden";
104
+ };
105
+ readonly subjectRevisionHash: {
106
+ readonly visibility: "hidden";
107
+ };
108
+ readonly requestKey: {
109
+ readonly visibility: "hidden";
110
+ };
111
+ readonly requiredPermissions: {
112
+ readonly visibility: "hidden";
113
+ };
114
+ readonly version: {
115
+ readonly visibility: "hidden";
116
+ };
117
+ };
118
+ };
119
+ readonly ApprovalEvent: {
120
+ readonly fields: {
121
+ readonly requestId: {
122
+ readonly label: "Request";
123
+ readonly order: 1;
124
+ };
125
+ readonly type: {
126
+ readonly label: "What happened";
127
+ readonly order: 2;
128
+ };
129
+ readonly actorId: {
130
+ readonly label: "Who";
131
+ readonly order: 3;
132
+ };
133
+ readonly actorType: {
134
+ readonly label: "Who it was";
135
+ readonly order: 4;
136
+ };
137
+ readonly reason: {
138
+ readonly order: 5;
139
+ };
140
+ readonly occurredAt: {
141
+ readonly label: "When";
142
+ readonly order: 6;
143
+ };
144
+ readonly selfApproved: {
145
+ readonly label: "Decided by the requester";
146
+ readonly visibility: "advanced";
147
+ };
148
+ readonly tenantId: {
149
+ readonly visibility: "hidden";
150
+ };
151
+ readonly subjectRevisionHash: {
152
+ readonly visibility: "hidden";
153
+ };
154
+ readonly sequence: {
155
+ readonly visibility: "hidden";
156
+ };
157
+ readonly voteKey: {
158
+ readonly visibility: "hidden";
159
+ };
160
+ readonly selfApprovalPermission: {
161
+ readonly visibility: "hidden";
162
+ };
163
+ };
164
+ };
165
+ readonly ApprovalPolicy: {
166
+ readonly fields: {
167
+ readonly kind: {
168
+ readonly order: 1;
169
+ };
170
+ readonly requiredApprovals: {
171
+ readonly label: "Approvals needed";
172
+ readonly order: 2;
173
+ };
174
+ readonly ttlMs: {
175
+ readonly label: "Time limit in milliseconds";
176
+ readonly order: 3;
177
+ };
178
+ readonly requiredPermission: {
179
+ readonly label: "Extra permission needed";
180
+ readonly order: 4;
181
+ };
182
+ readonly updatedBy: {
183
+ readonly label: "Last changed by";
184
+ readonly order: 5;
185
+ };
186
+ readonly tenantId: {
187
+ readonly visibility: "hidden";
188
+ };
189
+ };
190
+ };
191
+ };
192
+ }
193
+ //# sourceMappingURL=recipes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recipes.d.ts","sourceRoot":"","sources":["../src/recipes.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAE9D;;;;GAIG;AACH,qBAAa,eAAgB,SAAQ,UAAU;IAC7C,MAAM,CAAC,EAAE,SAAwB;IACjC,MAAM,CAAC,IAAI,SAA0B;IACrC,MAAM,CAAC,KAAK,SAAe;IAC3B,MAAM,CAAC,OAAO,SACoF;IAClG,MAAM,CAAC,QAAQ,WASb;IACF,MAAM,CAAC,OAAO;;;;;MAKZ;IACF,MAAM,CAAC,MAAM,4EAAoD;IACjE,MAAM,CAAC,GAAG;;;;;;;;;;;;;;;;;;SAwBR;IACF,MAAM,CAAC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAuDH;CACZ"}