@oxy.so/contracts 5.1.0 → 5.2.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/cjs/agency.js +42 -1
- package/dist/cjs/index.js +23 -14
- package/dist/cjs/profileColors.generated.js +265 -0
- package/dist/cjs/userResponse.js +4 -19
- package/dist/esm/agency.js +39 -0
- package/dist/esm/index.js +3 -2
- package/dist/esm/profileColors.generated.js +262 -0
- package/dist/esm/userResponse.js +0 -15
- package/dist/types/agency.d.ts +58 -0
- package/dist/types/index.d.ts +4 -3
- package/dist/types/oauth.d.ts +3 -0
- package/dist/types/profileColors.generated.d.ts +195 -0
- package/dist/types/userResponse.d.ts +0 -2
- package/package.json +7 -4
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
// Generated from published @oxy.so/bloom/color-presets. Do not edit.
|
|
2
|
+
// Regenerate: bun run generate:profile-colors
|
|
3
|
+
export const USER_PROFILE_COLORS = [
|
|
4
|
+
{
|
|
5
|
+
"name": "teal",
|
|
6
|
+
"gate": null
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"name": "blue",
|
|
10
|
+
"gate": null
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "green",
|
|
14
|
+
"gate": null
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "yellow",
|
|
18
|
+
"gate": null
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "red",
|
|
22
|
+
"gate": null
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "purple",
|
|
26
|
+
"gate": null
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "pink",
|
|
30
|
+
"gate": null
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "sky",
|
|
34
|
+
"gate": null
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "orange",
|
|
38
|
+
"gate": null
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "mint",
|
|
42
|
+
"gate": null
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "oxy",
|
|
46
|
+
"gate": "handle"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "faircoin",
|
|
50
|
+
"gate": "handle"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "pumpkin",
|
|
54
|
+
"gate": null
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "gray",
|
|
58
|
+
"gate": null
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "brown",
|
|
62
|
+
"gate": null
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "peach",
|
|
66
|
+
"gate": null
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "rose",
|
|
70
|
+
"gate": null
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "mono",
|
|
74
|
+
"gate": "premium"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "grove",
|
|
78
|
+
"gate": null
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "ember",
|
|
82
|
+
"gate": null
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"name": "merlot",
|
|
86
|
+
"gate": null
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "cobalt",
|
|
90
|
+
"gate": null
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"name": "jade",
|
|
94
|
+
"gate": null
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"name": "pine",
|
|
98
|
+
"gate": null
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "olive",
|
|
102
|
+
"gate": null
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "lagoon",
|
|
106
|
+
"gate": null
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "navy",
|
|
110
|
+
"gate": null
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "azure",
|
|
114
|
+
"gate": null
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"name": "violet",
|
|
118
|
+
"gate": null
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"name": "lavender",
|
|
122
|
+
"gate": null
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"name": "plum",
|
|
126
|
+
"gate": null
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"name": "cherry",
|
|
130
|
+
"gate": null
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"name": "chocolate",
|
|
134
|
+
"gate": null
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"name": "graphite",
|
|
138
|
+
"gate": null
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"name": "forest-fire",
|
|
142
|
+
"gate": null
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"name": "malachite-rush",
|
|
146
|
+
"gate": null
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"name": "moss-voltage",
|
|
150
|
+
"gate": null
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"name": "viridian-orbit",
|
|
154
|
+
"gate": null
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"name": "acid-canopy",
|
|
158
|
+
"gate": null
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"name": "pacific-flare",
|
|
162
|
+
"gate": null
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"name": "reef-pulse",
|
|
166
|
+
"gate": null
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"name": "electric-tide",
|
|
170
|
+
"gate": null
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"name": "arctic-signal",
|
|
174
|
+
"gate": null
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"name": "ultramarine-gold",
|
|
178
|
+
"gate": null
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"name": "midnight-citrus",
|
|
182
|
+
"gate": null
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"name": "persimmon-wave",
|
|
186
|
+
"gate": null
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"name": "solar-flux",
|
|
190
|
+
"gate": null
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"name": "paprika-current",
|
|
194
|
+
"gate": null
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"name": "crimson-spark",
|
|
198
|
+
"gate": null
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"name": "flamenco-sun",
|
|
202
|
+
"gate": null
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"name": "saffron-depth",
|
|
206
|
+
"gate": null
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"name": "clay-current",
|
|
210
|
+
"gate": null
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"name": "bronze-neon",
|
|
214
|
+
"gate": null
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"name": "copper-field",
|
|
218
|
+
"gate": null
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"name": "umber-signal",
|
|
222
|
+
"gate": null
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"name": "amethyst-current",
|
|
226
|
+
"gate": null
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"name": "ruby-current",
|
|
230
|
+
"gate": null
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"name": "orchid-flare",
|
|
234
|
+
"gate": null
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"name": "garnet-acid",
|
|
238
|
+
"gate": null
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"name": "indigo-ember",
|
|
242
|
+
"gate": null
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"name": "raspberry-gold",
|
|
246
|
+
"gate": null
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"name": "ink-orange",
|
|
250
|
+
"gate": null
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"name": "charcoal-lime",
|
|
254
|
+
"gate": null
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"name": "pewter-current",
|
|
258
|
+
"gate": null
|
|
259
|
+
}
|
|
260
|
+
];
|
|
261
|
+
export const USER_PROFILE_COLOR_PRESETS = USER_PROFILE_COLORS.map(({ name }) => name);
|
|
262
|
+
export const FREE_USER_PROFILE_COLOR_PRESETS = USER_PROFILE_COLORS.filter(({ gate }) => gate === null).map(({ name }) => name);
|
package/dist/esm/userResponse.js
CHANGED
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
/** Canonical profile/theme preset identities accepted by Oxy writes. */
|
|
2
|
-
export const USER_PROFILE_COLOR_PRESETS = [
|
|
3
|
-
'teal',
|
|
4
|
-
'blue',
|
|
5
|
-
'green',
|
|
6
|
-
'amber',
|
|
7
|
-
'red',
|
|
8
|
-
'purple',
|
|
9
|
-
'pink',
|
|
10
|
-
'sky',
|
|
11
|
-
'orange',
|
|
12
|
-
'mint',
|
|
13
|
-
'mono',
|
|
14
|
-
'oxy',
|
|
15
|
-
];
|
|
16
1
|
/**
|
|
17
2
|
* Canonical API user-response contracts.
|
|
18
3
|
*
|
package/dist/types/agency.d.ts
CHANGED
|
@@ -2282,6 +2282,19 @@ export declare const auditEventSchema: z.ZodObject<{
|
|
|
2282
2282
|
capabilityTicketId?: string | undefined;
|
|
2283
2283
|
};
|
|
2284
2284
|
}>;
|
|
2285
|
+
/**
|
|
2286
|
+
* The executing actor types a catalogue tool may name in `actors` — exactly the
|
|
2287
|
+
* discriminator of {@link executionActorRefSchema}.
|
|
2288
|
+
*/
|
|
2289
|
+
export declare const CATALOG_TOOL_ACTOR_TYPES: readonly ["alia", "agent", "requester"];
|
|
2290
|
+
export declare const catalogToolActorTypeSchema: z.ZodEnum<["alia", "agent", "requester"]>;
|
|
2291
|
+
/**
|
|
2292
|
+
* Who may execute a tool that declares no `actors`: the standing actors
|
|
2293
|
+
* (native Alia and agents, {@link actorRefSchema}). A present requester
|
|
2294
|
+
* (ADR 0025) is opt-in — a tool reaches that lane only by naming `requester`,
|
|
2295
|
+
* which is what every catalogue meant before the field existed.
|
|
2296
|
+
*/
|
|
2297
|
+
export declare const CATALOG_TOOL_DEFAULT_ACTORS: readonly ["alia", "agent"];
|
|
2285
2298
|
export declare const catalogToolSchema: z.ZodEffects<z.ZodObject<{
|
|
2286
2299
|
name: z.ZodString;
|
|
2287
2300
|
version: z.ZodString;
|
|
@@ -2295,6 +2308,12 @@ export declare const catalogToolSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2295
2308
|
idempotency: z.ZodEnum<["none", "supported", "required"]>;
|
|
2296
2309
|
rollback: z.ZodEnum<["none", "manual", "supported"]>;
|
|
2297
2310
|
exposure: z.ZodArray<z.ZodEnum<["internal", "mcp"]>, "many">;
|
|
2311
|
+
/**
|
|
2312
|
+
* Executing actor types Oxy will issue a capability ticket for. Absent
|
|
2313
|
+
* means {@link CATALOG_TOOL_DEFAULT_ACTORS}. A coordinator must not offer
|
|
2314
|
+
* the tool to any other actor: Oxy refuses the authorization.
|
|
2315
|
+
*/
|
|
2316
|
+
actors: z.ZodOptional<z.ZodArray<z.ZodEnum<["alia", "agent", "requester"]>, "many">>;
|
|
2298
2317
|
limitKeys: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2299
2318
|
key: z.ZodString;
|
|
2300
2319
|
kind: z.ZodEnum<["maximum_number", "exact_boolean"]>;
|
|
@@ -2336,6 +2355,7 @@ export declare const catalogToolSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2336
2355
|
method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
2337
2356
|
};
|
|
2338
2357
|
outputSchema?: Record<string, unknown> | undefined;
|
|
2358
|
+
actors?: ("alia" | "agent" | "requester")[] | undefined;
|
|
2339
2359
|
}, {
|
|
2340
2360
|
effect: "security" | "read" | "write" | "external" | "financial";
|
|
2341
2361
|
name: string;
|
|
@@ -2353,6 +2373,7 @@ export declare const catalogToolSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2353
2373
|
method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
2354
2374
|
};
|
|
2355
2375
|
outputSchema?: Record<string, unknown> | undefined;
|
|
2376
|
+
actors?: ("alia" | "agent" | "requester")[] | undefined;
|
|
2356
2377
|
limitKeys?: {
|
|
2357
2378
|
kind: "maximum_number" | "exact_boolean";
|
|
2358
2379
|
key: string;
|
|
@@ -2378,6 +2399,7 @@ export declare const catalogToolSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2378
2399
|
method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
2379
2400
|
};
|
|
2380
2401
|
outputSchema?: Record<string, unknown> | undefined;
|
|
2402
|
+
actors?: ("alia" | "agent" | "requester")[] | undefined;
|
|
2381
2403
|
}, {
|
|
2382
2404
|
effect: "security" | "read" | "write" | "external" | "financial";
|
|
2383
2405
|
name: string;
|
|
@@ -2395,6 +2417,7 @@ export declare const catalogToolSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2395
2417
|
method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
2396
2418
|
};
|
|
2397
2419
|
outputSchema?: Record<string, unknown> | undefined;
|
|
2420
|
+
actors?: ("alia" | "agent" | "requester")[] | undefined;
|
|
2398
2421
|
limitKeys?: {
|
|
2399
2422
|
kind: "maximum_number" | "exact_boolean";
|
|
2400
2423
|
key: string;
|
|
@@ -2493,6 +2516,12 @@ export declare const appCapabilityCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2493
2516
|
idempotency: z.ZodEnum<["none", "supported", "required"]>;
|
|
2494
2517
|
rollback: z.ZodEnum<["none", "manual", "supported"]>;
|
|
2495
2518
|
exposure: z.ZodArray<z.ZodEnum<["internal", "mcp"]>, "many">;
|
|
2519
|
+
/**
|
|
2520
|
+
* Executing actor types Oxy will issue a capability ticket for. Absent
|
|
2521
|
+
* means {@link CATALOG_TOOL_DEFAULT_ACTORS}. A coordinator must not offer
|
|
2522
|
+
* the tool to any other actor: Oxy refuses the authorization.
|
|
2523
|
+
*/
|
|
2524
|
+
actors: z.ZodOptional<z.ZodArray<z.ZodEnum<["alia", "agent", "requester"]>, "many">>;
|
|
2496
2525
|
limitKeys: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2497
2526
|
key: z.ZodString;
|
|
2498
2527
|
kind: z.ZodEnum<["maximum_number", "exact_boolean"]>;
|
|
@@ -2534,6 +2563,7 @@ export declare const appCapabilityCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2534
2563
|
method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
2535
2564
|
};
|
|
2536
2565
|
outputSchema?: Record<string, unknown> | undefined;
|
|
2566
|
+
actors?: ("alia" | "agent" | "requester")[] | undefined;
|
|
2537
2567
|
}, {
|
|
2538
2568
|
effect: "security" | "read" | "write" | "external" | "financial";
|
|
2539
2569
|
name: string;
|
|
@@ -2551,6 +2581,7 @@ export declare const appCapabilityCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2551
2581
|
method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
2552
2582
|
};
|
|
2553
2583
|
outputSchema?: Record<string, unknown> | undefined;
|
|
2584
|
+
actors?: ("alia" | "agent" | "requester")[] | undefined;
|
|
2554
2585
|
limitKeys?: {
|
|
2555
2586
|
kind: "maximum_number" | "exact_boolean";
|
|
2556
2587
|
key: string;
|
|
@@ -2576,6 +2607,7 @@ export declare const appCapabilityCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2576
2607
|
method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
2577
2608
|
};
|
|
2578
2609
|
outputSchema?: Record<string, unknown> | undefined;
|
|
2610
|
+
actors?: ("alia" | "agent" | "requester")[] | undefined;
|
|
2579
2611
|
}, {
|
|
2580
2612
|
effect: "security" | "read" | "write" | "external" | "financial";
|
|
2581
2613
|
name: string;
|
|
@@ -2593,6 +2625,7 @@ export declare const appCapabilityCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2593
2625
|
method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
2594
2626
|
};
|
|
2595
2627
|
outputSchema?: Record<string, unknown> | undefined;
|
|
2628
|
+
actors?: ("alia" | "agent" | "requester")[] | undefined;
|
|
2596
2629
|
limitKeys?: {
|
|
2597
2630
|
kind: "maximum_number" | "exact_boolean";
|
|
2598
2631
|
key: string;
|
|
@@ -2645,6 +2678,7 @@ export declare const appCapabilityCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2645
2678
|
method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
2646
2679
|
};
|
|
2647
2680
|
outputSchema?: Record<string, unknown> | undefined;
|
|
2681
|
+
actors?: ("alia" | "agent" | "requester")[] | undefined;
|
|
2648
2682
|
}[];
|
|
2649
2683
|
events: {
|
|
2650
2684
|
type: string;
|
|
@@ -2687,6 +2721,7 @@ export declare const appCapabilityCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2687
2721
|
method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
2688
2722
|
};
|
|
2689
2723
|
outputSchema?: Record<string, unknown> | undefined;
|
|
2724
|
+
actors?: ("alia" | "agent" | "requester")[] | undefined;
|
|
2690
2725
|
limitKeys?: {
|
|
2691
2726
|
kind: "maximum_number" | "exact_boolean";
|
|
2692
2727
|
key: string;
|
|
@@ -2737,6 +2772,7 @@ export declare const appCapabilityCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2737
2772
|
method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
2738
2773
|
};
|
|
2739
2774
|
outputSchema?: Record<string, unknown> | undefined;
|
|
2775
|
+
actors?: ("alia" | "agent" | "requester")[] | undefined;
|
|
2740
2776
|
}[];
|
|
2741
2777
|
events: {
|
|
2742
2778
|
type: string;
|
|
@@ -2779,6 +2815,7 @@ export declare const appCapabilityCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2779
2815
|
method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
2780
2816
|
};
|
|
2781
2817
|
outputSchema?: Record<string, unknown> | undefined;
|
|
2818
|
+
actors?: ("alia" | "agent" | "requester")[] | undefined;
|
|
2782
2819
|
limitKeys?: {
|
|
2783
2820
|
kind: "maximum_number" | "exact_boolean";
|
|
2784
2821
|
key: string;
|
|
@@ -2854,6 +2891,12 @@ export declare const catalogRegistrationSchema: z.ZodObject<{
|
|
|
2854
2891
|
idempotency: z.ZodEnum<["none", "supported", "required"]>;
|
|
2855
2892
|
rollback: z.ZodEnum<["none", "manual", "supported"]>;
|
|
2856
2893
|
exposure: z.ZodArray<z.ZodEnum<["internal", "mcp"]>, "many">;
|
|
2894
|
+
/**
|
|
2895
|
+
* Executing actor types Oxy will issue a capability ticket for. Absent
|
|
2896
|
+
* means {@link CATALOG_TOOL_DEFAULT_ACTORS}. A coordinator must not offer
|
|
2897
|
+
* the tool to any other actor: Oxy refuses the authorization.
|
|
2898
|
+
*/
|
|
2899
|
+
actors: z.ZodOptional<z.ZodArray<z.ZodEnum<["alia", "agent", "requester"]>, "many">>;
|
|
2857
2900
|
limitKeys: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2858
2901
|
key: z.ZodString;
|
|
2859
2902
|
kind: z.ZodEnum<["maximum_number", "exact_boolean"]>;
|
|
@@ -2895,6 +2938,7 @@ export declare const catalogRegistrationSchema: z.ZodObject<{
|
|
|
2895
2938
|
method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
2896
2939
|
};
|
|
2897
2940
|
outputSchema?: Record<string, unknown> | undefined;
|
|
2941
|
+
actors?: ("alia" | "agent" | "requester")[] | undefined;
|
|
2898
2942
|
}, {
|
|
2899
2943
|
effect: "security" | "read" | "write" | "external" | "financial";
|
|
2900
2944
|
name: string;
|
|
@@ -2912,6 +2956,7 @@ export declare const catalogRegistrationSchema: z.ZodObject<{
|
|
|
2912
2956
|
method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
2913
2957
|
};
|
|
2914
2958
|
outputSchema?: Record<string, unknown> | undefined;
|
|
2959
|
+
actors?: ("alia" | "agent" | "requester")[] | undefined;
|
|
2915
2960
|
limitKeys?: {
|
|
2916
2961
|
kind: "maximum_number" | "exact_boolean";
|
|
2917
2962
|
key: string;
|
|
@@ -2937,6 +2982,7 @@ export declare const catalogRegistrationSchema: z.ZodObject<{
|
|
|
2937
2982
|
method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
2938
2983
|
};
|
|
2939
2984
|
outputSchema?: Record<string, unknown> | undefined;
|
|
2985
|
+
actors?: ("alia" | "agent" | "requester")[] | undefined;
|
|
2940
2986
|
}, {
|
|
2941
2987
|
effect: "security" | "read" | "write" | "external" | "financial";
|
|
2942
2988
|
name: string;
|
|
@@ -2954,6 +3000,7 @@ export declare const catalogRegistrationSchema: z.ZodObject<{
|
|
|
2954
3000
|
method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
2955
3001
|
};
|
|
2956
3002
|
outputSchema?: Record<string, unknown> | undefined;
|
|
3003
|
+
actors?: ("alia" | "agent" | "requester")[] | undefined;
|
|
2957
3004
|
limitKeys?: {
|
|
2958
3005
|
kind: "maximum_number" | "exact_boolean";
|
|
2959
3006
|
key: string;
|
|
@@ -3006,6 +3053,7 @@ export declare const catalogRegistrationSchema: z.ZodObject<{
|
|
|
3006
3053
|
method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
3007
3054
|
};
|
|
3008
3055
|
outputSchema?: Record<string, unknown> | undefined;
|
|
3056
|
+
actors?: ("alia" | "agent" | "requester")[] | undefined;
|
|
3009
3057
|
}[];
|
|
3010
3058
|
events: {
|
|
3011
3059
|
type: string;
|
|
@@ -3048,6 +3096,7 @@ export declare const catalogRegistrationSchema: z.ZodObject<{
|
|
|
3048
3096
|
method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
3049
3097
|
};
|
|
3050
3098
|
outputSchema?: Record<string, unknown> | undefined;
|
|
3099
|
+
actors?: ("alia" | "agent" | "requester")[] | undefined;
|
|
3051
3100
|
limitKeys?: {
|
|
3052
3101
|
kind: "maximum_number" | "exact_boolean";
|
|
3053
3102
|
key: string;
|
|
@@ -3098,6 +3147,7 @@ export declare const catalogRegistrationSchema: z.ZodObject<{
|
|
|
3098
3147
|
method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
3099
3148
|
};
|
|
3100
3149
|
outputSchema?: Record<string, unknown> | undefined;
|
|
3150
|
+
actors?: ("alia" | "agent" | "requester")[] | undefined;
|
|
3101
3151
|
}[];
|
|
3102
3152
|
events: {
|
|
3103
3153
|
type: string;
|
|
@@ -3140,6 +3190,7 @@ export declare const catalogRegistrationSchema: z.ZodObject<{
|
|
|
3140
3190
|
method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
3141
3191
|
};
|
|
3142
3192
|
outputSchema?: Record<string, unknown> | undefined;
|
|
3193
|
+
actors?: ("alia" | "agent" | "requester")[] | undefined;
|
|
3143
3194
|
limitKeys?: {
|
|
3144
3195
|
kind: "maximum_number" | "exact_boolean";
|
|
3145
3196
|
key: string;
|
|
@@ -3196,6 +3247,7 @@ export declare const catalogRegistrationSchema: z.ZodObject<{
|
|
|
3196
3247
|
method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
3197
3248
|
};
|
|
3198
3249
|
outputSchema?: Record<string, unknown> | undefined;
|
|
3250
|
+
actors?: ("alia" | "agent" | "requester")[] | undefined;
|
|
3199
3251
|
}[];
|
|
3200
3252
|
events: {
|
|
3201
3253
|
type: string;
|
|
@@ -3243,6 +3295,7 @@ export declare const catalogRegistrationSchema: z.ZodObject<{
|
|
|
3243
3295
|
method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
3244
3296
|
};
|
|
3245
3297
|
outputSchema?: Record<string, unknown> | undefined;
|
|
3298
|
+
actors?: ("alia" | "agent" | "requester")[] | undefined;
|
|
3246
3299
|
limitKeys?: {
|
|
3247
3300
|
kind: "maximum_number" | "exact_boolean";
|
|
3248
3301
|
key: string;
|
|
@@ -3340,6 +3393,11 @@ export type PolicyDecision = z.infer<typeof policyDecisionSchema>;
|
|
|
3340
3393
|
export type AuditEvent = z.infer<typeof auditEventSchema>;
|
|
3341
3394
|
export type CatalogTool = z.infer<typeof catalogToolSchema>;
|
|
3342
3395
|
export type CatalogEvent = z.infer<typeof catalogEventSchema>;
|
|
3396
|
+
export type CatalogToolActorType = z.infer<typeof catalogToolActorTypeSchema>;
|
|
3397
|
+
/** The actor types that may execute `tool`: the one reading of an absent `actors`. */
|
|
3398
|
+
export declare function catalogToolActors(tool: Pick<CatalogTool, 'actors'>): readonly CatalogToolActorType[];
|
|
3399
|
+
/** Whether Oxy will authorize `actorType` to execute `tool`. */
|
|
3400
|
+
export declare function catalogToolAllowsActor(tool: Pick<CatalogTool, 'actors'>, actorType: CatalogToolActorType): boolean;
|
|
3343
3401
|
export type AppCapabilityCatalog = z.infer<typeof appCapabilityCatalogSchema>;
|
|
3344
3402
|
export type CatalogFeature = z.infer<typeof catalogFeatureSchema>;
|
|
3345
3403
|
export type CatalogInternalTransport = (typeof CATALOG_INTERNAL_TRANSPORTS)[number];
|
package/dist/types/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export type { AvatarCharacter } from './avatarCharacter';
|
|
|
16
16
|
export { ACCOUNT_ACTOR_NATURES, ACCOUNT_SUBJECT_CONTRACT_VERSION, FINANCIAL_EFFECT_DIRECTIONS, KIND_INDEPENDENT_ACCOUNT_DIMENSIONS, accountActorChainFromSession, accountActorChainSchema, accountActorNatureSchema, accountKindActorNature, accountKindActsAsItself, attributeFinancialEffect, financialEffectAttributionSchema, } from './accountSubject';
|
|
17
17
|
export type { AccountActorChain, AccountActorNature, FinancialEffectAttribution, FinancialEffectDirection, KindIndependentAccountDimension, } from './accountSubject';
|
|
18
18
|
export { usernameSchema, usernameSchemaForAccountKind, isValidUsername, stripDisallowedUsernameCharacters, applyBotUsernameSuffix, USERNAME_MIN_LENGTH, USERNAME_MAX_LENGTH, USERNAME_INVALID_MESSAGE, BOT_USERNAME_INVALID_MESSAGE, RESERVED_USERNAME_MESSAGE, NUMERIC_USERNAME_MESSAGE, } from './username';
|
|
19
|
-
export { userNameSchema, userRelationshipSchema, themePreferenceSchema,
|
|
19
|
+
export { userNameSchema, userRelationshipSchema, themePreferenceSchema, dateOfBirthSchema, userResponseSchema, userProfileUpdateSchema, currentUserResponseSchema, deviceLinkedSessionSchema, deviceLinkedSessionsResponseSchema, resolveUserId, safeParseContract, } from './userResponse';
|
|
20
20
|
export type { UserNameResponse, UserRelationship, ThemePreference, UserResponse, UserProfileUpdate, CurrentUserResponseContract, DeviceLinkedSessionResponse, DeviceLinkedSessionsResponseContract, } from './userResponse';
|
|
21
21
|
export { applicationTypeSchema, publicApplicationSchema, sessionStatusSchema, } from './sessionStatus';
|
|
22
22
|
export type { ApplicationTypeContract, PublicApplicationResponse, SessionStatusResponse, } from './sessionStatus';
|
|
@@ -102,8 +102,8 @@ export { PRODUCT_PLAN_STATUSES, productPlanStatusSchema, LIVE_PRODUCT_PLAN_STATU
|
|
|
102
102
|
export type { ProductPlanStatus, PlanAllowance, ProductPlan, PayAsYouGoEntitlement, CostCenterStatus, CostCenter, CostCenterSpend, ProductEntitlement, } from './inference/entitlement';
|
|
103
103
|
export { INFERENCE_ECONOMIC_TREATMENTS, inferenceEconomicTreatmentSchema, PROVIDER_COST_SOURCES, providerCostSourceSchema, costCenterUsageSchema, } from './inference/economics';
|
|
104
104
|
export type { InferenceEconomicTreatment, ProviderCostSource, CostCenterUsage, } from './inference/economics';
|
|
105
|
-
export { AUTONOMY_LEVELS, CAPABILITY_PACKAGES, autonomyLevelSchema, capabilityPackageSchema, actorRefSchema, executionActorRefSchema, foregroundExecutionAuthorizationInputSchema, resourceRefSchema, toolGrantOverrideSchema, grantLimitSchema, capabilityCatalogBindingSchema, executionAuthorizationRefSchema, capabilityCoordinatorSchema, capabilityTicketRequestSchema, delegationGrantSchema, AGENT_REQUESTER_CEILING_AUTONOMY, agentRequesterCeilingWriteSchema, agentRequesterCeilingSchema, APPLICATION_AGENT_AVAILABILITIES, applicationAgentAvailabilitySchema, applicationAgentWriteSchema, applicationAgentSchema, agentAvailabilitySchema, automationTriggerSchema, automationActorSelectionSchema, automationDataFlowSchema, automationDefinitionSchema, capabilityTicketClaimsSchema, invocationPrincipalSchema, policyDecisionSchema, auditResultSchema, auditEventSchema, catalogToolSchema, catalogEventSchema, catalogFeatureSchema, CATALOG_INTERNAL_TRANSPORTS, appCapabilityCatalogSchema, catalogRegistrationSchema, normalizedAppEventSchema, } from './agency';
|
|
106
|
-
export type { AutonomyLevel, CapabilityPackage, ActorRef, ExecutionActorRef, ForegroundExecutionAuthorizationInput, ResourceRef, ToolGrantOverride, GrantLimit, CapabilityCatalogBinding, ExecutionAuthorizationRef, CapabilityCoordinator, CapabilityTicketRequest, DelegationGrant, AutomationTrigger, AutomationActorSelection, AutomationDefinition, CapabilityTicketClaims, InvocationPrincipal, PolicyDecision, AuditEvent, CatalogTool, CatalogEvent, AppCapabilityCatalog, CatalogFeature, CatalogInternalTransport, AgentRequesterCeilingWrite, AgentRequesterCeiling, AgentRequesterCeilingAutonomy, ApplicationAgentAvailability, ApplicationAgentWrite, ApplicationAgent, AgentAvailability, CatalogRegistration, NormalizedAppEvent, } from './agency';
|
|
105
|
+
export { AUTONOMY_LEVELS, CAPABILITY_PACKAGES, autonomyLevelSchema, capabilityPackageSchema, actorRefSchema, executionActorRefSchema, foregroundExecutionAuthorizationInputSchema, resourceRefSchema, toolGrantOverrideSchema, grantLimitSchema, capabilityCatalogBindingSchema, executionAuthorizationRefSchema, capabilityCoordinatorSchema, capabilityTicketRequestSchema, delegationGrantSchema, AGENT_REQUESTER_CEILING_AUTONOMY, agentRequesterCeilingWriteSchema, agentRequesterCeilingSchema, APPLICATION_AGENT_AVAILABILITIES, applicationAgentAvailabilitySchema, applicationAgentWriteSchema, applicationAgentSchema, agentAvailabilitySchema, automationTriggerSchema, automationActorSelectionSchema, automationDataFlowSchema, automationDefinitionSchema, capabilityTicketClaimsSchema, invocationPrincipalSchema, policyDecisionSchema, auditResultSchema, auditEventSchema, CATALOG_TOOL_ACTOR_TYPES, CATALOG_TOOL_DEFAULT_ACTORS, catalogToolActorTypeSchema, catalogToolActors, catalogToolAllowsActor, catalogToolSchema, catalogEventSchema, catalogFeatureSchema, CATALOG_INTERNAL_TRANSPORTS, appCapabilityCatalogSchema, catalogRegistrationSchema, normalizedAppEventSchema, } from './agency';
|
|
106
|
+
export type { AutonomyLevel, CapabilityPackage, ActorRef, ExecutionActorRef, ForegroundExecutionAuthorizationInput, ResourceRef, ToolGrantOverride, GrantLimit, CapabilityCatalogBinding, ExecutionAuthorizationRef, CapabilityCoordinator, CapabilityTicketRequest, DelegationGrant, AutomationTrigger, AutomationActorSelection, AutomationDefinition, CapabilityTicketClaims, InvocationPrincipal, PolicyDecision, AuditEvent, CatalogTool, CatalogToolActorType, CatalogEvent, AppCapabilityCatalog, CatalogFeature, CatalogInternalTransport, AgentRequesterCeilingWrite, AgentRequesterCeiling, AgentRequesterCeilingAutonomy, ApplicationAgentAvailability, ApplicationAgentWrite, ApplicationAgent, AgentAvailability, CatalogRegistration, NormalizedAppEvent, } from './agency';
|
|
107
107
|
export { catalogInvocationPathParameters, catalogInvocationsOverlap, catalogInvocationTemplatesEquivalent, findOverlappingCatalogInvocations, matchCatalogInvocation, resolveCatalogInvocation, } from './capabilityInvocation';
|
|
108
108
|
export type { CatalogInvocationMatch, CatalogInvocationTemplate, ResolvedCatalogInvocation, } from './capabilityInvocation';
|
|
109
109
|
export { emailContextAddressSchema, emailContextMailboxSchema, emailContextMessageSchema, emailAgentContextSchema, } from './emailAgentContext';
|
|
@@ -132,3 +132,4 @@ export * from './applicationRoles';
|
|
|
132
132
|
export * from './contentClaims';
|
|
133
133
|
export * from './appAssertions';
|
|
134
134
|
export * from './products/one';
|
|
135
|
+
export { USER_PROFILE_COLORS, USER_PROFILE_COLOR_PRESETS, FREE_USER_PROFILE_COLOR_PRESETS, } from './profileColors.generated';
|
package/dist/types/oauth.d.ts
CHANGED
|
@@ -149,6 +149,7 @@ export declare const mcpOAuthWriteActionSchema: z.ZodEffects<z.ZodObject<Pick<{
|
|
|
149
149
|
idempotency: z.ZodEnum<["none", "supported", "required"]>;
|
|
150
150
|
rollback: z.ZodEnum<["none", "manual", "supported"]>;
|
|
151
151
|
exposure: z.ZodArray<z.ZodEnum<["internal", "mcp"]>, "many">;
|
|
152
|
+
actors: z.ZodOptional<z.ZodArray<z.ZodEnum<["alia", "agent", "requester"]>, "many">>;
|
|
152
153
|
limitKeys: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
153
154
|
key: z.ZodString;
|
|
154
155
|
kind: z.ZodEnum<["maximum_number", "exact_boolean"]>;
|
|
@@ -348,6 +349,7 @@ export declare const mcpOAuthConsentContextSchema: z.ZodObject<{
|
|
|
348
349
|
idempotency: z.ZodEnum<["none", "supported", "required"]>;
|
|
349
350
|
rollback: z.ZodEnum<["none", "manual", "supported"]>;
|
|
350
351
|
exposure: z.ZodArray<z.ZodEnum<["internal", "mcp"]>, "many">;
|
|
352
|
+
actors: z.ZodOptional<z.ZodArray<z.ZodEnum<["alia", "agent", "requester"]>, "many">>;
|
|
351
353
|
limitKeys: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
352
354
|
key: z.ZodString;
|
|
353
355
|
kind: z.ZodEnum<["maximum_number", "exact_boolean"]>;
|
|
@@ -723,6 +725,7 @@ export declare const mcpOAuthConsentResponseSchema: z.ZodObject<{
|
|
|
723
725
|
idempotency: z.ZodEnum<["none", "supported", "required"]>;
|
|
724
726
|
rollback: z.ZodEnum<["none", "manual", "supported"]>;
|
|
725
727
|
exposure: z.ZodArray<z.ZodEnum<["internal", "mcp"]>, "many">;
|
|
728
|
+
actors: z.ZodOptional<z.ZodArray<z.ZodEnum<["alia", "agent", "requester"]>, "many">>;
|
|
726
729
|
limitKeys: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
727
730
|
key: z.ZodString;
|
|
728
731
|
kind: z.ZodEnum<["maximum_number", "exact_boolean"]>;
|