@wtfalch/foundry 0.78.1 → 0.79.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.
Files changed (64) hide show
  1. package/dist/catalogue/copy-en.js +5 -0
  2. package/dist/catalogue/integrations.js +5 -0
  3. package/dist/mcp-resources/client.d.ts +16 -0
  4. package/dist/mcp-resources/client.js +69 -0
  5. package/dist/mcp-resources/index.d.ts +3 -0
  6. package/dist/mcp-resources/index.js +3 -0
  7. package/dist/mcp-resources/schema.d.ts +1707 -0
  8. package/dist/mcp-resources/schema.js +253 -0
  9. package/dist/mcp-resources/validation.d.ts +21 -0
  10. package/dist/mcp-resources/validation.js +97 -0
  11. package/dist/modules/ai.js +14 -3
  12. package/dist/modules/customer-grants.js +1 -1
  13. package/dist/modules/email.d.ts +2 -1
  14. package/dist/modules/email.js +3 -2
  15. package/dist/modules/files.js +4 -1
  16. package/dist/modules/index.js +4 -1
  17. package/dist/modules/jobs.js +1 -1
  18. package/dist/modules/mcp-resources.d.ts +2 -0
  19. package/dist/modules/mcp-resources.js +61 -0
  20. package/dist/modules/outputs.js +1 -0
  21. package/dist/modules/repository.d.ts +2 -0
  22. package/dist/modules/repository.js +3 -1
  23. package/dist/modules/workspaces.js +1 -1
  24. package/dist/org.d.ts +3 -0
  25. package/dist/org.js +10 -7
  26. package/dist/plan/ai-apps-minter.d.ts +79 -0
  27. package/dist/plan/ai-apps-minter.js +263 -0
  28. package/dist/plan/ai-boule-key.d.ts +1 -1
  29. package/dist/plan/ai-boule-key.js +10 -3
  30. package/dist/plan/broker-entries.js +4 -4
  31. package/dist/plan/diff.d.ts +6 -0
  32. package/dist/plan/diff.js +33 -13
  33. package/dist/plan/entry-ai-key.d.ts +2 -0
  34. package/dist/plan/entry-ai-key.js +4 -2
  35. package/dist/plan/entry-customer-grants.d.ts +1 -1
  36. package/dist/plan/entry-customer-grants.js +4 -2
  37. package/dist/plan/entry-files-key.d.ts +10 -0
  38. package/dist/plan/entry-files-key.js +6 -1
  39. package/dist/plan/entry-jobs-boule-key.js +1 -1
  40. package/dist/plan/entry-jobs.js +1 -1
  41. package/dist/plan/entry-repo-key.js +2 -2
  42. package/dist/plan/entry-workspaces.d.ts +5 -0
  43. package/dist/plan/entry-workspaces.js +3 -1
  44. package/dist/plan/executor.d.ts +27 -0
  45. package/dist/plan/executor.js +125 -4
  46. package/dist/plan/files-apps-minter.d.ts +131 -0
  47. package/dist/plan/files-apps-minter.js +336 -0
  48. package/dist/plan/files-boule-key.js +2 -2
  49. package/dist/plan/files-space-alert.js +3 -3
  50. package/dist/plan/jobs-apps-key.d.ts +29 -0
  51. package/dist/plan/jobs-apps-key.js +228 -0
  52. package/dist/plan/jobs-project-settings.js +2 -0
  53. package/dist/plan/jobs-scheduler-http.d.ts +7 -0
  54. package/dist/plan/jobs-scheduler-http.js +32 -1
  55. package/dist/plan/own-jobs-route.d.ts +1 -1
  56. package/dist/plan/own-jobs-route.js +1 -1
  57. package/dist/plan/plan-apply.d.ts +6 -0
  58. package/dist/plan/plan-apply.js +45 -3
  59. package/dist/plan/platform-diff.d.ts +1 -1
  60. package/dist/plan/platform-diff.js +3 -2
  61. package/dist/release/state.d.ts +1 -1
  62. package/dist/store/schema.d.ts +2 -2
  63. package/dist/worker-app-config.js +11 -2
  64. package/package.json +5 -1
