@wiro-ai/wiro-mcp 1.8.0 → 1.9.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 +46 -7
- package/dist/instructions.js +4 -4
- package/dist/instructions.js.map +1 -1
- package/dist/playbooks.d.ts +1 -1
- package/dist/playbooks.d.ts.map +1 -1
- package/dist/playbooks.js +165 -5
- package/dist/playbooks.js.map +1 -1
- package/dist/tools/check-model-access.d.ts +4 -0
- package/dist/tools/check-model-access.d.ts.map +1 -0
- package/dist/tools/check-model-access.js +277 -0
- package/dist/tools/check-model-access.js.map +1 -0
- package/dist/tools/get-account.d.ts +5 -1
- package/dist/tools/get-account.d.ts.map +1 -1
- package/dist/tools/get-account.js +39 -4
- package/dist/tools/get-account.js.map +1 -1
- package/dist/tools/get-controls.d.ts +4 -0
- package/dist/tools/get-controls.d.ts.map +1 -0
- package/dist/tools/get-controls.js +362 -0
- package/dist/tools/get-controls.js.map +1 -0
- package/dist/tools/index.d.ts +6 -2
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +22 -8
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/manage-model-access.d.ts +4 -0
- package/dist/tools/manage-model-access.d.ts.map +1 -0
- package/dist/tools/manage-model-access.js +785 -0
- package/dist/tools/manage-model-access.js.map +1 -0
- package/dist/tools/manage-spend-limit.d.ts +4 -0
- package/dist/tools/manage-spend-limit.d.ts.map +1 -0
- package/dist/tools/manage-spend-limit.js +529 -0
- package/dist/tools/manage-spend-limit.js.map +1 -0
- package/dist/tools/resume-workflow-run.d.ts +2 -1
- package/dist/tools/resume-workflow-run.d.ts.map +1 -1
- package/dist/tools/resume-workflow-run.js +4 -4
- package/dist/tools/resume-workflow-run.js.map +1 -1
- package/dist/tools/run-model.d.ts +2 -1
- package/dist/tools/run-model.d.ts.map +1 -1
- package/dist/tools/run-model.js +6 -6
- package/dist/tools/run-model.js.map +1 -1
- package/dist/tools/run-workflow.d.ts +2 -1
- package/dist/tools/run-workflow.d.ts.map +1 -1
- package/dist/tools/run-workflow.js +4 -4
- package/dist/tools/run-workflow.js.map +1 -1
- package/dist/tools/schemas.d.ts.map +1 -1
- package/dist/tools/schemas.js +18 -1
- package/dist/tools/schemas.js.map +1 -1
- package/dist/tools/send-agent-message.d.ts +2 -1
- package/dist/tools/send-agent-message.d.ts.map +1 -1
- package/dist/tools/send-agent-message.js +2 -2
- package/dist/tools/send-agent-message.js.map +1 -1
- package/dist/tools/update-agent.d.ts +2 -1
- package/dist/tools/update-agent.d.ts.map +1 -1
- package/dist/tools/update-agent.js +3 -3
- package/dist/tools/update-agent.js.map +1 -1
- package/dist/utils/agent-catalog.d.ts +1 -1
- package/dist/utils/agent-targets.d.ts +2 -2
- package/dist/utils/agent-targets.d.ts.map +1 -1
- package/dist/utils/agent-targets.js +4 -4
- package/dist/utils/agent-targets.js.map +1 -1
- package/dist/utils/api.d.ts +26 -5
- package/dist/utils/api.d.ts.map +1 -1
- package/dist/utils/api.js +69 -10
- package/dist/utils/api.js.map +1 -1
- package/dist/utils/controls.d.ts +371 -0
- package/dist/utils/controls.d.ts.map +1 -0
- package/dist/utils/controls.js +827 -0
- package/dist/utils/controls.js.map +1 -0
- package/dist/utils/wiro-project.d.ts +2 -0
- package/dist/utils/wiro-project.d.ts.map +1 -1
- package/dist/utils/wiro-project.js +1 -0
- package/dist/utils/wiro-project.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type WiroClient } from '../client.js';
|
|
3
|
+
export declare const CONTROL_SCOPES: readonly ["account", "member", "project", "surface", "agent"];
|
|
4
|
+
export type ControlScope = typeof CONTROL_SCOPES[number];
|
|
5
|
+
export declare const SURFACES: readonly ["web", "api", "mcp", "llm-gateway", "extension", "agent"];
|
|
6
|
+
export type Surface = typeof SURFACES[number];
|
|
7
|
+
export declare const PERIODS: readonly ["month", "day"];
|
|
8
|
+
export type Period = typeof PERIODS[number];
|
|
9
|
+
export declare const CATEGORY_KEYS: readonly ["image", "video", "audio", "music", "3d", "llm", "utilities"];
|
|
10
|
+
export type CategoryKey = typeof CATEGORY_KEYS[number];
|
|
11
|
+
export type Access = 'allow' | 'block';
|
|
12
|
+
export type CategoryLabels = Record<CategoryKey, string>;
|
|
13
|
+
/** How Wiro names each way in, as its refusals do. */
|
|
14
|
+
export declare const SURFACE_LABELS: Record<Surface, string>;
|
|
15
|
+
/** What each way in covers. A local install of this server sends its calls with an API key, so it counts as api. */
|
|
16
|
+
export declare const SURFACE_DESCRIPTIONS: Record<Surface, string>;
|
|
17
|
+
/** Wiro's limit on one rule: it can name at most this many models. */
|
|
18
|
+
export declare const MAX_RULE_MODELS = 500;
|
|
19
|
+
export declare const NOTHING_CHANGED = "Nothing was changed.";
|
|
20
|
+
export declare function isScope(value: unknown): value is ControlScope;
|
|
21
|
+
export declare function isSurface(value: unknown): value is Surface;
|
|
22
|
+
export declare function isCategory(value: unknown): value is CategoryKey;
|
|
23
|
+
export declare function cents(value: number): number;
|
|
24
|
+
/** An amount in USD with cents, such as $248.70. */
|
|
25
|
+
export declare function usd(value: number): string;
|
|
26
|
+
/** A time in plain words, in UTC, as Wiro's refusals give it: "December 1, 2026 at 00:00 UTC". */
|
|
27
|
+
export declare function utcText(unixSeconds: number): string;
|
|
28
|
+
export declare function isoTime(unixSeconds: number | undefined): string | undefined;
|
|
29
|
+
export interface ControlsWorkspace {
|
|
30
|
+
kind: 'personal' | 'team' | 'unknown';
|
|
31
|
+
teamGuid?: string;
|
|
32
|
+
/** Whether Wiro would take a change from this connection; undefined when its answer did not say. */
|
|
33
|
+
canManage?: boolean;
|
|
34
|
+
}
|
|
35
|
+
/** How Wiro counts calls through this connection: the surface, the API key's project and, in a team, the member. */
|
|
36
|
+
export interface Caller {
|
|
37
|
+
surface?: Surface;
|
|
38
|
+
projectId?: string;
|
|
39
|
+
/** In a team, the user id of the person this connection acts as: the creator of its key's project. */
|
|
40
|
+
memberUuid?: string;
|
|
41
|
+
}
|
|
42
|
+
/** Who may change controls, for a sentence after a refusal or in a read. */
|
|
43
|
+
export declare function whoCanChange(kind: ControlsWorkspace['kind']): string;
|
|
44
|
+
/** The whole wallet's name, by the kind of workspace. */
|
|
45
|
+
export declare function wholeWallet(kind: ControlsWorkspace['kind']): string;
|
|
46
|
+
export interface LimitRow {
|
|
47
|
+
guid?: string;
|
|
48
|
+
scope: ControlScope;
|
|
49
|
+
/** '' for the whole wallet. */
|
|
50
|
+
target: string;
|
|
51
|
+
targetName?: string;
|
|
52
|
+
period: Period;
|
|
53
|
+
amountUsd: number;
|
|
54
|
+
spentUsd: number;
|
|
55
|
+
/** What work that is still running holds against the limit. */
|
|
56
|
+
heldUsd?: number;
|
|
57
|
+
alertPercent: number | null;
|
|
58
|
+
periodStart?: number;
|
|
59
|
+
resetsAt?: number;
|
|
60
|
+
createdAt?: number;
|
|
61
|
+
updatedAt?: number;
|
|
62
|
+
}
|
|
63
|
+
/** A limit row of SpendLimit/List, /Preview or /Set, rebuilt from an allowlist. */
|
|
64
|
+
export declare function toLimitRow(row: Record<string, unknown>): LimitRow | null;
|
|
65
|
+
/** What is left for new work: the amount less what was spent and what running work holds. */
|
|
66
|
+
export declare function leftOf(row: LimitRow): number;
|
|
67
|
+
export declare function isUsedUp(row: Pick<LimitRow, 'amountUsd' | 'spentUsd'>): boolean;
|
|
68
|
+
/**
|
|
69
|
+
* A row's version, as a change summary records it: its last change, 0 when there is no row. A
|
|
70
|
+
* confirmed change goes ahead only while the row still has the version the user saw.
|
|
71
|
+
*/
|
|
72
|
+
export declare function versionOf(row: {
|
|
73
|
+
updatedAt?: number;
|
|
74
|
+
createdAt?: number;
|
|
75
|
+
} | null | undefined): number;
|
|
76
|
+
/** What a confirm repeats from a change summary's nextAction. */
|
|
77
|
+
export interface ConfirmArgs {
|
|
78
|
+
confirm: boolean;
|
|
79
|
+
updated_at?: number;
|
|
80
|
+
summary_id?: string;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Where a call stands: a summary to show, or a confirm. A confirm writes only when it repeats the summary of this
|
|
84
|
+
* very change, made from the row's current version.
|
|
85
|
+
* summary no confirm: show the change summary.
|
|
86
|
+
* changed the row changed after the summary the user saw.
|
|
87
|
+
* no-summary confirm without the summary's updated_at and summary_id.
|
|
88
|
+
* differs confirm of another change than the summary it repeats.
|
|
89
|
+
* confirmed write.
|
|
90
|
+
*/
|
|
91
|
+
export type ConfirmState = 'summary' | 'changed' | 'no-summary' | 'differs' | 'confirmed';
|
|
92
|
+
export declare function confirmState(args: ConfirmArgs, version: number, id: string): ConfirmState;
|
|
93
|
+
/**
|
|
94
|
+
* The id of a change summary: a digest of the exact change it shows and the version of the row it was made from,
|
|
95
|
+
* keyed by this connection's API key. It cannot be made up without the key, and every server of one deployment
|
|
96
|
+
* gives the same id for the same change.
|
|
97
|
+
*/
|
|
98
|
+
export declare function summaryId(client: WiroClient, change: Record<string, unknown>): string;
|
|
99
|
+
/** The sentence a summary opens with when a confirm did not write, by why it did not. */
|
|
100
|
+
export declare function confirmLead(state: ConfirmState, what: 'limit' | 'rule'): string | null;
|
|
101
|
+
export declare const summaryIdSchema: z.ZodOptional<z.ZodString>;
|
|
102
|
+
export declare function periodWord(period: Period): string;
|
|
103
|
+
/** The label of a period's spending so far: "Today so far" or "This month so far". */
|
|
104
|
+
export declare function soFarLabel(period: Period): string;
|
|
105
|
+
/** A phrase of this server's text at the start of a sentence. */
|
|
106
|
+
export declare function capitalized(text: string): string;
|
|
107
|
+
/** "$500.00 a month". */
|
|
108
|
+
export declare function amountPerPeriod(amountUsd: number, period: Period): string;
|
|
109
|
+
export declare function alertText(alertPercent: number | null): string;
|
|
110
|
+
/** When a period ends, or the time a row gives. */
|
|
111
|
+
export declare function resetText(row: Pick<LimitRow, 'period' | 'resetsAt'>): string;
|
|
112
|
+
export interface TargetView {
|
|
113
|
+
scope: ControlScope;
|
|
114
|
+
target?: string;
|
|
115
|
+
targetName?: string;
|
|
116
|
+
/** This connection's own API key, the surface this connection counts as, or in a team the member it acts as. */
|
|
117
|
+
thisConnection?: boolean;
|
|
118
|
+
}
|
|
119
|
+
export declare function isThisConnection(scope: ControlScope, target: string, caller: Caller | undefined): boolean;
|
|
120
|
+
/** What a limit or a rule covers, as one phrase of this server's own text. */
|
|
121
|
+
export declare function targetText(view: TargetView, kind: ControlsWorkspace['kind']): string;
|
|
122
|
+
/** The argument that names a scope's target in the manage tools, or none for the whole wallet. */
|
|
123
|
+
export declare function targetArgument(scope: ControlScope, target: string): Record<string, string>;
|
|
124
|
+
export declare const limitViewSchema: z.ZodObject<{
|
|
125
|
+
guid: z.ZodOptional<z.ZodString>;
|
|
126
|
+
scope: z.ZodEnum<{
|
|
127
|
+
agent: "agent";
|
|
128
|
+
project: "project";
|
|
129
|
+
member: "member";
|
|
130
|
+
surface: "surface";
|
|
131
|
+
account: "account";
|
|
132
|
+
}>;
|
|
133
|
+
target: z.ZodOptional<z.ZodString>;
|
|
134
|
+
targetName: z.ZodOptional<z.ZodString>;
|
|
135
|
+
thisConnection: z.ZodOptional<z.ZodBoolean>;
|
|
136
|
+
period: z.ZodEnum<{
|
|
137
|
+
month: "month";
|
|
138
|
+
day: "day";
|
|
139
|
+
}>;
|
|
140
|
+
amountUsd: z.ZodNumber;
|
|
141
|
+
spentUsd: z.ZodNumber;
|
|
142
|
+
heldUsd: z.ZodOptional<z.ZodNumber>;
|
|
143
|
+
leftUsd: z.ZodNumber;
|
|
144
|
+
usedUp: z.ZodBoolean;
|
|
145
|
+
alertPercent: z.ZodNullable<z.ZodNumber>;
|
|
146
|
+
periodStart: z.ZodOptional<z.ZodString>;
|
|
147
|
+
resetsAt: z.ZodOptional<z.ZodString>;
|
|
148
|
+
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
149
|
+
}, z.core.$strip>;
|
|
150
|
+
export type LimitView = z.infer<typeof limitViewSchema>;
|
|
151
|
+
export declare function limitView(row: LimitRow, caller: Caller | undefined): LimitView;
|
|
152
|
+
/** "$248.70 of $500.00 used, $20.00 held by work still running, $231.30 left". */
|
|
153
|
+
export declare function spendingText(row: LimitRow): string;
|
|
154
|
+
/** One line of a limit list. */
|
|
155
|
+
export declare function limitLine(row: LimitRow, kind: ControlsWorkspace['kind'], caller: Caller | undefined): string;
|
|
156
|
+
export interface RuleModelEntry {
|
|
157
|
+
id: string;
|
|
158
|
+
/** The model's owner/slug; null when it is no longer on Wiro. */
|
|
159
|
+
model: string | null;
|
|
160
|
+
title?: string;
|
|
161
|
+
access: Access;
|
|
162
|
+
}
|
|
163
|
+
export interface RuleRow {
|
|
164
|
+
guid?: string;
|
|
165
|
+
scope: ControlScope;
|
|
166
|
+
target: string;
|
|
167
|
+
targetName?: string;
|
|
168
|
+
/** What every model the rule names neither by category nor by name gets ("everything else"). */
|
|
169
|
+
access: Access;
|
|
170
|
+
categories: Partial<Record<CategoryKey, Access>>;
|
|
171
|
+
models: RuleModelEntry[];
|
|
172
|
+
createdAt?: number;
|
|
173
|
+
updatedAt?: number;
|
|
174
|
+
}
|
|
175
|
+
/** A rule row of ModelAccess/List, /Preview or /Set, rebuilt from an allowlist. */
|
|
176
|
+
export declare function toRuleRow(row: Record<string, unknown>): RuleRow | null;
|
|
177
|
+
/** The category labels a ModelAccess/List answer gives, over the built-in ones. */
|
|
178
|
+
export declare function toCategoryLabels(value: unknown): CategoryLabels;
|
|
179
|
+
export declare function categoryList(labels: CategoryLabels): Array<{
|
|
180
|
+
category: CategoryKey;
|
|
181
|
+
label: string;
|
|
182
|
+
}>;
|
|
183
|
+
/** A model of a rule by its owner/slug, or by its id when it is no longer on Wiro. */
|
|
184
|
+
export declare function entryName(entry: Pick<RuleModelEntry, 'id' | 'model'>, quote: boolean): string;
|
|
185
|
+
/**
|
|
186
|
+
* A rule in plain words: "Every model except Video Generation; bytedance/seedance-v2-5-flash allowed by name" or
|
|
187
|
+
* "Only Image Generation and openai/gpt-6-2-astra". In a rule that allows every other model an allowed category
|
|
188
|
+
* decides nothing (a block among a model's categories wins), so it is left out.
|
|
189
|
+
*/
|
|
190
|
+
export declare function ruleSummary(rule: RuleRow, labels: CategoryLabels, options?: {
|
|
191
|
+
quote?: boolean;
|
|
192
|
+
maxModels?: number;
|
|
193
|
+
}): string;
|
|
194
|
+
/** Whether a rule blocks anything at all. One that does not changes no decision. */
|
|
195
|
+
export declare function blocksSomething(rule: {
|
|
196
|
+
access: Access;
|
|
197
|
+
categories: RuleRow['categories'];
|
|
198
|
+
models: Array<{
|
|
199
|
+
access: Access;
|
|
200
|
+
}>;
|
|
201
|
+
}): boolean;
|
|
202
|
+
export declare const ruleViewSchema: z.ZodObject<{
|
|
203
|
+
guid: z.ZodOptional<z.ZodString>;
|
|
204
|
+
scope: z.ZodEnum<{
|
|
205
|
+
agent: "agent";
|
|
206
|
+
project: "project";
|
|
207
|
+
member: "member";
|
|
208
|
+
surface: "surface";
|
|
209
|
+
account: "account";
|
|
210
|
+
}>;
|
|
211
|
+
target: z.ZodOptional<z.ZodString>;
|
|
212
|
+
targetName: z.ZodOptional<z.ZodString>;
|
|
213
|
+
thisConnection: z.ZodOptional<z.ZodBoolean>;
|
|
214
|
+
everythingElse: z.ZodEnum<{
|
|
215
|
+
allow: "allow";
|
|
216
|
+
block: "block";
|
|
217
|
+
}>;
|
|
218
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
219
|
+
category: z.ZodEnum<{
|
|
220
|
+
image: "image";
|
|
221
|
+
audio: "audio";
|
|
222
|
+
video: "video";
|
|
223
|
+
music: "music";
|
|
224
|
+
"3d": "3d";
|
|
225
|
+
llm: "llm";
|
|
226
|
+
utilities: "utilities";
|
|
227
|
+
}>;
|
|
228
|
+
label: z.ZodString;
|
|
229
|
+
access: z.ZodEnum<{
|
|
230
|
+
allow: "allow";
|
|
231
|
+
block: "block";
|
|
232
|
+
}>;
|
|
233
|
+
}, z.core.$strip>>;
|
|
234
|
+
models: z.ZodArray<z.ZodObject<{
|
|
235
|
+
id: z.ZodString;
|
|
236
|
+
model: z.ZodNullable<z.ZodString>;
|
|
237
|
+
title: z.ZodOptional<z.ZodString>;
|
|
238
|
+
access: z.ZodEnum<{
|
|
239
|
+
allow: "allow";
|
|
240
|
+
block: "block";
|
|
241
|
+
}>;
|
|
242
|
+
}, z.core.$strip>>;
|
|
243
|
+
summary: z.ZodString;
|
|
244
|
+
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
245
|
+
}, z.core.$strip>;
|
|
246
|
+
export type RuleView = z.infer<typeof ruleViewSchema>;
|
|
247
|
+
export declare function ruleView(rule: RuleRow, labels: CategoryLabels, caller: Caller | undefined): RuleView;
|
|
248
|
+
/** One line of a rule list: at most ten models are named in the text. */
|
|
249
|
+
export declare function ruleLine(rule: RuleRow, labels: CategoryLabels, kind: ControlsWorkspace['kind'], caller: Caller | undefined): string;
|
|
250
|
+
export type Decision = 'allow' | 'block';
|
|
251
|
+
export type DecidedBy = 'model' | 'category' | 'default';
|
|
252
|
+
/** How one rule decides a model for a run, as ModelAccess/Check explains it. */
|
|
253
|
+
export interface RuleDecision {
|
|
254
|
+
rule: RuleRow;
|
|
255
|
+
decides: Decision;
|
|
256
|
+
by: DecidedBy;
|
|
257
|
+
category: string | null;
|
|
258
|
+
}
|
|
259
|
+
/** The rules of a ModelAccess/Check answer that apply to the run, widest first, each with its decision. */
|
|
260
|
+
export declare function toRuleDecisions(value: unknown): RuleDecision[];
|
|
261
|
+
/** The run a ModelAccess/Check answer says it checked. A key acts as its creator, so in a team that is the member. */
|
|
262
|
+
export interface CheckedRun {
|
|
263
|
+
surface: Surface;
|
|
264
|
+
member?: {
|
|
265
|
+
uuid: string;
|
|
266
|
+
name?: string;
|
|
267
|
+
};
|
|
268
|
+
project?: {
|
|
269
|
+
id: string;
|
|
270
|
+
name?: string;
|
|
271
|
+
};
|
|
272
|
+
agent?: {
|
|
273
|
+
guid: string;
|
|
274
|
+
name?: string;
|
|
275
|
+
};
|
|
276
|
+
}
|
|
277
|
+
/** check.context of a ModelAccess/Check answer; undefined when the answer has none (an older Wiro API). */
|
|
278
|
+
export declare function toCheckedRun(value: unknown): CheckedRun | undefined;
|
|
279
|
+
/** Why one rule decides the model as it does, as the end of a sentence about that rule. */
|
|
280
|
+
export declare function decisionReason(decision: Pick<RuleDecision, 'decides' | 'by' | 'category'>, labels: CategoryLabels): string;
|
|
281
|
+
export interface LimitList {
|
|
282
|
+
workspace: ControlsWorkspace;
|
|
283
|
+
caller?: Caller;
|
|
284
|
+
limits: LimitRow[];
|
|
285
|
+
}
|
|
286
|
+
export interface RuleList {
|
|
287
|
+
workspace: ControlsWorkspace;
|
|
288
|
+
caller?: Caller;
|
|
289
|
+
rules: RuleRow[];
|
|
290
|
+
labels: CategoryLabels;
|
|
291
|
+
}
|
|
292
|
+
/** The workspace's spend limits with this period's spending. Throws when they cannot be read. */
|
|
293
|
+
export declare function readLimitList(client: WiroClient, signal?: AbortSignal): Promise<LimitList>;
|
|
294
|
+
/** The workspace's Model Access rules and the categories a rule can name. Throws when they cannot be read. */
|
|
295
|
+
export declare function readRuleList(client: WiroClient, signal?: AbortSignal): Promise<RuleList>;
|
|
296
|
+
export interface TargetArgs {
|
|
297
|
+
scope?: ControlScope;
|
|
298
|
+
member?: string;
|
|
299
|
+
project?: string;
|
|
300
|
+
surface?: Surface;
|
|
301
|
+
agent?: string;
|
|
302
|
+
}
|
|
303
|
+
export interface ResolvedTarget {
|
|
304
|
+
scope: ControlScope;
|
|
305
|
+
/** '' for the whole wallet. */
|
|
306
|
+
target: string;
|
|
307
|
+
targetName?: string;
|
|
308
|
+
thisConnection: boolean;
|
|
309
|
+
}
|
|
310
|
+
/** Checks before any call that the target arguments fit the scope. Throws a sentence. */
|
|
311
|
+
export declare function checkTargetArguments(args: TargetArgs): void;
|
|
312
|
+
interface ProjectChoice {
|
|
313
|
+
id: string;
|
|
314
|
+
name?: string;
|
|
315
|
+
connected: boolean;
|
|
316
|
+
}
|
|
317
|
+
/** A project named by its id or its exact name; left out, this connection's own. */
|
|
318
|
+
export declare function resolveProject(client: WiroClient, value: string | undefined, caller: Caller | undefined, signal?: AbortSignal): Promise<ProjectChoice>;
|
|
319
|
+
interface MemberChoice {
|
|
320
|
+
uuid: string;
|
|
321
|
+
name?: string;
|
|
322
|
+
}
|
|
323
|
+
export interface TeamMember {
|
|
324
|
+
uuid: string;
|
|
325
|
+
name?: string;
|
|
326
|
+
email?: string;
|
|
327
|
+
role?: 'admin' | 'member';
|
|
328
|
+
}
|
|
329
|
+
/** The active members of a team, in Wiro's order. Throws when they cannot be read. */
|
|
330
|
+
export declare function readTeamMembers(client: WiroClient, teamGuid: string, signal?: AbortSignal): Promise<TeamMember[]>;
|
|
331
|
+
/** A team member named by e-mail or user id. Only an e-mail needs the team's member list. */
|
|
332
|
+
export declare function resolveMember(client: WiroClient, value: string, workspace: ControlsWorkspace, signal?: AbortSignal): Promise<MemberChoice>;
|
|
333
|
+
interface AgentChoice {
|
|
334
|
+
guid: string;
|
|
335
|
+
name?: string;
|
|
336
|
+
}
|
|
337
|
+
/** An agent of this workspace named by its guid or its exact name. */
|
|
338
|
+
export declare function resolveAgent(client: WiroClient, value: string, signal?: AbortSignal): Promise<AgentChoice>;
|
|
339
|
+
/** A limit's or a rule's target from the manage tools' arguments: an e-mail, a name or this connection's key become ids. */
|
|
340
|
+
export declare function resolveTarget(client: WiroClient, args: TargetArgs & {
|
|
341
|
+
scope: ControlScope;
|
|
342
|
+
}, context: {
|
|
343
|
+
workspace: ControlsWorkspace;
|
|
344
|
+
caller?: Caller;
|
|
345
|
+
}, signal?: AbortSignal): Promise<ResolvedTarget>;
|
|
346
|
+
export type ControlsPage = 'spend-limits' | 'model-access';
|
|
347
|
+
/** An older Wiro API has no change summary for controls, so no change goes through this server. */
|
|
348
|
+
export declare function previewMissingText(page: ControlsPage): string;
|
|
349
|
+
/** Wiro's refusal of a change, with what fixes it where that is known. */
|
|
350
|
+
export declare function refusalText(message: string): string;
|
|
351
|
+
/** Why a read for a change failed, as one sentence that says nothing changed. */
|
|
352
|
+
export declare function readFailure(what: string, error: unknown): Error;
|
|
353
|
+
/** Why a change summary could not be made. A route the API does not have means the change cannot be previewed. */
|
|
354
|
+
export declare function previewFailure(error: unknown, page: ControlsPage): Error;
|
|
355
|
+
/**
|
|
356
|
+
* Why a change failed. A clean refusal changed nothing. Without a clear answer the change may have
|
|
357
|
+
* gone through, so `unknownText` says how to find out.
|
|
358
|
+
*/
|
|
359
|
+
export declare function changeFailure(error: unknown, page: ControlsPage, unknownText: string): Error;
|
|
360
|
+
/** The sentence for a connection that may read controls but not change them. */
|
|
361
|
+
export declare function cannotChangeText(kind: ControlsWorkspace['kind'], what: 'spend limits' | 'Model Access rules', page: ControlsPage): string;
|
|
362
|
+
export declare const dashboardSchema: z.ZodObject<{
|
|
363
|
+
spendLimits: z.ZodString;
|
|
364
|
+
modelAccess: z.ZodString;
|
|
365
|
+
}, z.core.$strip>;
|
|
366
|
+
export declare const DASHBOARD: {
|
|
367
|
+
spendLimits: string;
|
|
368
|
+
modelAccess: string;
|
|
369
|
+
};
|
|
370
|
+
export {};
|
|
371
|
+
//# sourceMappingURL=controls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"controls.d.ts","sourceRoot":"","sources":["../../src/utils/controls.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAgB,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAyB7D,eAAO,MAAM,cAAc,+DAAgE,CAAC;AAC5F,MAAM,MAAM,YAAY,GAAG,OAAO,cAAc,CAAC,MAAM,CAAC,CAAC;AAEzD,eAAO,MAAM,QAAQ,qEAAsE,CAAC;AAC5F,MAAM,MAAM,OAAO,GAAG,OAAO,QAAQ,CAAC,MAAM,CAAC,CAAC;AAE9C,eAAO,MAAM,OAAO,2BAA4B,CAAC;AACjD,MAAM,MAAM,MAAM,GAAG,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC;AAE5C,e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