@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,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 InvokeMetaToolResponseDtoObligationsItem = {
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
+ * Capability output payload (omitted on denial).
10
+ */
11
+ export type InvokeMetaToolResponseDtoOutput = {
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,14 @@
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 { ListCapabilitiesRequestDtoExecutionContext } from './listCapabilitiesRequestDtoExecutionContext';
9
+ export interface ListCapabilitiesRequestDto {
10
+ /** Per-invocation `ExecutionContext` envelope (kernel v4.3 ยงA.3). Treated opaquely at the Swagger boundary; the server validates it through `ExecutionContextSchema`. */
11
+ executionContext: ListCapabilitiesRequestDtoExecutionContext;
12
+ /** When true, denied capabilities are returned alongside their denial reason. Default false. */
13
+ includeDenied?: boolean;
14
+ }
@@ -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 (kernel v4.3 ยงA.3). Treated opaquely at the Swagger boundary; the server validates it through `ExecutionContextSchema`.
10
+ */
11
+ export type ListCapabilitiesRequestDtoExecutionContext = {
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,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 { CapabilityListEntryDto } from './capabilityListEntryDto';
9
+ export interface ListCapabilitiesResponseDto {
10
+ capabilities: CapabilityListEntryDto[];
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
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 { SubjectRefDtoKind } from './subjectRefDtoKind';
9
+ export interface SubjectRefDto {
10
+ /** Kind of subject holding the grant โ€” closed enum from @xemahq/capability-contracts. */
11
+ kind: SubjectRefDtoKind;
12
+ /** Opaque per-kind reference (e.g. `support-bot`, `alice`, `org-admins`). The authorization-api owns interpretation per kind. */
13
+ ref: string;
14
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,23 @@
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
+ * Kind of subject holding the grant โ€” closed enum from @xemahq/capability-contracts.
10
+ */
11
+ export type SubjectRefDtoKind = typeof SubjectRefDtoKind[keyof typeof SubjectRefDtoKind];
12
+ export declare const SubjectRefDtoKind: {
13
+ readonly user: "user";
14
+ readonly agent: "agent";
15
+ readonly app: "app";
16
+ readonly 'app-client': "app-client";
17
+ readonly service: "service";
18
+ readonly group: "group";
19
+ readonly role: "role";
20
+ readonly runner: "runner";
21
+ readonly 'external-subject': "external-subject";
22
+ readonly anon: "anon";
23
+ };
@@ -0,0 +1,22 @@
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.SubjectRefDtoKind = void 0;
11
+ exports.SubjectRefDtoKind = {
12
+ user: 'user',
13
+ agent: 'agent',
14
+ app: 'app',
15
+ 'app-client': 'app-client',
16
+ service: 'service',
17
+ group: 'group',
18
+ role: 'role',
19
+ runner: 'runner',
20
+ 'external-subject': 'external-subject',
21
+ anon: 'anon',
22
+ };
package/package.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "@xemahq/xema-capability-router-internal-client",
3
+ "version": "0.1.0",
4
+ "main": "./dist/index.js",
5
+ "types": "./dist/index.d.ts",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "publishConfig": {
10
+ "registry": "https://npm.pkg.github.com"
11
+ },
12
+ "devDependencies": {
13
+ "typescript": "5.9.3"
14
+ },
15
+ "xema": {
16
+ "kind": "api-client",
17
+ "surface": "internal",
18
+ "service": "xema-capability-router",
19
+ "biome": "xema-capability-router",
20
+ "target": "server",
21
+ "generator": "@xemahq/api-client-generator@0.1.0",
22
+ "source": "openapi.internal.json"
23
+ },
24
+ "scripts": {
25
+ "build": "tsc -p tsconfig.json"
26
+ }
27
+ }