@@ -0,0 +1,1707 @@
1
+ import { z } from 'zod';
2
+ export declare const MCP_RESOURCE_CONTRACT_VERSION: 1;
3
+ export declare const McpResourceNamespaceSchema: z.ZodObject<{
4
+ providerTenantId: z.ZodString;
5
+ appId: z.ZodString;
6
+ copyId: z.ZodString;
7
+ }, z.core.$strict>;
8
+ export type McpResourceNamespace = z.infer<typeof McpResourceNamespaceSchema>;
9
+ export declare const McpResourceKeySchema: z.ZodObject<{
10
+ providerTenantId: z.ZodString;
11
+ appId: z.ZodString;
12
+ copyId: z.ZodString;
13
+ resourceId: z.ZodString;
14
+ }, z.core.$strict>;
15
+ export type McpResourceKey = z.infer<typeof McpResourceKeySchema>;
16
+ export declare const McpResourceScopeSchema: z.ZodObject<{
17
+ id: z.ZodString;
18
+ title: z.ZodOptional<z.ZodString>;
19
+ description: z.ZodString;
20
+ }, z.core.$strict>;
21
+ export type McpResourceScope = z.infer<typeof McpResourceScopeSchema>;
22
+ export declare const McpResourceBrandingSchema: z.ZodObject<{
23
+ displayName: z.ZodString;
24
+ description: z.ZodOptional<z.ZodString>;
25
+ locale: z.ZodOptional<z.ZodString>;
26
+ }, z.core.$strict>;
27
+ export type McpResourceBranding = z.infer<typeof McpResourceBrandingSchema>;
28
+ export declare const McpResourceAdmissionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
29
+ mode: z.ZodLiteral<"unrestricted">;
30
+ }, z.core.$strict>, z.ZodObject<{
31
+ mode: z.ZodLiteral<"application-approval">;
32
+ policyId: z.ZodString;
33
+ requiredEvidence: z.ZodArray<z.ZodEnum<{
34
+ provider: "provider";
35
+ "authentication-method": "authentication-method";
36
+ "authentication-time": "authentication-time";
37
+ groups: "groups";
38
+ }>>;
39
+ returnPath: z.ZodString;
40
+ }, z.core.$strict>], "mode">;
41
+ export type McpResourceAdmission = z.infer<typeof McpResourceAdmissionSchema>;
42
+ export declare const McpResourceDesiredSchema: z.ZodObject<{
43
+ state: z.ZodEnum<{
44
+ active: "active";
45
+ suspended: "suspended";
46
+ retired: "retired";
47
+ }>;
48
+ configurationRevision: z.ZodNumber;
49
+ policyRevision: z.ZodNumber;
50
+ denyEpoch: z.ZodNumber;
51
+ scopes: z.ZodArray<z.ZodObject<{
52
+ id: z.ZodString;
53
+ title: z.ZodOptional<z.ZodString>;
54
+ description: z.ZodString;
55
+ }, z.core.$strict>>;
56
+ admission: z.ZodDiscriminatedUnion<[z.ZodObject<{
57
+ mode: z.ZodLiteral<"unrestricted">;
58
+ }, z.core.$strict>, z.ZodObject<{
59
+ mode: z.ZodLiteral<"application-approval">;
60
+ policyId: z.ZodString;
61
+ requiredEvidence: z.ZodArray<z.ZodEnum<{
62
+ provider: "provider";
63
+ "authentication-method": "authentication-method";
64
+ "authentication-time": "authentication-time";
65
+ groups: "groups";
66
+ }>>;
67
+ returnPath: z.ZodString;
68
+ }, z.core.$strict>], "mode">;
69
+ branding: z.ZodOptional<z.ZodObject<{
70
+ displayName: z.ZodString;
71
+ description: z.ZodOptional<z.ZodString>;
72
+ locale: z.ZodOptional<z.ZodString>;
73
+ }, z.core.$strict>>;
74
+ }, z.core.$strict>;
75
+ export type McpResourceDesired = z.infer<typeof McpResourceDesiredSchema>;
76
+ export declare const McpResourceIdentitySchema: z.ZodObject<{
77
+ registrationId: z.ZodString;
78
+ resourceUri: z.ZodString;
79
+ audience: z.ZodString;
80
+ issuer: z.ZodUnion<[z.ZodString, z.ZodString]>;
81
+ }, z.core.$strict>;
82
+ export type McpResourceIdentity = z.infer<typeof McpResourceIdentitySchema>;
83
+ export declare const McpResourcePhaseSchema: z.ZodEnum<{
84
+ registry: "registry";
85
+ registration: "registration";
86
+ discovery: "discovery";
87
+ runtime: "runtime";
88
+ revocation: "revocation";
89
+ cleanup: "cleanup";
90
+ complete: "complete";
91
+ }>;
92
+ export type McpResourcePhase = z.infer<typeof McpResourcePhaseSchema>;
93
+ export declare const McpResourceObservedSchema: z.ZodObject<{
94
+ state: z.ZodEnum<{
95
+ active: "active";
96
+ suspended: "suspended";
97
+ retired: "retired";
98
+ absent: "absent";
99
+ applying: "applying";
100
+ retiring: "retiring";
101
+ }>;
102
+ configurationRevision: z.ZodNullable<z.ZodNumber>;
103
+ policyRevision: z.ZodNullable<z.ZodNumber>;
104
+ denyEpoch: z.ZodNumber;
105
+ phase: z.ZodEnum<{
106
+ registry: "registry";
107
+ registration: "registration";
108
+ discovery: "discovery";
109
+ runtime: "runtime";
110
+ revocation: "revocation";
111
+ cleanup: "cleanup";
112
+ complete: "complete";
113
+ }>;
114
+ revocation: z.ZodEnum<{
115
+ complete: "complete";
116
+ "not-required": "not-required";
117
+ pending: "pending";
118
+ }>;
119
+ cleanup: z.ZodEnum<{
120
+ complete: "complete";
121
+ "not-required": "not-required";
122
+ pending: "pending";
123
+ }>;
124
+ }, z.core.$strict>;
125
+ export type McpResourceObserved = z.infer<typeof McpResourceObservedSchema>;
126
+ export declare const McpResourceSnapshotSchema: z.ZodObject<{
127
+ version: z.ZodLiteral<1>;
128
+ key: z.ZodObject<{
129
+ providerTenantId: z.ZodString;
130
+ appId: z.ZodString;
131
+ copyId: z.ZodString;
132
+ resourceId: z.ZodString;
133
+ }, z.core.$strict>;
134
+ generation: z.ZodNumber;
135
+ identity: z.ZodNullable<z.ZodObject<{
136
+ registrationId: z.ZodString;
137
+ resourceUri: z.ZodString;
138
+ audience: z.ZodString;
139
+ issuer: z.ZodUnion<[z.ZodString, z.ZodString]>;
140
+ }, z.core.$strict>>;
141
+ desired: z.ZodObject<{
142
+ state: z.ZodEnum<{
143
+ active: "active";
144
+ suspended: "suspended";
145
+ retired: "retired";
146
+ }>;
147
+ configurationRevision: z.ZodNumber;
148
+ policyRevision: z.ZodNumber;
149
+ denyEpoch: z.ZodNumber;
150
+ scopes: z.ZodArray<z.ZodObject<{
151
+ id: z.ZodString;
152
+ title: z.ZodOptional<z.ZodString>;
153
+ description: z.ZodString;
154
+ }, z.core.$strict>>;
155
+ admission: z.ZodDiscriminatedUnion<[z.ZodObject<{
156
+ mode: z.ZodLiteral<"unrestricted">;
157
+ }, z.core.$strict>, z.ZodObject<{
158
+ mode: z.ZodLiteral<"application-approval">;
159
+ policyId: z.ZodString;
160
+ requiredEvidence: z.ZodArray<z.ZodEnum<{
161
+ provider: "provider";
162
+ "authentication-method": "authentication-method";
163
+ "authentication-time": "authentication-time";
164
+ groups: "groups";
165
+ }>>;
166
+ returnPath: z.ZodString;
167
+ }, z.core.$strict>], "mode">;
168
+ branding: z.ZodOptional<z.ZodObject<{
169
+ displayName: z.ZodString;
170
+ description: z.ZodOptional<z.ZodString>;
171
+ locale: z.ZodOptional<z.ZodString>;
172
+ }, z.core.$strict>>;
173
+ }, z.core.$strict>;
174
+ observed: z.ZodObject<{
175
+ state: z.ZodEnum<{
176
+ active: "active";
177
+ suspended: "suspended";
178
+ retired: "retired";
179
+ absent: "absent";
180
+ applying: "applying";
181
+ retiring: "retiring";
182
+ }>;
183
+ configurationRevision: z.ZodNullable<z.ZodNumber>;
184
+ policyRevision: z.ZodNullable<z.ZodNumber>;
185
+ denyEpoch: z.ZodNumber;
186
+ phase: z.ZodEnum<{
187
+ registry: "registry";
188
+ registration: "registration";
189
+ discovery: "discovery";
190
+ runtime: "runtime";
191
+ revocation: "revocation";
192
+ cleanup: "cleanup";
193
+ complete: "complete";
194
+ }>;
195
+ revocation: z.ZodEnum<{
196
+ complete: "complete";
197
+ "not-required": "not-required";
198
+ pending: "pending";
199
+ }>;
200
+ cleanup: z.ZodEnum<{
201
+ complete: "complete";
202
+ "not-required": "not-required";
203
+ pending: "pending";
204
+ }>;
205
+ }, z.core.$strict>;
206
+ }, z.core.$strict>;
207
+ export type McpResourceSnapshot = z.infer<typeof McpResourceSnapshotSchema>;
208
+ export declare const McpResourceApplyRequestSchema: z.ZodObject<{
209
+ version: z.ZodLiteral<1>;
210
+ key: z.ZodObject<{
211
+ providerTenantId: z.ZodString;
212
+ appId: z.ZodString;
213
+ copyId: z.ZodString;
214
+ resourceId: z.ZodString;
215
+ }, z.core.$strict>;
216
+ operationId: z.ZodString;
217
+ expectedGeneration: z.ZodNullable<z.ZodNumber>;
218
+ desired: z.ZodObject<{
219
+ state: z.ZodEnum<{
220
+ active: "active";
221
+ suspended: "suspended";
222
+ retired: "retired";
223
+ }>;
224
+ configurationRevision: z.ZodNumber;
225
+ policyRevision: z.ZodNumber;
226
+ denyEpoch: z.ZodNumber;
227
+ scopes: z.ZodArray<z.ZodObject<{
228
+ id: z.ZodString;
229
+ title: z.ZodOptional<z.ZodString>;
230
+ description: z.ZodString;
231
+ }, z.core.$strict>>;
232
+ admission: z.ZodDiscriminatedUnion<[z.ZodObject<{
233
+ mode: z.ZodLiteral<"unrestricted">;
234
+ }, z.core.$strict>, z.ZodObject<{
235
+ mode: z.ZodLiteral<"application-approval">;
236
+ policyId: z.ZodString;
237
+ requiredEvidence: z.ZodArray<z.ZodEnum<{
238
+ provider: "provider";
239
+ "authentication-method": "authentication-method";
240
+ "authentication-time": "authentication-time";
241
+ groups: "groups";
242
+ }>>;
243
+ returnPath: z.ZodString;
244
+ }, z.core.$strict>], "mode">;
245
+ branding: z.ZodOptional<z.ZodObject<{
246
+ displayName: z.ZodString;
247
+ description: z.ZodOptional<z.ZodString>;
248
+ locale: z.ZodOptional<z.ZodString>;
249
+ }, z.core.$strict>>;
250
+ }, z.core.$strict>;
251
+ }, z.core.$strict>;
252
+ export type McpResourceApplyRequest = z.infer<typeof McpResourceApplyRequestSchema>;
253
+ export declare const McpResourceReadRequestSchema: z.ZodObject<{
254
+ version: z.ZodLiteral<1>;
255
+ key: z.ZodObject<{
256
+ providerTenantId: z.ZodString;
257
+ appId: z.ZodString;
258
+ copyId: z.ZodString;
259
+ resourceId: z.ZodString;
260
+ }, z.core.$strict>;
261
+ }, z.core.$strict>;
262
+ export type McpResourceReadRequest = z.infer<typeof McpResourceReadRequestSchema>;
263
+ export declare const McpResourceListRequestSchema: z.ZodObject<{
264
+ version: z.ZodLiteral<1>;
265
+ namespace: z.ZodObject<{
266
+ providerTenantId: z.ZodString;
267
+ appId: z.ZodString;
268
+ copyId: z.ZodString;
269
+ }, z.core.$strict>;
270
+ cursor: z.ZodOptional<z.ZodString>;
271
+ }, z.core.$strict>;
272
+ export type McpResourceListRequest = z.infer<typeof McpResourceListRequestSchema>;
273
+ export declare const McpResourceOperationRequestSchema: z.ZodObject<{
274
+ version: z.ZodLiteral<1>;
275
+ key: z.ZodObject<{
276
+ providerTenantId: z.ZodString;
277
+ appId: z.ZodString;
278
+ copyId: z.ZodString;
279
+ resourceId: z.ZodString;
280
+ }, z.core.$strict>;
281
+ operationId: z.ZodString;
282
+ }, z.core.$strict>;
283
+ export type McpResourceOperationRequest = z.infer<typeof McpResourceOperationRequestSchema>;
284
+ export declare const McpResourceFailureSchema: z.ZodObject<{
285
+ code: z.ZodEnum<{
286
+ retired: "retired";
287
+ forbidden: "forbidden";
288
+ "invalid-request": "invalid-request";
289
+ "generation-mismatch": "generation-mismatch";
290
+ "idempotency-mismatch": "idempotency-mismatch";
291
+ "revision-regression": "revision-regression";
292
+ "backend-unsupported": "backend-unsupported";
293
+ "backend-unavailable": "backend-unavailable";
294
+ "provider-failure": "provider-failure";
295
+ "invalid-response": "invalid-response";
296
+ "transport-failure": "transport-failure";
297
+ }>;
298
+ phase: z.ZodEnum<{
299
+ registry: "registry";
300
+ registration: "registration";
301
+ discovery: "discovery";
302
+ runtime: "runtime";
303
+ revocation: "revocation";
304
+ cleanup: "cleanup";
305
+ complete: "complete";
306
+ }>;
307
+ }, z.core.$strict>;
308
+ export type McpResourceFailure = z.infer<typeof McpResourceFailureSchema>;
309
+ export declare const McpResourceRecoverySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
310
+ action: z.ZodLiteral<"poll-operation">;
311
+ afterMs: z.ZodNumber;
312
+ }, z.core.$strict>, z.ZodObject<{
313
+ action: z.ZodLiteral<"retry-same-operation">;
314
+ afterMs: z.ZodNumber;
315
+ }, z.core.$strict>, z.ZodObject<{
316
+ action: z.ZodLiteral<"read-resource">;
317
+ }, z.core.$strict>, z.ZodObject<{
318
+ action: z.ZodLiteral<"operator-intervention">;
319
+ }, z.core.$strict>, z.ZodObject<{
320
+ action: z.ZodLiteral<"none">;
321
+ }, z.core.$strict>], "action">;
322
+ export type McpResourceRecovery = z.infer<typeof McpResourceRecoverySchema>;
323
+ export declare const McpResourceApplyResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
324
+ outcome: z.ZodLiteral<"applied">;
325
+ snapshot: z.ZodObject<{
326
+ version: z.ZodLiteral<1>;
327
+ key: z.ZodObject<{
328
+ providerTenantId: z.ZodString;
329
+ appId: z.ZodString;
330
+ copyId: z.ZodString;
331
+ resourceId: z.ZodString;
332
+ }, z.core.$strict>;
333
+ generation: z.ZodNumber;
334
+ identity: z.ZodNullable<z.ZodObject<{
335
+ registrationId: z.ZodString;
336
+ resourceUri: z.ZodString;
337
+ audience: z.ZodString;
338
+ issuer: z.ZodUnion<[z.ZodString, z.ZodString]>;
339
+ }, z.core.$strict>>;
340
+ desired: z.ZodObject<{
341
+ state: z.ZodEnum<{
342
+ active: "active";
343
+ suspended: "suspended";
344
+ retired: "retired";
345
+ }>;
346
+ configurationRevision: z.ZodNumber;
347
+ policyRevision: z.ZodNumber;
348
+ denyEpoch: z.ZodNumber;
349
+ scopes: z.ZodArray<z.ZodObject<{
350
+ id: z.ZodString;
351
+ title: z.ZodOptional<z.ZodString>;
352
+ description: z.ZodString;
353
+ }, z.core.$strict>>;
354
+ admission: z.ZodDiscriminatedUnion<[z.ZodObject<{
355
+ mode: z.ZodLiteral<"unrestricted">;
356
+ }, z.core.$strict>, z.ZodObject<{
357
+ mode: z.ZodLiteral<"application-approval">;
358
+ policyId: z.ZodString;
359
+ requiredEvidence: z.ZodArray<z.ZodEnum<{
360
+ provider: "provider";
361
+ "authentication-method": "authentication-method";
362
+ "authentication-time": "authentication-time";
363
+ groups: "groups";
364
+ }>>;
365
+ returnPath: z.ZodString;
366
+ }, z.core.$strict>], "mode">;
367
+ branding: z.ZodOptional<z.ZodObject<{
368
+ displayName: z.ZodString;
369
+ description: z.ZodOptional<z.ZodString>;
370
+ locale: z.ZodOptional<z.ZodString>;
371
+ }, z.core.$strict>>;
372
+ }, z.core.$strict>;
373
+ observed: z.ZodObject<{
374
+ state: z.ZodEnum<{
375
+ active: "active";
376
+ suspended: "suspended";
377
+ retired: "retired";
378
+ absent: "absent";
379
+ applying: "applying";
380
+ retiring: "retiring";
381
+ }>;
382
+ configurationRevision: z.ZodNullable<z.ZodNumber>;
383
+ policyRevision: z.ZodNullable<z.ZodNumber>;
384
+ denyEpoch: z.ZodNumber;
385
+ phase: z.ZodEnum<{
386
+ registry: "registry";
387
+ registration: "registration";
388
+ discovery: "discovery";
389
+ runtime: "runtime";
390
+ revocation: "revocation";
391
+ cleanup: "cleanup";
392
+ complete: "complete";
393
+ }>;
394
+ revocation: z.ZodEnum<{
395
+ complete: "complete";
396
+ "not-required": "not-required";
397
+ pending: "pending";
398
+ }>;
399
+ cleanup: z.ZodEnum<{
400
+ complete: "complete";
401
+ "not-required": "not-required";
402
+ pending: "pending";
403
+ }>;
404
+ }, z.core.$strict>;
405
+ }, z.core.$strict>;
406
+ operationId: z.ZodString;
407
+ version: z.ZodLiteral<1>;
408
+ }, z.core.$strict>, z.ZodObject<{
409
+ outcome: z.ZodLiteral<"pending">;
410
+ snapshot: z.ZodObject<{
411
+ version: z.ZodLiteral<1>;
412
+ key: z.ZodObject<{
413
+ providerTenantId: z.ZodString;
414
+ appId: z.ZodString;
415
+ copyId: z.ZodString;
416
+ resourceId: z.ZodString;
417
+ }, z.core.$strict>;
418
+ generation: z.ZodNumber;
419
+ identity: z.ZodNullable<z.ZodObject<{
420
+ registrationId: z.ZodString;
421
+ resourceUri: z.ZodString;
422
+ audience: z.ZodString;
423
+ issuer: z.ZodUnion<[z.ZodString, z.ZodString]>;
424
+ }, z.core.$strict>>;
425
+ desired: z.ZodObject<{
426
+ state: z.ZodEnum<{
427
+ active: "active";
428
+ suspended: "suspended";
429
+ retired: "retired";
430
+ }>;
431
+ configurationRevision: z.ZodNumber;
432
+ policyRevision: z.ZodNumber;
433
+ denyEpoch: z.ZodNumber;
434
+ scopes: z.ZodArray<z.ZodObject<{
435
+ id: z.ZodString;
436
+ title: z.ZodOptional<z.ZodString>;
437
+ description: z.ZodString;
438
+ }, z.core.$strict>>;
439
+ admission: z.ZodDiscriminatedUnion<[z.ZodObject<{
440
+ mode: z.ZodLiteral<"unrestricted">;
441
+ }, z.core.$strict>, z.ZodObject<{
442
+ mode: z.ZodLiteral<"application-approval">;
443
+ policyId: z.ZodString;
444
+ requiredEvidence: z.ZodArray<z.ZodEnum<{
445
+ provider: "provider";
446
+ "authentication-method": "authentication-method";
447
+ "authentication-time": "authentication-time";
448
+ groups: "groups";
449
+ }>>;
450
+ returnPath: z.ZodString;
451
+ }, z.core.$strict>], "mode">;
452
+ branding: z.ZodOptional<z.ZodObject<{
453
+ displayName: z.ZodString;
454
+ description: z.ZodOptional<z.ZodString>;
455
+ locale: z.ZodOptional<z.ZodString>;
456
+ }, z.core.$strict>>;
457
+ }, z.core.$strict>;
458
+ observed: z.ZodObject<{
459
+ state: z.ZodEnum<{
460
+ active: "active";
461
+ suspended: "suspended";
462
+ retired: "retired";
463
+ absent: "absent";
464
+ applying: "applying";
465
+ retiring: "retiring";
466
+ }>;
467
+ configurationRevision: z.ZodNullable<z.ZodNumber>;
468
+ policyRevision: z.ZodNullable<z.ZodNumber>;
469
+ denyEpoch: z.ZodNumber;
470
+ phase: z.ZodEnum<{
471
+ registry: "registry";
472
+ registration: "registration";
473
+ discovery: "discovery";
474
+ runtime: "runtime";
475
+ revocation: "revocation";
476
+ cleanup: "cleanup";
477
+ complete: "complete";
478
+ }>;
479
+ revocation: z.ZodEnum<{
480
+ complete: "complete";
481
+ "not-required": "not-required";
482
+ pending: "pending";
483
+ }>;
484
+ cleanup: z.ZodEnum<{
485
+ complete: "complete";
486
+ "not-required": "not-required";
487
+ pending: "pending";
488
+ }>;
489
+ }, z.core.$strict>;
490
+ }, z.core.$strict>;
491
+ recovery: z.ZodDiscriminatedUnion<[z.ZodObject<{
492
+ action: z.ZodLiteral<"poll-operation">;
493
+ afterMs: z.ZodNumber;
494
+ }, z.core.$strict>, z.ZodObject<{
495
+ action: z.ZodLiteral<"retry-same-operation">;
496
+ afterMs: z.ZodNumber;
497
+ }, z.core.$strict>, z.ZodObject<{
498
+ action: z.ZodLiteral<"read-resource">;
499
+ }, z.core.$strict>, z.ZodObject<{
500
+ action: z.ZodLiteral<"operator-intervention">;
501
+ }, z.core.$strict>, z.ZodObject<{
502
+ action: z.ZodLiteral<"none">;
503
+ }, z.core.$strict>], "action">;
504
+ operationId: z.ZodString;
505
+ version: z.ZodLiteral<1>;
506
+ }, z.core.$strict>, z.ZodObject<{
507
+ failure: z.ZodObject<{
508
+ code: z.ZodEnum<{
509
+ retired: "retired";
510
+ forbidden: "forbidden";
511
+ "invalid-request": "invalid-request";
512
+ "generation-mismatch": "generation-mismatch";
513
+ "idempotency-mismatch": "idempotency-mismatch";
514
+ "revision-regression": "revision-regression";
515
+ "backend-unsupported": "backend-unsupported";
516
+ "backend-unavailable": "backend-unavailable";
517
+ "provider-failure": "provider-failure";
518
+ "invalid-response": "invalid-response";
519
+ "transport-failure": "transport-failure";
520
+ }>;
521
+ phase: z.ZodEnum<{
522
+ registry: "registry";
523
+ registration: "registration";
524
+ discovery: "discovery";
525
+ runtime: "runtime";
526
+ revocation: "revocation";
527
+ cleanup: "cleanup";
528
+ complete: "complete";
529
+ }>;
530
+ }, z.core.$strict>;
531
+ recovery: z.ZodDiscriminatedUnion<[z.ZodObject<{
532
+ action: z.ZodLiteral<"poll-operation">;
533
+ afterMs: z.ZodNumber;
534
+ }, z.core.$strict>, z.ZodObject<{
535
+ action: z.ZodLiteral<"retry-same-operation">;
536
+ afterMs: z.ZodNumber;
537
+ }, z.core.$strict>, z.ZodObject<{
538
+ action: z.ZodLiteral<"read-resource">;
539
+ }, z.core.$strict>, z.ZodObject<{
540
+ action: z.ZodLiteral<"operator-intervention">;
541
+ }, z.core.$strict>, z.ZodObject<{
542
+ action: z.ZodLiteral<"none">;
543
+ }, z.core.$strict>], "action">;
544
+ outcome: z.ZodLiteral<"partial">;
545
+ snapshot: z.ZodObject<{
546
+ version: z.ZodLiteral<1>;
547
+ key: z.ZodObject<{
548
+ providerTenantId: z.ZodString;
549
+ appId: z.ZodString;
550
+ copyId: z.ZodString;
551
+ resourceId: z.ZodString;
552
+ }, z.core.$strict>;
553
+ generation: z.ZodNumber;
554
+ identity: z.ZodNullable<z.ZodObject<{
555
+ registrationId: z.ZodString;
556
+ resourceUri: z.ZodString;
557
+ audience: z.ZodString;
558
+ issuer: z.ZodUnion<[z.ZodString, z.ZodString]>;
559
+ }, z.core.$strict>>;
560
+ desired: z.ZodObject<{
561
+ state: z.ZodEnum<{
562
+ active: "active";
563
+ suspended: "suspended";
564
+ retired: "retired";
565
+ }>;
566
+ configurationRevision: z.ZodNumber;
567
+ policyRevision: z.ZodNumber;
568
+ denyEpoch: z.ZodNumber;
569
+ scopes: z.ZodArray<z.ZodObject<{
570
+ id: z.ZodString;
571
+ title: z.ZodOptional<z.ZodString>;
572
+ description: z.ZodString;
573
+ }, z.core.$strict>>;
574
+ admission: z.ZodDiscriminatedUnion<[z.ZodObject<{
575
+ mode: z.ZodLiteral<"unrestricted">;
576
+ }, z.core.$strict>, z.ZodObject<{
577
+ mode: z.ZodLiteral<"application-approval">;
578
+ policyId: z.ZodString;
579
+ requiredEvidence: z.ZodArray<z.ZodEnum<{
580
+ provider: "provider";
581
+ "authentication-method": "authentication-method";
582
+ "authentication-time": "authentication-time";
583
+ groups: "groups";
584
+ }>>;
585
+ returnPath: z.ZodString;
586
+ }, z.core.$strict>], "mode">;
587
+ branding: z.ZodOptional<z.ZodObject<{
588
+ displayName: z.ZodString;
589
+ description: z.ZodOptional<z.ZodString>;
590
+ locale: z.ZodOptional<z.ZodString>;
591
+ }, z.core.$strict>>;
592
+ }, z.core.$strict>;
593
+ observed: z.ZodObject<{
594
+ state: z.ZodEnum<{
595
+ active: "active";
596
+ suspended: "suspended";
597
+ retired: "retired";
598
+ absent: "absent";
599
+ applying: "applying";
600
+ retiring: "retiring";
601
+ }>;
602
+ configurationRevision: z.ZodNullable<z.ZodNumber>;
603
+ policyRevision: z.ZodNullable<z.ZodNumber>;
604
+ denyEpoch: z.ZodNumber;
605
+ phase: z.ZodEnum<{
606
+ registry: "registry";
607
+ registration: "registration";
608
+ discovery: "discovery";
609
+ runtime: "runtime";
610
+ revocation: "revocation";
611
+ cleanup: "cleanup";
612
+ complete: "complete";
613
+ }>;
614
+ revocation: z.ZodEnum<{
615
+ complete: "complete";
616
+ "not-required": "not-required";
617
+ pending: "pending";
618
+ }>;
619
+ cleanup: z.ZodEnum<{
620
+ complete: "complete";
621
+ "not-required": "not-required";
622
+ pending: "pending";
623
+ }>;
624
+ }, z.core.$strict>;
625
+ }, z.core.$strict>;
626
+ operationId: z.ZodString;
627
+ version: z.ZodLiteral<1>;
628
+ }, z.core.$strict>, z.ZodObject<{
629
+ failure: z.ZodObject<{
630
+ code: z.ZodEnum<{
631
+ retired: "retired";
632
+ forbidden: "forbidden";
633
+ "invalid-request": "invalid-request";
634
+ "generation-mismatch": "generation-mismatch";
635
+ "idempotency-mismatch": "idempotency-mismatch";
636
+ "revision-regression": "revision-regression";
637
+ "backend-unsupported": "backend-unsupported";
638
+ "backend-unavailable": "backend-unavailable";
639
+ "provider-failure": "provider-failure";
640
+ "invalid-response": "invalid-response";
641
+ "transport-failure": "transport-failure";
642
+ }>;
643
+ phase: z.ZodEnum<{
644
+ registry: "registry";
645
+ registration: "registration";
646
+ discovery: "discovery";
647
+ runtime: "runtime";
648
+ revocation: "revocation";
649
+ cleanup: "cleanup";
650
+ complete: "complete";
651
+ }>;
652
+ }, z.core.$strict>;
653
+ recovery: z.ZodDiscriminatedUnion<[z.ZodObject<{
654
+ action: z.ZodLiteral<"poll-operation">;
655
+ afterMs: z.ZodNumber;
656
+ }, z.core.$strict>, z.ZodObject<{
657
+ action: z.ZodLiteral<"retry-same-operation">;
658
+ afterMs: z.ZodNumber;
659
+ }, z.core.$strict>, z.ZodObject<{
660
+ action: z.ZodLiteral<"read-resource">;
661
+ }, z.core.$strict>, z.ZodObject<{
662
+ action: z.ZodLiteral<"operator-intervention">;
663
+ }, z.core.$strict>, z.ZodObject<{
664
+ action: z.ZodLiteral<"none">;
665
+ }, z.core.$strict>], "action">;
666
+ outcome: z.ZodLiteral<"conflict">;
667
+ snapshot: z.ZodNullable<z.ZodObject<{
668
+ version: z.ZodLiteral<1>;
669
+ key: z.ZodObject<{
670
+ providerTenantId: z.ZodString;
671
+ appId: z.ZodString;
672
+ copyId: z.ZodString;
673
+ resourceId: z.ZodString;
674
+ }, z.core.$strict>;
675
+ generation: z.ZodNumber;
676
+ identity: z.ZodNullable<z.ZodObject<{
677
+ registrationId: z.ZodString;
678
+ resourceUri: z.ZodString;
679
+ audience: z.ZodString;
680
+ issuer: z.ZodUnion<[z.ZodString, z.ZodString]>;
681
+ }, z.core.$strict>>;
682
+ desired: z.ZodObject<{
683
+ state: z.ZodEnum<{
684
+ active: "active";
685
+ suspended: "suspended";
686
+ retired: "retired";
687
+ }>;
688
+ configurationRevision: z.ZodNumber;
689
+ policyRevision: z.ZodNumber;
690
+ denyEpoch: z.ZodNumber;
691
+ scopes: z.ZodArray<z.ZodObject<{
692
+ id: z.ZodString;
693
+ title: z.ZodOptional<z.ZodString>;
694
+ description: z.ZodString;
695
+ }, z.core.$strict>>;
696
+ admission: z.ZodDiscriminatedUnion<[z.ZodObject<{
697
+ mode: z.ZodLiteral<"unrestricted">;
698
+ }, z.core.$strict>, z.ZodObject<{
699
+ mode: z.ZodLiteral<"application-approval">;
700
+ policyId: z.ZodString;
701
+ requiredEvidence: z.ZodArray<z.ZodEnum<{
702
+ provider: "provider";
703
+ "authentication-method": "authentication-method";
704
+ "authentication-time": "authentication-time";
705
+ groups: "groups";
706
+ }>>;
707
+ returnPath: z.ZodString;
708
+ }, z.core.$strict>], "mode">;
709
+ branding: z.ZodOptional<z.ZodObject<{
710
+ displayName: z.ZodString;
711
+ description: z.ZodOptional<z.ZodString>;
712
+ locale: z.ZodOptional<z.ZodString>;
713
+ }, z.core.$strict>>;
714
+ }, z.core.$strict>;
715
+ observed: z.ZodObject<{
716
+ state: z.ZodEnum<{
717
+ active: "active";
718
+ suspended: "suspended";
719
+ retired: "retired";
720
+ absent: "absent";
721
+ applying: "applying";
722
+ retiring: "retiring";
723
+ }>;
724
+ configurationRevision: z.ZodNullable<z.ZodNumber>;
725
+ policyRevision: z.ZodNullable<z.ZodNumber>;
726
+ denyEpoch: z.ZodNumber;
727
+ phase: z.ZodEnum<{
728
+ registry: "registry";
729
+ registration: "registration";
730
+ discovery: "discovery";
731
+ runtime: "runtime";
732
+ revocation: "revocation";
733
+ cleanup: "cleanup";
734
+ complete: "complete";
735
+ }>;
736
+ revocation: z.ZodEnum<{
737
+ complete: "complete";
738
+ "not-required": "not-required";
739
+ pending: "pending";
740
+ }>;
741
+ cleanup: z.ZodEnum<{
742
+ complete: "complete";
743
+ "not-required": "not-required";
744
+ pending: "pending";
745
+ }>;
746
+ }, z.core.$strict>;
747
+ }, z.core.$strict>>;
748
+ operationId: z.ZodString;
749
+ version: z.ZodLiteral<1>;
750
+ }, z.core.$strict>, z.ZodObject<{
751
+ failure: z.ZodObject<{
752
+ code: z.ZodEnum<{
753
+ retired: "retired";
754
+ forbidden: "forbidden";
755
+ "invalid-request": "invalid-request";
756
+ "generation-mismatch": "generation-mismatch";
757
+ "idempotency-mismatch": "idempotency-mismatch";
758
+ "revision-regression": "revision-regression";
759
+ "backend-unsupported": "backend-unsupported";
760
+ "backend-unavailable": "backend-unavailable";
761
+ "provider-failure": "provider-failure";
762
+ "invalid-response": "invalid-response";
763
+ "transport-failure": "transport-failure";
764
+ }>;
765
+ phase: z.ZodEnum<{
766
+ registry: "registry";
767
+ registration: "registration";
768
+ discovery: "discovery";
769
+ runtime: "runtime";
770
+ revocation: "revocation";
771
+ cleanup: "cleanup";
772
+ complete: "complete";
773
+ }>;
774
+ }, z.core.$strict>;
775
+ recovery: z.ZodDiscriminatedUnion<[z.ZodObject<{
776
+ action: z.ZodLiteral<"poll-operation">;
777
+ afterMs: z.ZodNumber;
778
+ }, z.core.$strict>, z.ZodObject<{
779
+ action: z.ZodLiteral<"retry-same-operation">;
780
+ afterMs: z.ZodNumber;
781
+ }, z.core.$strict>, z.ZodObject<{
782
+ action: z.ZodLiteral<"read-resource">;
783
+ }, z.core.$strict>, z.ZodObject<{
784
+ action: z.ZodLiteral<"operator-intervention">;
785
+ }, z.core.$strict>, z.ZodObject<{
786
+ action: z.ZodLiteral<"none">;
787
+ }, z.core.$strict>], "action">;
788
+ outcome: z.ZodLiteral<"refused">;
789
+ operationId: z.ZodString;
790
+ version: z.ZodLiteral<1>;
791
+ }, z.core.$strict>, z.ZodObject<{
792
+ failure: z.ZodObject<{
793
+ code: z.ZodEnum<{
794
+ retired: "retired";
795
+ forbidden: "forbidden";
796
+ "invalid-request": "invalid-request";
797
+ "generation-mismatch": "generation-mismatch";
798
+ "idempotency-mismatch": "idempotency-mismatch";
799
+ "revision-regression": "revision-regression";
800
+ "backend-unsupported": "backend-unsupported";
801
+ "backend-unavailable": "backend-unavailable";
802
+ "provider-failure": "provider-failure";
803
+ "invalid-response": "invalid-response";
804
+ "transport-failure": "transport-failure";
805
+ }>;
806
+ phase: z.ZodEnum<{
807
+ registry: "registry";
808
+ registration: "registration";
809
+ discovery: "discovery";
810
+ runtime: "runtime";
811
+ revocation: "revocation";
812
+ cleanup: "cleanup";
813
+ complete: "complete";
814
+ }>;
815
+ }, z.core.$strict>;
816
+ recovery: z.ZodDiscriminatedUnion<[z.ZodObject<{
817
+ action: z.ZodLiteral<"poll-operation">;
818
+ afterMs: z.ZodNumber;
819
+ }, z.core.$strict>, z.ZodObject<{
820
+ action: z.ZodLiteral<"retry-same-operation">;
821
+ afterMs: z.ZodNumber;
822
+ }, z.core.$strict>, z.ZodObject<{
823
+ action: z.ZodLiteral<"read-resource">;
824
+ }, z.core.$strict>, z.ZodObject<{
825
+ action: z.ZodLiteral<"operator-intervention">;
826
+ }, z.core.$strict>, z.ZodObject<{
827
+ action: z.ZodLiteral<"none">;
828
+ }, z.core.$strict>], "action">;
829
+ outcome: z.ZodLiteral<"unavailable">;
830
+ operationId: z.ZodString;
831
+ version: z.ZodLiteral<1>;
832
+ }, z.core.$strict>], "outcome">;
833
+ export type McpResourceApplyResult = z.infer<typeof McpResourceApplyResultSchema>;
834
+ export declare const McpResourceReadResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
835
+ outcome: z.ZodLiteral<"found">;
836
+ snapshot: z.ZodObject<{
837
+ version: z.ZodLiteral<1>;
838
+ key: z.ZodObject<{
839
+ providerTenantId: z.ZodString;
840
+ appId: z.ZodString;
841
+ copyId: z.ZodString;
842
+ resourceId: z.ZodString;
843
+ }, z.core.$strict>;
844
+ generation: z.ZodNumber;
845
+ identity: z.ZodNullable<z.ZodObject<{
846
+ registrationId: z.ZodString;
847
+ resourceUri: z.ZodString;
848
+ audience: z.ZodString;
849
+ issuer: z.ZodUnion<[z.ZodString, z.ZodString]>;
850
+ }, z.core.$strict>>;
851
+ desired: z.ZodObject<{
852
+ state: z.ZodEnum<{
853
+ active: "active";
854
+ suspended: "suspended";
855
+ retired: "retired";
856
+ }>;
857
+ configurationRevision: z.ZodNumber;
858
+ policyRevision: z.ZodNumber;
859
+ denyEpoch: z.ZodNumber;
860
+ scopes: z.ZodArray<z.ZodObject<{
861
+ id: z.ZodString;
862
+ title: z.ZodOptional<z.ZodString>;
863
+ description: z.ZodString;
864
+ }, z.core.$strict>>;
865
+ admission: z.ZodDiscriminatedUnion<[z.ZodObject<{
866
+ mode: z.ZodLiteral<"unrestricted">;
867
+ }, z.core.$strict>, z.ZodObject<{
868
+ mode: z.ZodLiteral<"application-approval">;
869
+ policyId: z.ZodString;
870
+ requiredEvidence: z.ZodArray<z.ZodEnum<{
871
+ provider: "provider";
872
+ "authentication-method": "authentication-method";
873
+ "authentication-time": "authentication-time";
874
+ groups: "groups";
875
+ }>>;
876
+ returnPath: z.ZodString;
877
+ }, z.core.$strict>], "mode">;
878
+ branding: z.ZodOptional<z.ZodObject<{
879
+ displayName: z.ZodString;
880
+ description: z.ZodOptional<z.ZodString>;
881
+ locale: z.ZodOptional<z.ZodString>;
882
+ }, z.core.$strict>>;
883
+ }, z.core.$strict>;
884
+ observed: z.ZodObject<{
885
+ state: z.ZodEnum<{
886
+ active: "active";
887
+ suspended: "suspended";
888
+ retired: "retired";
889
+ absent: "absent";
890
+ applying: "applying";
891
+ retiring: "retiring";
892
+ }>;
893
+ configurationRevision: z.ZodNullable<z.ZodNumber>;
894
+ policyRevision: z.ZodNullable<z.ZodNumber>;
895
+ denyEpoch: z.ZodNumber;
896
+ phase: z.ZodEnum<{
897
+ registry: "registry";
898
+ registration: "registration";
899
+ discovery: "discovery";
900
+ runtime: "runtime";
901
+ revocation: "revocation";
902
+ cleanup: "cleanup";
903
+ complete: "complete";
904
+ }>;
905
+ revocation: z.ZodEnum<{
906
+ complete: "complete";
907
+ "not-required": "not-required";
908
+ pending: "pending";
909
+ }>;
910
+ cleanup: z.ZodEnum<{
911
+ complete: "complete";
912
+ "not-required": "not-required";
913
+ pending: "pending";
914
+ }>;
915
+ }, z.core.$strict>;
916
+ }, z.core.$strict>;
917
+ version: z.ZodLiteral<1>;
918
+ }, z.core.$strict>, z.ZodObject<{
919
+ outcome: z.ZodLiteral<"not-found">;
920
+ version: z.ZodLiteral<1>;
921
+ }, z.core.$strict>, z.ZodObject<{
922
+ failure: z.ZodObject<{
923
+ code: z.ZodEnum<{
924
+ retired: "retired";
925
+ forbidden: "forbidden";
926
+ "invalid-request": "invalid-request";
927
+ "generation-mismatch": "generation-mismatch";
928
+ "idempotency-mismatch": "idempotency-mismatch";
929
+ "revision-regression": "revision-regression";
930
+ "backend-unsupported": "backend-unsupported";
931
+ "backend-unavailable": "backend-unavailable";
932
+ "provider-failure": "provider-failure";
933
+ "invalid-response": "invalid-response";
934
+ "transport-failure": "transport-failure";
935
+ }>;
936
+ phase: z.ZodEnum<{
937
+ registry: "registry";
938
+ registration: "registration";
939
+ discovery: "discovery";
940
+ runtime: "runtime";
941
+ revocation: "revocation";
942
+ cleanup: "cleanup";
943
+ complete: "complete";
944
+ }>;
945
+ }, z.core.$strict>;
946
+ recovery: z.ZodDiscriminatedUnion<[z.ZodObject<{
947
+ action: z.ZodLiteral<"poll-operation">;
948
+ afterMs: z.ZodNumber;
949
+ }, z.core.$strict>, z.ZodObject<{
950
+ action: z.ZodLiteral<"retry-same-operation">;
951
+ afterMs: z.ZodNumber;
952
+ }, z.core.$strict>, z.ZodObject<{
953
+ action: z.ZodLiteral<"read-resource">;
954
+ }, z.core.$strict>, z.ZodObject<{
955
+ action: z.ZodLiteral<"operator-intervention">;
956
+ }, z.core.$strict>, z.ZodObject<{
957
+ action: z.ZodLiteral<"none">;
958
+ }, z.core.$strict>], "action">;
959
+ outcome: z.ZodLiteral<"refused">;
960
+ version: z.ZodLiteral<1>;
961
+ }, z.core.$strict>, z.ZodObject<{
962
+ failure: z.ZodObject<{
963
+ code: z.ZodEnum<{
964
+ retired: "retired";
965
+ forbidden: "forbidden";
966
+ "invalid-request": "invalid-request";
967
+ "generation-mismatch": "generation-mismatch";
968
+ "idempotency-mismatch": "idempotency-mismatch";
969
+ "revision-regression": "revision-regression";
970
+ "backend-unsupported": "backend-unsupported";
971
+ "backend-unavailable": "backend-unavailable";
972
+ "provider-failure": "provider-failure";
973
+ "invalid-response": "invalid-response";
974
+ "transport-failure": "transport-failure";
975
+ }>;
976
+ phase: z.ZodEnum<{
977
+ registry: "registry";
978
+ registration: "registration";
979
+ discovery: "discovery";
980
+ runtime: "runtime";
981
+ revocation: "revocation";
982
+ cleanup: "cleanup";
983
+ complete: "complete";
984
+ }>;
985
+ }, z.core.$strict>;
986
+ recovery: z.ZodDiscriminatedUnion<[z.ZodObject<{
987
+ action: z.ZodLiteral<"poll-operation">;
988
+ afterMs: z.ZodNumber;
989
+ }, z.core.$strict>, z.ZodObject<{
990
+ action: z.ZodLiteral<"retry-same-operation">;
991
+ afterMs: z.ZodNumber;
992
+ }, z.core.$strict>, z.ZodObject<{
993
+ action: z.ZodLiteral<"read-resource">;
994
+ }, z.core.$strict>, z.ZodObject<{
995
+ action: z.ZodLiteral<"operator-intervention">;
996
+ }, z.core.$strict>, z.ZodObject<{
997
+ action: z.ZodLiteral<"none">;
998
+ }, z.core.$strict>], "action">;
999
+ outcome: z.ZodLiteral<"unavailable">;
1000
+ version: z.ZodLiteral<1>;
1001
+ }, z.core.$strict>], "outcome">;
1002
+ export type McpResourceReadResult = z.infer<typeof McpResourceReadResultSchema>;
1003
+ export declare const McpResourceListResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1004
+ outcome: z.ZodLiteral<"listed">;
1005
+ resources: z.ZodArray<z.ZodObject<{
1006
+ version: z.ZodLiteral<1>;
1007
+ key: z.ZodObject<{
1008
+ providerTenantId: z.ZodString;
1009
+ appId: z.ZodString;
1010
+ copyId: z.ZodString;
1011
+ resourceId: z.ZodString;
1012
+ }, z.core.$strict>;
1013
+ generation: z.ZodNumber;
1014
+ identity: z.ZodNullable<z.ZodObject<{
1015
+ registrationId: z.ZodString;
1016
+ resourceUri: z.ZodString;
1017
+ audience: z.ZodString;
1018
+ issuer: z.ZodUnion<[z.ZodString, z.ZodString]>;
1019
+ }, z.core.$strict>>;
1020
+ desired: z.ZodObject<{
1021
+ state: z.ZodEnum<{
1022
+ active: "active";
1023
+ suspended: "suspended";
1024
+ retired: "retired";
1025
+ }>;
1026
+ configurationRevision: z.ZodNumber;
1027
+ policyRevision: z.ZodNumber;
1028
+ denyEpoch: z.ZodNumber;
1029
+ scopes: z.ZodArray<z.ZodObject<{
1030
+ id: z.ZodString;
1031
+ title: z.ZodOptional<z.ZodString>;
1032
+ description: z.ZodString;
1033
+ }, z.core.$strict>>;
1034
+ admission: z.ZodDiscriminatedUnion<[z.ZodObject<{
1035
+ mode: z.ZodLiteral<"unrestricted">;
1036
+ }, z.core.$strict>, z.ZodObject<{
1037
+ mode: z.ZodLiteral<"application-approval">;
1038
+ policyId: z.ZodString;
1039
+ requiredEvidence: z.ZodArray<z.ZodEnum<{
1040
+ provider: "provider";
1041
+ "authentication-method": "authentication-method";
1042
+ "authentication-time": "authentication-time";
1043
+ groups: "groups";
1044
+ }>>;
1045
+ returnPath: z.ZodString;
1046
+ }, z.core.$strict>], "mode">;
1047
+ branding: z.ZodOptional<z.ZodObject<{
1048
+ displayName: z.ZodString;
1049
+ description: z.ZodOptional<z.ZodString>;
1050
+ locale: z.ZodOptional<z.ZodString>;
1051
+ }, z.core.$strict>>;
1052
+ }, z.core.$strict>;
1053
+ observed: z.ZodObject<{
1054
+ state: z.ZodEnum<{
1055
+ active: "active";
1056
+ suspended: "suspended";
1057
+ retired: "retired";
1058
+ absent: "absent";
1059
+ applying: "applying";
1060
+ retiring: "retiring";
1061
+ }>;
1062
+ configurationRevision: z.ZodNullable<z.ZodNumber>;
1063
+ policyRevision: z.ZodNullable<z.ZodNumber>;
1064
+ denyEpoch: z.ZodNumber;
1065
+ phase: z.ZodEnum<{
1066
+ registry: "registry";
1067
+ registration: "registration";
1068
+ discovery: "discovery";
1069
+ runtime: "runtime";
1070
+ revocation: "revocation";
1071
+ cleanup: "cleanup";
1072
+ complete: "complete";
1073
+ }>;
1074
+ revocation: z.ZodEnum<{
1075
+ complete: "complete";
1076
+ "not-required": "not-required";
1077
+ pending: "pending";
1078
+ }>;
1079
+ cleanup: z.ZodEnum<{
1080
+ complete: "complete";
1081
+ "not-required": "not-required";
1082
+ pending: "pending";
1083
+ }>;
1084
+ }, z.core.$strict>;
1085
+ }, z.core.$strict>>;
1086
+ nextCursor: z.ZodNullable<z.ZodString>;
1087
+ version: z.ZodLiteral<1>;
1088
+ }, z.core.$strict>, z.ZodObject<{
1089
+ failure: z.ZodObject<{
1090
+ code: z.ZodEnum<{
1091
+ retired: "retired";
1092
+ forbidden: "forbidden";
1093
+ "invalid-request": "invalid-request";
1094
+ "generation-mismatch": "generation-mismatch";
1095
+ "idempotency-mismatch": "idempotency-mismatch";
1096
+ "revision-regression": "revision-regression";
1097
+ "backend-unsupported": "backend-unsupported";
1098
+ "backend-unavailable": "backend-unavailable";
1099
+ "provider-failure": "provider-failure";
1100
+ "invalid-response": "invalid-response";
1101
+ "transport-failure": "transport-failure";
1102
+ }>;
1103
+ phase: z.ZodEnum<{
1104
+ registry: "registry";
1105
+ registration: "registration";
1106
+ discovery: "discovery";
1107
+ runtime: "runtime";
1108
+ revocation: "revocation";
1109
+ cleanup: "cleanup";
1110
+ complete: "complete";
1111
+ }>;
1112
+ }, z.core.$strict>;
1113
+ recovery: z.ZodDiscriminatedUnion<[z.ZodObject<{
1114
+ action: z.ZodLiteral<"poll-operation">;
1115
+ afterMs: z.ZodNumber;
1116
+ }, z.core.$strict>, z.ZodObject<{
1117
+ action: z.ZodLiteral<"retry-same-operation">;
1118
+ afterMs: z.ZodNumber;
1119
+ }, z.core.$strict>, z.ZodObject<{
1120
+ action: z.ZodLiteral<"read-resource">;
1121
+ }, z.core.$strict>, z.ZodObject<{
1122
+ action: z.ZodLiteral<"operator-intervention">;
1123
+ }, z.core.$strict>, z.ZodObject<{
1124
+ action: z.ZodLiteral<"none">;
1125
+ }, z.core.$strict>], "action">;
1126
+ outcome: z.ZodLiteral<"refused">;
1127
+ version: z.ZodLiteral<1>;
1128
+ }, z.core.$strict>, z.ZodObject<{
1129
+ failure: z.ZodObject<{
1130
+ code: z.ZodEnum<{
1131
+ retired: "retired";
1132
+ forbidden: "forbidden";
1133
+ "invalid-request": "invalid-request";
1134
+ "generation-mismatch": "generation-mismatch";
1135
+ "idempotency-mismatch": "idempotency-mismatch";
1136
+ "revision-regression": "revision-regression";
1137
+ "backend-unsupported": "backend-unsupported";
1138
+ "backend-unavailable": "backend-unavailable";
1139
+ "provider-failure": "provider-failure";
1140
+ "invalid-response": "invalid-response";
1141
+ "transport-failure": "transport-failure";
1142
+ }>;
1143
+ phase: z.ZodEnum<{
1144
+ registry: "registry";
1145
+ registration: "registration";
1146
+ discovery: "discovery";
1147
+ runtime: "runtime";
1148
+ revocation: "revocation";
1149
+ cleanup: "cleanup";
1150
+ complete: "complete";
1151
+ }>;
1152
+ }, z.core.$strict>;
1153
+ recovery: z.ZodDiscriminatedUnion<[z.ZodObject<{
1154
+ action: z.ZodLiteral<"poll-operation">;
1155
+ afterMs: z.ZodNumber;
1156
+ }, z.core.$strict>, z.ZodObject<{
1157
+ action: z.ZodLiteral<"retry-same-operation">;
1158
+ afterMs: z.ZodNumber;
1159
+ }, z.core.$strict>, z.ZodObject<{
1160
+ action: z.ZodLiteral<"read-resource">;
1161
+ }, z.core.$strict>, z.ZodObject<{
1162
+ action: z.ZodLiteral<"operator-intervention">;
1163
+ }, z.core.$strict>, z.ZodObject<{
1164
+ action: z.ZodLiteral<"none">;
1165
+ }, z.core.$strict>], "action">;
1166
+ outcome: z.ZodLiteral<"unavailable">;
1167
+ version: z.ZodLiteral<1>;
1168
+ }, z.core.$strict>], "outcome">;
1169
+ export type McpResourceListResult = z.infer<typeof McpResourceListResultSchema>;
1170
+ export declare const McpResourceOperationResultSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
1171
+ outcome: z.ZodLiteral<"applied">;
1172
+ snapshot: z.ZodObject<{
1173
+ version: z.ZodLiteral<1>;
1174
+ key: z.ZodObject<{
1175
+ providerTenantId: z.ZodString;
1176
+ appId: z.ZodString;
1177
+ copyId: z.ZodString;
1178
+ resourceId: z.ZodString;
1179
+ }, z.core.$strict>;
1180
+ generation: z.ZodNumber;
1181
+ identity: z.ZodNullable<z.ZodObject<{
1182
+ registrationId: z.ZodString;
1183
+ resourceUri: z.ZodString;
1184
+ audience: z.ZodString;
1185
+ issuer: z.ZodUnion<[z.ZodString, z.ZodString]>;
1186
+ }, z.core.$strict>>;
1187
+ desired: z.ZodObject<{
1188
+ state: z.ZodEnum<{
1189
+ active: "active";
1190
+ suspended: "suspended";
1191
+ retired: "retired";
1192
+ }>;
1193
+ configurationRevision: z.ZodNumber;
1194
+ policyRevision: z.ZodNumber;
1195
+ denyEpoch: z.ZodNumber;
1196
+ scopes: z.ZodArray<z.ZodObject<{
1197
+ id: z.ZodString;
1198
+ title: z.ZodOptional<z.ZodString>;
1199
+ description: z.ZodString;
1200
+ }, z.core.$strict>>;
1201
+ admission: z.ZodDiscriminatedUnion<[z.ZodObject<{
1202
+ mode: z.ZodLiteral<"unrestricted">;
1203
+ }, z.core.$strict>, z.ZodObject<{
1204
+ mode: z.ZodLiteral<"application-approval">;
1205
+ policyId: z.ZodString;
1206
+ requiredEvidence: z.ZodArray<z.ZodEnum<{
1207
+ provider: "provider";
1208
+ "authentication-method": "authentication-method";
1209
+ "authentication-time": "authentication-time";
1210
+ groups: "groups";
1211
+ }>>;
1212
+ returnPath: z.ZodString;
1213
+ }, z.core.$strict>], "mode">;
1214
+ branding: z.ZodOptional<z.ZodObject<{
1215
+ displayName: z.ZodString;
1216
+ description: z.ZodOptional<z.ZodString>;
1217
+ locale: z.ZodOptional<z.ZodString>;
1218
+ }, z.core.$strict>>;
1219
+ }, z.core.$strict>;
1220
+ observed: z.ZodObject<{
1221
+ state: z.ZodEnum<{
1222
+ active: "active";
1223
+ suspended: "suspended";
1224
+ retired: "retired";
1225
+ absent: "absent";
1226
+ applying: "applying";
1227
+ retiring: "retiring";
1228
+ }>;
1229
+ configurationRevision: z.ZodNullable<z.ZodNumber>;
1230
+ policyRevision: z.ZodNullable<z.ZodNumber>;
1231
+ denyEpoch: z.ZodNumber;
1232
+ phase: z.ZodEnum<{
1233
+ registry: "registry";
1234
+ registration: "registration";
1235
+ discovery: "discovery";
1236
+ runtime: "runtime";
1237
+ revocation: "revocation";
1238
+ cleanup: "cleanup";
1239
+ complete: "complete";
1240
+ }>;
1241
+ revocation: z.ZodEnum<{
1242
+ complete: "complete";
1243
+ "not-required": "not-required";
1244
+ pending: "pending";
1245
+ }>;
1246
+ cleanup: z.ZodEnum<{
1247
+ complete: "complete";
1248
+ "not-required": "not-required";
1249
+ pending: "pending";
1250
+ }>;
1251
+ }, z.core.$strict>;
1252
+ }, z.core.$strict>;
1253
+ operationId: z.ZodString;
1254
+ version: z.ZodLiteral<1>;
1255
+ }, z.core.$strict>, z.ZodObject<{
1256
+ outcome: z.ZodLiteral<"pending">;
1257
+ snapshot: z.ZodObject<{
1258
+ version: z.ZodLiteral<1>;
1259
+ key: z.ZodObject<{
1260
+ providerTenantId: z.ZodString;
1261
+ appId: z.ZodString;
1262
+ copyId: z.ZodString;
1263
+ resourceId: z.ZodString;
1264
+ }, z.core.$strict>;
1265
+ generation: z.ZodNumber;
1266
+ identity: z.ZodNullable<z.ZodObject<{
1267
+ registrationId: z.ZodString;
1268
+ resourceUri: z.ZodString;
1269
+ audience: z.ZodString;
1270
+ issuer: z.ZodUnion<[z.ZodString, z.ZodString]>;
1271
+ }, z.core.$strict>>;
1272
+ desired: z.ZodObject<{
1273
+ state: z.ZodEnum<{
1274
+ active: "active";
1275
+ suspended: "suspended";
1276
+ retired: "retired";
1277
+ }>;
1278
+ configurationRevision: z.ZodNumber;
1279
+ policyRevision: z.ZodNumber;
1280
+ denyEpoch: z.ZodNumber;
1281
+ scopes: z.ZodArray<z.ZodObject<{
1282
+ id: z.ZodString;
1283
+ title: z.ZodOptional<z.ZodString>;
1284
+ description: z.ZodString;
1285
+ }, z.core.$strict>>;
1286
+ admission: z.ZodDiscriminatedUnion<[z.ZodObject<{
1287
+ mode: z.ZodLiteral<"unrestricted">;
1288
+ }, z.core.$strict>, z.ZodObject<{
1289
+ mode: z.ZodLiteral<"application-approval">;
1290
+ policyId: z.ZodString;
1291
+ requiredEvidence: z.ZodArray<z.ZodEnum<{
1292
+ provider: "provider";
1293
+ "authentication-method": "authentication-method";
1294
+ "authentication-time": "authentication-time";
1295
+ groups: "groups";
1296
+ }>>;
1297
+ returnPath: z.ZodString;
1298
+ }, z.core.$strict>], "mode">;
1299
+ branding: z.ZodOptional<z.ZodObject<{
1300
+ displayName: z.ZodString;
1301
+ description: z.ZodOptional<z.ZodString>;
1302
+ locale: z.ZodOptional<z.ZodString>;
1303
+ }, z.core.$strict>>;
1304
+ }, z.core.$strict>;
1305
+ observed: z.ZodObject<{
1306
+ state: z.ZodEnum<{
1307
+ active: "active";
1308
+ suspended: "suspended";
1309
+ retired: "retired";
1310
+ absent: "absent";
1311
+ applying: "applying";
1312
+ retiring: "retiring";
1313
+ }>;
1314
+ configurationRevision: z.ZodNullable<z.ZodNumber>;
1315
+ policyRevision: z.ZodNullable<z.ZodNumber>;
1316
+ denyEpoch: z.ZodNumber;
1317
+ phase: z.ZodEnum<{
1318
+ registry: "registry";
1319
+ registration: "registration";
1320
+ discovery: "discovery";
1321
+ runtime: "runtime";
1322
+ revocation: "revocation";
1323
+ cleanup: "cleanup";
1324
+ complete: "complete";
1325
+ }>;
1326
+ revocation: z.ZodEnum<{
1327
+ complete: "complete";
1328
+ "not-required": "not-required";
1329
+ pending: "pending";
1330
+ }>;
1331
+ cleanup: z.ZodEnum<{
1332
+ complete: "complete";
1333
+ "not-required": "not-required";
1334
+ pending: "pending";
1335
+ }>;
1336
+ }, z.core.$strict>;
1337
+ }, z.core.$strict>;
1338
+ recovery: z.ZodDiscriminatedUnion<[z.ZodObject<{
1339
+ action: z.ZodLiteral<"poll-operation">;
1340
+ afterMs: z.ZodNumber;
1341
+ }, z.core.$strict>, z.ZodObject<{
1342
+ action: z.ZodLiteral<"retry-same-operation">;
1343
+ afterMs: z.ZodNumber;
1344
+ }, z.core.$strict>, z.ZodObject<{
1345
+ action: z.ZodLiteral<"read-resource">;
1346
+ }, z.core.$strict>, z.ZodObject<{
1347
+ action: z.ZodLiteral<"operator-intervention">;
1348
+ }, z.core.$strict>, z.ZodObject<{
1349
+ action: z.ZodLiteral<"none">;
1350
+ }, z.core.$strict>], "action">;
1351
+ operationId: z.ZodString;
1352
+ version: z.ZodLiteral<1>;
1353
+ }, z.core.$strict>, z.ZodObject<{
1354
+ failure: z.ZodObject<{
1355
+ code: z.ZodEnum<{
1356
+ retired: "retired";
1357
+ forbidden: "forbidden";
1358
+ "invalid-request": "invalid-request";
1359
+ "generation-mismatch": "generation-mismatch";
1360
+ "idempotency-mismatch": "idempotency-mismatch";
1361
+ "revision-regression": "revision-regression";
1362
+ "backend-unsupported": "backend-unsupported";
1363
+ "backend-unavailable": "backend-unavailable";
1364
+ "provider-failure": "provider-failure";
1365
+ "invalid-response": "invalid-response";
1366
+ "transport-failure": "transport-failure";
1367
+ }>;
1368
+ phase: z.ZodEnum<{
1369
+ registry: "registry";
1370
+ registration: "registration";
1371
+ discovery: "discovery";
1372
+ runtime: "runtime";
1373
+ revocation: "revocation";
1374
+ cleanup: "cleanup";
1375
+ complete: "complete";
1376
+ }>;
1377
+ }, z.core.$strict>;
1378
+ recovery: z.ZodDiscriminatedUnion<[z.ZodObject<{
1379
+ action: z.ZodLiteral<"poll-operation">;
1380
+ afterMs: z.ZodNumber;
1381
+ }, z.core.$strict>, z.ZodObject<{
1382
+ action: z.ZodLiteral<"retry-same-operation">;
1383
+ afterMs: z.ZodNumber;
1384
+ }, z.core.$strict>, z.ZodObject<{
1385
+ action: z.ZodLiteral<"read-resource">;
1386
+ }, z.core.$strict>, z.ZodObject<{
1387
+ action: z.ZodLiteral<"operator-intervention">;
1388
+ }, z.core.$strict>, z.ZodObject<{
1389
+ action: z.ZodLiteral<"none">;
1390
+ }, z.core.$strict>], "action">;
1391
+ outcome: z.ZodLiteral<"partial">;
1392
+ snapshot: z.ZodObject<{
1393
+ version: z.ZodLiteral<1>;
1394
+ key: z.ZodObject<{
1395
+ providerTenantId: z.ZodString;
1396
+ appId: z.ZodString;
1397
+ copyId: z.ZodString;
1398
+ resourceId: z.ZodString;
1399
+ }, z.core.$strict>;
1400
+ generation: z.ZodNumber;
1401
+ identity: z.ZodNullable<z.ZodObject<{
1402
+ registrationId: z.ZodString;
1403
+ resourceUri: z.ZodString;
1404
+ audience: z.ZodString;
1405
+ issuer: z.ZodUnion<[z.ZodString, z.ZodString]>;
1406
+ }, z.core.$strict>>;
1407
+ desired: z.ZodObject<{
1408
+ state: z.ZodEnum<{
1409
+ active: "active";
1410
+ suspended: "suspended";
1411
+ retired: "retired";
1412
+ }>;
1413
+ configurationRevision: z.ZodNumber;
1414
+ policyRevision: z.ZodNumber;
1415
+ denyEpoch: z.ZodNumber;
1416
+ scopes: z.ZodArray<z.ZodObject<{
1417
+ id: z.ZodString;
1418
+ title: z.ZodOptional<z.ZodString>;
1419
+ description: z.ZodString;
1420
+ }, z.core.$strict>>;
1421
+ admission: z.ZodDiscriminatedUnion<[z.ZodObject<{
1422
+ mode: z.ZodLiteral<"unrestricted">;
1423
+ }, z.core.$strict>, z.ZodObject<{
1424
+ mode: z.ZodLiteral<"application-approval">;
1425
+ policyId: z.ZodString;
1426
+ requiredEvidence: z.ZodArray<z.ZodEnum<{
1427
+ provider: "provider";
1428
+ "authentication-method": "authentication-method";
1429
+ "authentication-time": "authentication-time";
1430
+ groups: "groups";
1431
+ }>>;
1432
+ returnPath: z.ZodString;
1433
+ }, z.core.$strict>], "mode">;
1434
+ branding: z.ZodOptional<z.ZodObject<{
1435
+ displayName: z.ZodString;
1436
+ description: z.ZodOptional<z.ZodString>;
1437
+ locale: z.ZodOptional<z.ZodString>;
1438
+ }, z.core.$strict>>;
1439
+ }, z.core.$strict>;
1440
+ observed: z.ZodObject<{
1441
+ state: z.ZodEnum<{
1442
+ active: "active";
1443
+ suspended: "suspended";
1444
+ retired: "retired";
1445
+ absent: "absent";
1446
+ applying: "applying";
1447
+ retiring: "retiring";
1448
+ }>;
1449
+ configurationRevision: z.ZodNullable<z.ZodNumber>;
1450
+ policyRevision: z.ZodNullable<z.ZodNumber>;
1451
+ denyEpoch: z.ZodNumber;
1452
+ phase: z.ZodEnum<{
1453
+ registry: "registry";
1454
+ registration: "registration";
1455
+ discovery: "discovery";
1456
+ runtime: "runtime";
1457
+ revocation: "revocation";
1458
+ cleanup: "cleanup";
1459
+ complete: "complete";
1460
+ }>;
1461
+ revocation: z.ZodEnum<{
1462
+ complete: "complete";
1463
+ "not-required": "not-required";
1464
+ pending: "pending";
1465
+ }>;
1466
+ cleanup: z.ZodEnum<{
1467
+ complete: "complete";
1468
+ "not-required": "not-required";
1469
+ pending: "pending";
1470
+ }>;
1471
+ }, z.core.$strict>;
1472
+ }, z.core.$strict>;
1473
+ operationId: z.ZodString;
1474
+ version: z.ZodLiteral<1>;
1475
+ }, z.core.$strict>, z.ZodObject<{
1476
+ failure: z.ZodObject<{
1477
+ code: z.ZodEnum<{
1478
+ retired: "retired";
1479
+ forbidden: "forbidden";
1480
+ "invalid-request": "invalid-request";
1481
+ "generation-mismatch": "generation-mismatch";
1482
+ "idempotency-mismatch": "idempotency-mismatch";
1483
+ "revision-regression": "revision-regression";
1484
+ "backend-unsupported": "backend-unsupported";
1485
+ "backend-unavailable": "backend-unavailable";
1486
+ "provider-failure": "provider-failure";
1487
+ "invalid-response": "invalid-response";
1488
+ "transport-failure": "transport-failure";
1489
+ }>;
1490
+ phase: z.ZodEnum<{
1491
+ registry: "registry";
1492
+ registration: "registration";
1493
+ discovery: "discovery";
1494
+ runtime: "runtime";
1495
+ revocation: "revocation";
1496
+ cleanup: "cleanup";
1497
+ complete: "complete";
1498
+ }>;
1499
+ }, z.core.$strict>;
1500
+ recovery: z.ZodDiscriminatedUnion<[z.ZodObject<{
1501
+ action: z.ZodLiteral<"poll-operation">;
1502
+ afterMs: z.ZodNumber;
1503
+ }, z.core.$strict>, z.ZodObject<{
1504
+ action: z.ZodLiteral<"retry-same-operation">;
1505
+ afterMs: z.ZodNumber;
1506
+ }, z.core.$strict>, z.ZodObject<{
1507
+ action: z.ZodLiteral<"read-resource">;
1508
+ }, z.core.$strict>, z.ZodObject<{
1509
+ action: z.ZodLiteral<"operator-intervention">;
1510
+ }, z.core.$strict>, z.ZodObject<{
1511
+ action: z.ZodLiteral<"none">;
1512
+ }, z.core.$strict>], "action">;
1513
+ outcome: z.ZodLiteral<"conflict">;
1514
+ snapshot: z.ZodNullable<z.ZodObject<{
1515
+ version: z.ZodLiteral<1>;
1516
+ key: z.ZodObject<{
1517
+ providerTenantId: z.ZodString;
1518
+ appId: z.ZodString;
1519
+ copyId: z.ZodString;
1520
+ resourceId: z.ZodString;
1521
+ }, z.core.$strict>;
1522
+ generation: z.ZodNumber;
1523
+ identity: z.ZodNullable<z.ZodObject<{
1524
+ registrationId: z.ZodString;
1525
+ resourceUri: z.ZodString;
1526
+ audience: z.ZodString;
1527
+ issuer: z.ZodUnion<[z.ZodString, z.ZodString]>;
1528
+ }, z.core.$strict>>;
1529
+ desired: z.ZodObject<{
1530
+ state: z.ZodEnum<{
1531
+ active: "active";
1532
+ suspended: "suspended";
1533
+ retired: "retired";
1534
+ }>;
1535
+ configurationRevision: z.ZodNumber;
1536
+ policyRevision: z.ZodNumber;
1537
+ denyEpoch: z.ZodNumber;
1538
+ scopes: z.ZodArray<z.ZodObject<{
1539
+ id: z.ZodString;
1540
+ title: z.ZodOptional<z.ZodString>;
1541
+ description: z.ZodString;
1542
+ }, z.core.$strict>>;
1543
+ admission: z.ZodDiscriminatedUnion<[z.ZodObject<{
1544
+ mode: z.ZodLiteral<"unrestricted">;
1545
+ }, z.core.$strict>, z.ZodObject<{
1546
+ mode: z.ZodLiteral<"application-approval">;
1547
+ policyId: z.ZodString;
1548
+ requiredEvidence: z.ZodArray<z.ZodEnum<{
1549
+ provider: "provider";
1550
+ "authentication-method": "authentication-method";
1551
+ "authentication-time": "authentication-time";
1552
+ groups: "groups";
1553
+ }>>;
1554
+ returnPath: z.ZodString;
1555
+ }, z.core.$strict>], "mode">;
1556
+ branding: z.ZodOptional<z.ZodObject<{
1557
+ displayName: z.ZodString;
1558
+ description: z.ZodOptional<z.ZodString>;
1559
+ locale: z.ZodOptional<z.ZodString>;
1560
+ }, z.core.$strict>>;
1561
+ }, z.core.$strict>;
1562
+ observed: z.ZodObject<{
1563
+ state: z.ZodEnum<{
1564
+ active: "active";
1565
+ suspended: "suspended";
1566
+ retired: "retired";
1567
+ absent: "absent";
1568
+ applying: "applying";
1569
+ retiring: "retiring";
1570
+ }>;
1571
+ configurationRevision: z.ZodNullable<z.ZodNumber>;
1572
+ policyRevision: z.ZodNullable<z.ZodNumber>;
1573
+ denyEpoch: z.ZodNumber;
1574
+ phase: z.ZodEnum<{
1575
+ registry: "registry";
1576
+ registration: "registration";
1577
+ discovery: "discovery";
1578
+ runtime: "runtime";
1579
+ revocation: "revocation";
1580
+ cleanup: "cleanup";
1581
+ complete: "complete";
1582
+ }>;
1583
+ revocation: z.ZodEnum<{
1584
+ complete: "complete";
1585
+ "not-required": "not-required";
1586
+ pending: "pending";
1587
+ }>;
1588
+ cleanup: z.ZodEnum<{
1589
+ complete: "complete";
1590
+ "not-required": "not-required";
1591
+ pending: "pending";
1592
+ }>;
1593
+ }, z.core.$strict>;
1594
+ }, z.core.$strict>>;
1595
+ operationId: z.ZodString;
1596
+ version: z.ZodLiteral<1>;
1597
+ }, z.core.$strict>, z.ZodObject<{
1598
+ failure: z.ZodObject<{
1599
+ code: z.ZodEnum<{
1600
+ retired: "retired";
1601
+ forbidden: "forbidden";
1602
+ "invalid-request": "invalid-request";
1603
+ "generation-mismatch": "generation-mismatch";
1604
+ "idempotency-mismatch": "idempotency-mismatch";
1605
+ "revision-regression": "revision-regression";
1606
+ "backend-unsupported": "backend-unsupported";
1607
+ "backend-unavailable": "backend-unavailable";
1608
+ "provider-failure": "provider-failure";
1609
+ "invalid-response": "invalid-response";
1610
+ "transport-failure": "transport-failure";
1611
+ }>;
1612
+ phase: z.ZodEnum<{
1613
+ registry: "registry";
1614
+ registration: "registration";
1615
+ discovery: "discovery";
1616
+ runtime: "runtime";
1617
+ revocation: "revocation";
1618
+ cleanup: "cleanup";
1619
+ complete: "complete";
1620
+ }>;
1621
+ }, z.core.$strict>;
1622
+ recovery: z.ZodDiscriminatedUnion<[z.ZodObject<{
1623
+ action: z.ZodLiteral<"poll-operation">;
1624
+ afterMs: z.ZodNumber;
1625
+ }, z.core.$strict>, z.ZodObject<{
1626
+ action: z.ZodLiteral<"retry-same-operation">;
1627
+ afterMs: z.ZodNumber;
1628
+ }, z.core.$strict>, z.ZodObject<{
1629
+ action: z.ZodLiteral<"read-resource">;
1630
+ }, z.core.$strict>, z.ZodObject<{
1631
+ action: z.ZodLiteral<"operator-intervention">;
1632
+ }, z.core.$strict>, z.ZodObject<{
1633
+ action: z.ZodLiteral<"none">;
1634
+ }, z.core.$strict>], "action">;
1635
+ outcome: z.ZodLiteral<"refused">;
1636
+ operationId: z.ZodString;
1637
+ version: z.ZodLiteral<1>;
1638
+ }, z.core.$strict>, z.ZodObject<{
1639
+ failure: z.ZodObject<{
1640
+ code: z.ZodEnum<{
1641
+ retired: "retired";
1642
+ forbidden: "forbidden";
1643
+ "invalid-request": "invalid-request";
1644
+ "generation-mismatch": "generation-mismatch";
1645
+ "idempotency-mismatch": "idempotency-mismatch";
1646
+ "revision-regression": "revision-regression";
1647
+ "backend-unsupported": "backend-unsupported";
1648
+ "backend-unavailable": "backend-unavailable";
1649
+ "provider-failure": "provider-failure";
1650
+ "invalid-response": "invalid-response";
1651
+ "transport-failure": "transport-failure";
1652
+ }>;
1653
+ phase: z.ZodEnum<{
1654
+ registry: "registry";
1655
+ registration: "registration";
1656
+ discovery: "discovery";
1657
+ runtime: "runtime";
1658
+ revocation: "revocation";
1659
+ cleanup: "cleanup";
1660
+ complete: "complete";
1661
+ }>;
1662
+ }, z.core.$strict>;
1663
+ recovery: z.ZodDiscriminatedUnion<[z.ZodObject<{
1664
+ action: z.ZodLiteral<"poll-operation">;
1665
+ afterMs: z.ZodNumber;
1666
+ }, z.core.$strict>, z.ZodObject<{
1667
+ action: z.ZodLiteral<"retry-same-operation">;
1668
+ afterMs: z.ZodNumber;
1669
+ }, z.core.$strict>, z.ZodObject<{
1670
+ action: z.ZodLiteral<"read-resource">;
1671
+ }, z.core.$strict>, z.ZodObject<{
1672
+ action: z.ZodLiteral<"operator-intervention">;
1673
+ }, z.core.$strict>, z.ZodObject<{
1674
+ action: z.ZodLiteral<"none">;
1675
+ }, z.core.$strict>], "action">;
1676
+ outcome: z.ZodLiteral<"unavailable">;
1677
+ operationId: z.ZodString;
1678
+ version: z.ZodLiteral<1>;
1679
+ }, z.core.$strict>], "outcome">, z.ZodObject<{
1680
+ outcome: z.ZodLiteral<"not-found">;
1681
+ operationId: z.ZodString;
1682
+ version: z.ZodLiteral<1>;
1683
+ }, z.core.$strict>]>;
1684
+ export type McpResourceOperationResult = z.infer<typeof McpResourceOperationResultSchema>;
1685
+ export declare const McpResourceIntegrationSchema: z.ZodObject<{
1686
+ version: z.ZodLiteral<1>;
1687
+ pathPrefix: z.ZodString;
1688
+ }, z.core.$strict>;
1689
+ export type McpResourceIntegration = z.infer<typeof McpResourceIntegrationSchema>;
1690
+ export declare const MCP_RESOURCE_ENV: {
1691
+ readonly managementUrl: "MCP_MANAGEMENT_URL";
1692
+ readonly managementCredential: "MCP_MANAGEMENT_CREDENTIAL";
1693
+ readonly namespace: "MCP_RESOURCE_NAMESPACE";
1694
+ readonly pathPrefix: "MCP_RESOURCE_PATH_PREFIX";
1695
+ };
1696
+ /** Non-secret bootstrap. The management credential is delivered separately as a server secret. */
1697
+ export declare const McpResourceBootstrapSchema: z.ZodObject<{
1698
+ version: z.ZodLiteral<1>;
1699
+ managementUrl: z.ZodString;
1700
+ namespace: z.ZodObject<{
1701
+ providerTenantId: z.ZodString;
1702
+ appId: z.ZodString;
1703
+ copyId: z.ZodString;
1704
+ }, z.core.$strict>;
1705
+ pathPrefix: z.ZodString;
1706
+ }, z.core.$strict>;
1707
+ export type McpResourceBootstrap = z.infer<typeof McpResourceBootstrapSchema>;