@xemahq/xema-capability-router-internal-client 0.1.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 (74) hide show
  1. package/LICENSE +201 -0
  2. package/dist/custom-fetch.d.ts +52 -0
  3. package/dist/custom-fetch.js +152 -0
  4. package/dist/endpoints/capability-gateway/capability-gateway.d.ts +20 -0
  5. package/dist/endpoints/capability-gateway/capability-gateway.js +36 -0
  6. package/dist/endpoints/runner-plane/runner-plane.d.ts +6 -0
  7. package/dist/endpoints/runner-plane/runner-plane.js +26 -0
  8. package/dist/endpoints/xema-capabilities/xema-capabilities.d.ts +26 -0
  9. package/dist/endpoints/xema-capabilities/xema-capabilities.js +55 -0
  10. package/dist/index.d.ts +5 -0
  11. package/dist/index.js +27 -0
  12. package/dist/models/capabilityBiomeRefDto.d.ts +13 -0
  13. package/dist/models/capabilityBiomeRefDto.js +9 -0
  14. package/dist/models/capabilityDescriptionDto.d.ts +24 -0
  15. package/dist/models/capabilityDescriptionDto.js +2 -0
  16. package/dist/models/capabilityDescriptionDtoExamplesItem.d.ts +10 -0
  17. package/dist/models/capabilityDescriptionDtoExamplesItem.js +9 -0
  18. package/dist/models/capabilityDescriptionDtoInputSchema.d.ts +13 -0
  19. package/dist/models/capabilityDescriptionDtoInputSchema.js +9 -0
  20. package/dist/models/capabilityDescriptionDtoOutputSchema.d.ts +10 -0
  21. package/dist/models/capabilityDescriptionDtoOutputSchema.js +9 -0
  22. package/dist/models/capabilityListEntryDto.d.ts +22 -0
  23. package/dist/models/capabilityListEntryDto.js +2 -0
  24. package/dist/models/capabilityListEntryDtoPolicyDecision.d.ts +16 -0
  25. package/dist/models/capabilityListEntryDtoPolicyDecision.js +15 -0
  26. package/dist/models/capabilityRegistryEntryDto.d.ts +11 -0
  27. package/dist/models/capabilityRegistryEntryDto.js +9 -0
  28. package/dist/models/capabilityRegistryResponseDto.d.ts +11 -0
  29. package/dist/models/capabilityRegistryResponseDto.js +2 -0
  30. package/dist/models/denialDto.d.ts +21 -0
  31. package/dist/models/denialDto.js +2 -0
  32. package/dist/models/denialReasonDto.d.ts +13 -0
  33. package/dist/models/denialReasonDto.js +9 -0
  34. package/dist/models/denialSuggestionDto.d.ts +17 -0
  35. package/dist/models/denialSuggestionDto.js +9 -0
  36. package/dist/models/describeCapabilitiesRequestDto.d.ts +11 -0
  37. package/dist/models/describeCapabilitiesRequestDto.js +9 -0
  38. package/dist/models/describeCapabilitiesResponseDto.d.ts +11 -0
  39. package/dist/models/describeCapabilitiesResponseDto.js +2 -0
  40. package/dist/models/index.d.ts +30 -0
  41. package/dist/models/index.js +47 -0
  42. package/dist/models/invokeCapabilityRequestDto.d.ts +26 -0
  43. package/dist/models/invokeCapabilityRequestDto.js +2 -0
  44. package/dist/models/invokeCapabilityRequestDtoInput.d.ts +13 -0
  45. package/dist/models/invokeCapabilityRequestDtoInput.js +9 -0
  46. package/dist/models/invokeCapabilityResponseDto.d.ts +20 -0
  47. package/dist/models/invokeCapabilityResponseDto.js +2 -0
  48. package/dist/models/invokeCapabilityResponseDtoOutput.d.ts +13 -0
  49. package/dist/models/invokeCapabilityResponseDtoOutput.js +9 -0
  50. package/dist/models/invokeCapabilityResponseDtoStatus.d.ts +15 -0
  51. package/dist/models/invokeCapabilityResponseDtoStatus.js +14 -0
  52. package/dist/models/invokeMetaToolRequestDto.d.ts +17 -0
  53. package/dist/models/invokeMetaToolRequestDto.js +2 -0
  54. package/dist/models/invokeMetaToolRequestDtoExecutionContext.d.ts +13 -0
  55. package/dist/models/invokeMetaToolRequestDtoExecutionContext.js +9 -0
  56. package/dist/models/invokeMetaToolRequestDtoInput.d.ts +13 -0
  57. package/dist/models/invokeMetaToolRequestDtoInput.js +9 -0
  58. package/dist/models/invokeMetaToolResponseDto.d.ts +17 -0
  59. package/dist/models/invokeMetaToolResponseDto.js +2 -0
  60. package/dist/models/invokeMetaToolResponseDtoObligationsItem.d.ts +10 -0
  61. package/dist/models/invokeMetaToolResponseDtoObligationsItem.js +9 -0
  62. package/dist/models/invokeMetaToolResponseDtoOutput.d.ts +13 -0
  63. package/dist/models/invokeMetaToolResponseDtoOutput.js +9 -0
  64. package/dist/models/listCapabilitiesRequestDto.d.ts +14 -0
  65. package/dist/models/listCapabilitiesRequestDto.js +2 -0
  66. package/dist/models/listCapabilitiesRequestDtoExecutionContext.d.ts +13 -0
  67. package/dist/models/listCapabilitiesRequestDtoExecutionContext.js +9 -0
  68. package/dist/models/listCapabilitiesResponseDto.d.ts +11 -0
  69. package/dist/models/listCapabilitiesResponseDto.js +2 -0
  70. package/dist/models/subjectRefDto.d.ts +14 -0
  71. package/dist/models/subjectRefDto.js +2 -0
  72. package/dist/models/subjectRefDtoKind.d.ts +23 -0
  73. package/dist/models/subjectRefDtoKind.js +22 -0
  74. package/package.json +27 -0
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Capability Gateway API
5
+ * Single invocation funnel for the Xema Capability Protocol.
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { CapabilityBiomeRefDto } from './capabilityBiomeRefDto';
9
+ import type { CapabilityDescriptionDtoExamplesItem } from './capabilityDescriptionDtoExamplesItem';
10
+ import type { CapabilityDescriptionDtoInputSchema } from './capabilityDescriptionDtoInputSchema';
11
+ import type { CapabilityDescriptionDtoOutputSchema } from './capabilityDescriptionDtoOutputSchema';
12
+ export interface CapabilityDescriptionDto {
13
+ ref: string;
14
+ biome: CapabilityBiomeRefDto;
15
+ /** JSON Schema for the capability input. Used by `invoke` at the gateway boundary for fail-fast validation before runner dispatch. */
16
+ inputSchema: CapabilityDescriptionDtoInputSchema;
17
+ outputSchema: CapabilityDescriptionDtoOutputSchema;
18
+ /** Example invocations. */
19
+ examples: CapabilityDescriptionDtoExamplesItem[];
20
+ /** Free-form natural-language side-effect summary surfaced to the agent before invocation. */
21
+ sideEffects: string;
22
+ /** Whether this capability requires an explicit human approval before each call (independent of `PolicyDecisionKind.NeedsApproval`, which is the policy verdict). */
23
+ requiresApproval: boolean;
24
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Capability Gateway API
5
+ * Single invocation funnel for the Xema Capability Protocol.
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ export type CapabilityDescriptionDtoExamplesItem = {
9
+ [key: string]: unknown;
10
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.6.2 🍺
4
+ * Do not edit manually.
5
+ * Capability Gateway API
6
+ * Single invocation funnel for the Xema Capability Protocol.
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Capability Gateway API
5
+ * Single invocation funnel for the Xema Capability Protocol.
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ /**
9
+ * JSON Schema for the capability input. Used by `invoke` at the gateway boundary for fail-fast validation before runner dispatch.
10
+ */
11
+ export type CapabilityDescriptionDtoInputSchema = {
12
+ [key: string]: unknown;
13
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.6.2 🍺
4
+ * Do not edit manually.
5
+ * Capability Gateway API
6
+ * Single invocation funnel for the Xema Capability Protocol.
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Capability Gateway API
5
+ * Single invocation funnel for the Xema Capability Protocol.
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ export type CapabilityDescriptionDtoOutputSchema = {
9
+ [key: string]: unknown;
10
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.6.2 🍺
4
+ * Do not edit manually.
5
+ * Capability Gateway API
6
+ * Single invocation funnel for the Xema Capability Protocol.
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Capability Gateway API
5
+ * Single invocation funnel for the Xema Capability Protocol.
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { CapabilityBiomeRefDto } from './capabilityBiomeRefDto';
9
+ import type { CapabilityListEntryDtoPolicyDecision } from './capabilityListEntryDtoPolicyDecision';
10
+ export interface CapabilityListEntryDto {
11
+ /** Canonical capability ref `<domain>:<verb>@<n>`. */
12
+ ref: string;
13
+ biome: CapabilityBiomeRefDto;
14
+ title: string;
15
+ summary: string;
16
+ /** Capability risk tier (kernel `CapabilityRiskTier`: low/medium/high/critical). */
17
+ riskTier: string;
18
+ /** Result of the policy probe for this ref under the supplied `ExecutionContext`. One of allow / deny / needs_approval. */
19
+ policyDecision: CapabilityListEntryDtoPolicyDecision;
20
+ /** Populated when `policyDecision !== allow` — short denial / approval reason. */
21
+ denialReason?: string;
22
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Capability Gateway API
5
+ * Single invocation funnel for the Xema Capability Protocol.
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ /**
9
+ * Result of the policy probe for this ref under the supplied `ExecutionContext`. One of allow / deny / needs_approval.
10
+ */
11
+ export type CapabilityListEntryDtoPolicyDecision = typeof CapabilityListEntryDtoPolicyDecision[keyof typeof CapabilityListEntryDtoPolicyDecision];
12
+ export declare const CapabilityListEntryDtoPolicyDecision: {
13
+ readonly allow: "allow";
14
+ readonly deny: "deny";
15
+ readonly needs_approval: "needs_approval";
16
+ };
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.6.2 🍺
4
+ * Do not edit manually.
5
+ * Capability Gateway API
6
+ * Single invocation funnel for the Xema Capability Protocol.
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.CapabilityListEntryDtoPolicyDecision = void 0;
11
+ exports.CapabilityListEntryDtoPolicyDecision = {
12
+ allow: 'allow',
13
+ deny: 'deny',
14
+ needs_approval: 'needs_approval',
15
+ };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Capability Gateway API
5
+ * Single invocation funnel for the Xema Capability Protocol.
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ export interface CapabilityRegistryEntryDto {
9
+ ref: string;
10
+ description: string;
11
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.6.2 🍺
4
+ * Do not edit manually.
5
+ * Capability Gateway API
6
+ * Single invocation funnel for the Xema Capability Protocol.
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Capability Gateway API
5
+ * Single invocation funnel for the Xema Capability Protocol.
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { CapabilityRegistryEntryDto } from './capabilityRegistryEntryDto';
9
+ export interface CapabilityRegistryResponseDto {
10
+ entries: CapabilityRegistryEntryDto[];
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Capability Gateway API
5
+ * Single invocation funnel for the Xema Capability Protocol.
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { DenialReasonDto } from './denialReasonDto';
9
+ import type { DenialSuggestionDto } from './denialSuggestionDto';
10
+ export interface DenialDto {
11
+ /** Top-level denial code (mirrors the first reason for callers that only branch on one code). */
12
+ code: string;
13
+ /** CapabilityRef the call targeted. */
14
+ capability: string;
15
+ /** Resource the call targeted (if any). */
16
+ resource?: string;
17
+ /** ExecutionEnvironmentRef the call was attempted under. */
18
+ environment: string;
19
+ reasons: DenialReasonDto[];
20
+ suggestions: DenialSuggestionDto[];
21
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Capability Gateway API
5
+ * Single invocation funnel for the Xema Capability Protocol.
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ export interface DenialReasonDto {
9
+ /** Structured denial code — one of CapabilityErrorCode (CAPABILITY_DENIED_BY_*, CAPABILITY_REQUIRES_*). */
10
+ code: string;
11
+ /** Human-readable detail. */
12
+ detail: string;
13
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.6.2 🍺
4
+ * Do not edit manually.
5
+ * Capability Gateway API
6
+ * Single invocation funnel for the Xema Capability Protocol.
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Capability Gateway API
5
+ * Single invocation funnel for the Xema Capability Protocol.
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ export interface DenialSuggestionDto {
9
+ /** Suggestion kind from `CapabilityDenialSuggestion` (`request-grant` | `switch-environment` | `request-approval`). Closed set. */
10
+ kind: string;
11
+ capability?: string;
12
+ resource?: string;
13
+ environment?: string;
14
+ from?: string;
15
+ to?: string;
16
+ approver?: string;
17
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.6.2 🍺
4
+ * Do not edit manually.
5
+ * Capability Gateway API
6
+ * Single invocation funnel for the Xema Capability Protocol.
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Capability Gateway API
5
+ * Single invocation funnel for the Xema Capability Protocol.
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ export interface DescribeCapabilitiesRequestDto {
9
+ /** Capability refs to describe. Up to 50 per call; the server rejects oversize batches with HTTP 400. */
10
+ refs: string[];
11
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.6.2 🍺
4
+ * Do not edit manually.
5
+ * Capability Gateway API
6
+ * Single invocation funnel for the Xema Capability Protocol.
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Capability Gateway API
5
+ * Single invocation funnel for the Xema Capability Protocol.
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { CapabilityDescriptionDto } from './capabilityDescriptionDto';
9
+ export interface DescribeCapabilitiesResponseDto {
10
+ descriptions: CapabilityDescriptionDto[];
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,30 @@
1
+ export * from './capabilityBiomeRefDto';
2
+ export * from './capabilityDescriptionDto';
3
+ export * from './capabilityDescriptionDtoExamplesItem';
4
+ export * from './capabilityDescriptionDtoInputSchema';
5
+ export * from './capabilityDescriptionDtoOutputSchema';
6
+ export * from './capabilityListEntryDto';
7
+ export * from './capabilityListEntryDtoPolicyDecision';
8
+ export * from './capabilityRegistryEntryDto';
9
+ export * from './capabilityRegistryResponseDto';
10
+ export * from './denialDto';
11
+ export * from './denialReasonDto';
12
+ export * from './denialSuggestionDto';
13
+ export * from './describeCapabilitiesRequestDto';
14
+ export * from './describeCapabilitiesResponseDto';
15
+ export * from './invokeCapabilityRequestDto';
16
+ export * from './invokeCapabilityRequestDtoInput';
17
+ export * from './invokeCapabilityResponseDto';
18
+ export * from './invokeCapabilityResponseDtoOutput';
19
+ export * from './invokeCapabilityResponseDtoStatus';
20
+ export * from './invokeMetaToolRequestDto';
21
+ export * from './invokeMetaToolRequestDtoExecutionContext';
22
+ export * from './invokeMetaToolRequestDtoInput';
23
+ export * from './invokeMetaToolResponseDto';
24
+ export * from './invokeMetaToolResponseDtoObligationsItem';
25
+ export * from './invokeMetaToolResponseDtoOutput';
26
+ export * from './listCapabilitiesRequestDto';
27
+ export * from './listCapabilitiesRequestDtoExecutionContext';
28
+ export * from './listCapabilitiesResponseDto';
29
+ export * from './subjectRefDto';
30
+ export * from './subjectRefDtoKind';
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ // Auto-generated by tooling/codegen/regenerate-models-barrel.js — do not edit manually.
18
+ __exportStar(require("./capabilityBiomeRefDto"), exports);
19
+ __exportStar(require("./capabilityDescriptionDto"), exports);
20
+ __exportStar(require("./capabilityDescriptionDtoExamplesItem"), exports);
21
+ __exportStar(require("./capabilityDescriptionDtoInputSchema"), exports);
22
+ __exportStar(require("./capabilityDescriptionDtoOutputSchema"), exports);
23
+ __exportStar(require("./capabilityListEntryDto"), exports);
24
+ __exportStar(require("./capabilityListEntryDtoPolicyDecision"), exports);
25
+ __exportStar(require("./capabilityRegistryEntryDto"), exports);
26
+ __exportStar(require("./capabilityRegistryResponseDto"), exports);
27
+ __exportStar(require("./denialDto"), exports);
28
+ __exportStar(require("./denialReasonDto"), exports);
29
+ __exportStar(require("./denialSuggestionDto"), exports);
30
+ __exportStar(require("./describeCapabilitiesRequestDto"), exports);
31
+ __exportStar(require("./describeCapabilitiesResponseDto"), exports);
32
+ __exportStar(require("./invokeCapabilityRequestDto"), exports);
33
+ __exportStar(require("./invokeCapabilityRequestDtoInput"), exports);
34
+ __exportStar(require("./invokeCapabilityResponseDto"), exports);
35
+ __exportStar(require("./invokeCapabilityResponseDtoOutput"), exports);
36
+ __exportStar(require("./invokeCapabilityResponseDtoStatus"), exports);
37
+ __exportStar(require("./invokeMetaToolRequestDto"), exports);
38
+ __exportStar(require("./invokeMetaToolRequestDtoExecutionContext"), exports);
39
+ __exportStar(require("./invokeMetaToolRequestDtoInput"), exports);
40
+ __exportStar(require("./invokeMetaToolResponseDto"), exports);
41
+ __exportStar(require("./invokeMetaToolResponseDtoObligationsItem"), exports);
42
+ __exportStar(require("./invokeMetaToolResponseDtoOutput"), exports);
43
+ __exportStar(require("./listCapabilitiesRequestDto"), exports);
44
+ __exportStar(require("./listCapabilitiesRequestDtoExecutionContext"), exports);
45
+ __exportStar(require("./listCapabilitiesResponseDto"), exports);
46
+ __exportStar(require("./subjectRefDto"), exports);
47
+ __exportStar(require("./subjectRefDtoKind"), exports);
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Capability Gateway API
5
+ * Single invocation funnel for the Xema Capability Protocol.
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { InvokeCapabilityRequestDtoInput } from './invokeCapabilityRequestDtoInput';
9
+ import type { SubjectRefDto } from './subjectRefDto';
10
+ export interface InvokeCapabilityRequestDto {
11
+ /** Capability reference — `<domain>:<resource>.<verb>@<major>`. Validated against the kernel grammar in `@xemahq/kernel-contracts/capability`. */
12
+ ref: string;
13
+ subject: SubjectRefDto;
14
+ /** ExecutionEnvironmentRef as `environment:<slug>` (e.g. `environment:project`). Phase 3 treats this as a placeholder dimension; Phase 4 turns it into a hard runtime check. */
15
+ environment: string;
16
+ /** Optional resource ref (XVFS-style path) the capability targets. Required by some capabilities; the authorization-api resolves whether the subject's grant covers it. */
17
+ resource?: string;
18
+ /** Optional audience the call is being made on behalf of (Phase 7 — App / AppClient delegation). Phase 3 forwards opaquely. */
19
+ audience?: string;
20
+ /** Free-form input payload for the bound implementation. */
21
+ input?: InvokeCapabilityRequestDtoInput;
22
+ /** Optional correlation id surfaced into audit-log records. Generated server-side when absent. */
23
+ correlationId?: string;
24
+ /** Tenant org the invocation is scoped to. When omitted, the gateway resolves it from the caller request context (token `xema_org_id` claim / `X-Xema-Org-Id` header). authorization-api scopes grant lookups by this org. */
25
+ orgId?: string;
26
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Capability Gateway API
5
+ * Single invocation funnel for the Xema Capability Protocol.
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ /**
9
+ * Free-form input payload for the bound implementation.
10
+ */
11
+ export type InvokeCapabilityRequestDtoInput = {
12
+ [key: string]: unknown;
13
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.6.2 🍺
4
+ * Do not edit manually.
5
+ * Capability Gateway API
6
+ * Single invocation funnel for the Xema Capability Protocol.
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Capability Gateway API
5
+ * Single invocation funnel for the Xema Capability Protocol.
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { DenialDto } from './denialDto';
9
+ import type { InvokeCapabilityResponseDtoOutput } from './invokeCapabilityResponseDtoOutput';
10
+ import type { InvokeCapabilityResponseDtoStatus } from './invokeCapabilityResponseDtoStatus';
11
+ export interface InvokeCapabilityResponseDto {
12
+ /** Decision outcome — allowed or denied. Closed enum. */
13
+ status: InvokeCapabilityResponseDtoStatus;
14
+ /** Server-issued UUID for the audit-log entry this invocation produced (always populated, even on denial). */
15
+ auditId: string;
16
+ /** Output of the bound implementation. Phase 3: always undefined because the contribution resolver is a stub (sibling waves wire it). */
17
+ output?: InvokeCapabilityResponseDtoOutput;
18
+ /** Populated when `status === denied`. Omitted on allow. */
19
+ denial?: DenialDto;
20
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Capability Gateway API
5
+ * Single invocation funnel for the Xema Capability Protocol.
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ /**
9
+ * Output of the bound implementation. Phase 3: always undefined because the contribution resolver is a stub (sibling waves wire it).
10
+ */
11
+ export type InvokeCapabilityResponseDtoOutput = {
12
+ [key: string]: unknown;
13
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.6.2 🍺
4
+ * Do not edit manually.
5
+ * Capability Gateway API
6
+ * Single invocation funnel for the Xema Capability Protocol.
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Capability Gateway API
5
+ * Single invocation funnel for the Xema Capability Protocol.
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ /**
9
+ * Decision outcome — allowed or denied. Closed enum.
10
+ */
11
+ export type InvokeCapabilityResponseDtoStatus = typeof InvokeCapabilityResponseDtoStatus[keyof typeof InvokeCapabilityResponseDtoStatus];
12
+ export declare const InvokeCapabilityResponseDtoStatus: {
13
+ readonly allowed: "allowed";
14
+ readonly denied: "denied";
15
+ };
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.6.2 🍺
4
+ * Do not edit manually.
5
+ * Capability Gateway API
6
+ * Single invocation funnel for the Xema Capability Protocol.
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.InvokeCapabilityResponseDtoStatus = void 0;
11
+ exports.InvokeCapabilityResponseDtoStatus = {
12
+ allowed: 'allowed',
13
+ denied: 'denied',
14
+ };
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Capability Gateway API
5
+ * Single invocation funnel for the Xema Capability Protocol.
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { InvokeMetaToolRequestDtoExecutionContext } from './invokeMetaToolRequestDtoExecutionContext';
9
+ import type { InvokeMetaToolRequestDtoInput } from './invokeMetaToolRequestDtoInput';
10
+ export interface InvokeMetaToolRequestDto {
11
+ /** Capability ref to invoke. */
12
+ ref: string;
13
+ /** Capability input payload. */
14
+ input: InvokeMetaToolRequestDtoInput;
15
+ /** Per-invocation `ExecutionContext` envelope. Validated against the kernel schema. */
16
+ executionContext: InvokeMetaToolRequestDtoExecutionContext;
17
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Capability Gateway API
5
+ * Single invocation funnel for the Xema Capability Protocol.
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ /**
9
+ * Per-invocation `ExecutionContext` envelope. Validated against the kernel schema.
10
+ */
11
+ export type InvokeMetaToolRequestDtoExecutionContext = {
12
+ [key: string]: unknown;
13
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.6.2 🍺
4
+ * Do not edit manually.
5
+ * Capability Gateway API
6
+ * Single invocation funnel for the Xema Capability Protocol.
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Capability Gateway API
5
+ * Single invocation funnel for the Xema Capability Protocol.
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ /**
9
+ * Capability input payload.
10
+ */
11
+ export type InvokeMetaToolRequestDtoInput = {
12
+ [key: string]: unknown;
13
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.6.2 🍺
4
+ * Do not edit manually.
5
+ * Capability Gateway API
6
+ * Single invocation funnel for the Xema Capability Protocol.
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Capability Gateway API
5
+ * Single invocation funnel for the Xema Capability Protocol.
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { InvokeMetaToolResponseDtoObligationsItem } from './invokeMetaToolResponseDtoObligationsItem';
9
+ import type { InvokeMetaToolResponseDtoOutput } from './invokeMetaToolResponseDtoOutput';
10
+ export interface InvokeMetaToolResponseDto {
11
+ /** Capability output payload (omitted on denial). */
12
+ output?: InvokeMetaToolResponseDtoOutput;
13
+ /** Audit entry id. Always populated, including on denial / approval-required outcomes. */
14
+ auditId: string;
15
+ /** Closed-set policy obligations the caller must honour locally (e.g. redact-secrets, max-cost-usd). */
16
+ obligations: InvokeMetaToolResponseDtoObligationsItem[];
17
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });