@xemahq/credential-broker-internal-api-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.
- package/LICENSE +1 -0
- package/README.md +62 -0
- package/dist/custom-fetch.d.ts +30 -0
- package/dist/custom-fetch.js +132 -0
- package/dist/endpoints/credential-bindings/credential-bindings.d.ts +63 -0
- package/dist/endpoints/credential-bindings/credential-bindings.js +189 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +25 -0
- package/dist/models/actorRefDto.d.ts +13 -0
- package/dist/models/actorRefDto.js +9 -0
- package/dist/models/createCredentialBindingDto.d.ts +38 -0
- package/dist/models/createCredentialBindingDto.js +2 -0
- package/dist/models/createCredentialBindingDtoOauthConfig.d.ts +14 -0
- package/dist/models/createCredentialBindingDtoOauthConfig.js +9 -0
- package/dist/models/createDelegationDto.d.ts +19 -0
- package/dist/models/createDelegationDto.js +9 -0
- package/dist/models/credentialAuthType.d.ts +17 -0
- package/dist/models/credentialAuthType.js +19 -0
- package/dist/models/credentialBindingDto.d.ts +36 -0
- package/dist/models/credentialBindingDto.js +2 -0
- package/dist/models/credentialBindingDtoDataArrayEnvelope.d.ts +11 -0
- package/dist/models/credentialBindingDtoDataArrayEnvelope.js +2 -0
- package/dist/models/credentialBindingDtoDataEnvelope.d.ts +11 -0
- package/dist/models/credentialBindingDtoDataEnvelope.js +2 -0
- package/dist/models/credentialBindingDtoOauthConfig.d.ts +13 -0
- package/dist/models/credentialBindingDtoOauthConfig.js +9 -0
- package/dist/models/credentialBindingsControllerListParams.d.ts +11 -0
- package/dist/models/credentialBindingsControllerListParams.js +9 -0
- package/dist/models/credentialScopeTier.d.ts +13 -0
- package/dist/models/credentialScopeTier.js +15 -0
- package/dist/models/delegationGrantDto.d.ts +21 -0
- package/dist/models/delegationGrantDto.js +9 -0
- package/dist/models/delegationGrantDtoDataArrayEnvelope.d.ts +11 -0
- package/dist/models/delegationGrantDtoDataArrayEnvelope.js +2 -0
- package/dist/models/delegationGrantDtoDataEnvelope.d.ts +11 -0
- package/dist/models/delegationGrantDtoDataEnvelope.js +2 -0
- package/dist/models/index.d.ts +21 -0
- package/dist/models/index.js +38 -0
- package/dist/models/resolveCredentialDto.d.ts +29 -0
- package/dist/models/resolveCredentialDto.js +2 -0
- package/dist/models/resolveForJobDto.d.ts +17 -0
- package/dist/models/resolveForJobDto.js +9 -0
- package/dist/models/resolvedEnvelopeDto.d.ts +16 -0
- package/dist/models/resolvedEnvelopeDto.js +9 -0
- package/dist/models/resolvedEnvelopeDtoDataEnvelope.d.ts +11 -0
- package/dist/models/resolvedEnvelopeDtoDataEnvelope.js +2 -0
- package/dist/models/rotateCredentialBindingDto.d.ts +11 -0
- package/dist/models/rotateCredentialBindingDto.js +9 -0
- package/dist/models/updateCredentialBindingDto.d.ts +19 -0
- package/dist/models/updateCredentialBindingDto.js +2 -0
- package/dist/models/updateCredentialBindingDtoOauthConfig.d.ts +13 -0
- package/dist/models/updateCredentialBindingDtoOauthConfig.js +9 -0
- package/package.json +27 -0
package/LICENSE
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Copyright (c) 2026 Xema. All rights reserved.
|
package/README.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
<!-- Generated by @xemahq/api-client-generator. Do not edit by hand. -->
|
|
2
|
+
<p align="center">
|
|
3
|
+
<svg width="680" height="120" viewBox="0 0 680 120" fill="none" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="@xemahq/credential-broker-internal-api-client">
|
|
4
|
+
<rect width="680" height="120" rx="14" fill="#0B1020"/>
|
|
5
|
+
<g transform="translate(28,34)">
|
|
6
|
+
<path d="M26 0 L52 15 L52 45 L26 60 L0 45 L0 15 Z" fill="#14B8A6" opacity="0.18"/>
|
|
7
|
+
<path d="M26 12 L41 21 L41 39 L26 48 L11 39 L11 21 Z" fill="#14B8A6"/>
|
|
8
|
+
</g>
|
|
9
|
+
<text x="92" y="52" font-family="ui-monospace,SFMono-Regular,Menlo,monospace" font-size="22" fill="#F8FAFC" font-weight="700">@xemahq/credential-broker-internal-api-client</text>
|
|
10
|
+
<text x="92" y="80" font-family="ui-sans-serif,system-ui,sans-serif" font-size="15" fill="#94A3B8">Typed, generated internal HTTP client for the Credential Broker API.</text>
|
|
11
|
+
<text x="652" y="105" text-anchor="end" font-family="ui-sans-serif,system-ui,sans-serif" font-size="12" fill="#475569">xema.dev</text>
|
|
12
|
+
</svg>
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
<p align="center">
|
|
16
|
+
<a href="https://xema.dev">Website</a> ·
|
|
17
|
+
<a href="https://www.npmjs.com/package/@xemahq/credential-broker-internal-api-client">npm</a>
|
|
18
|
+
</p>
|
|
19
|
+
|
|
20
|
+
<p align="center">
|
|
21
|
+
<img alt="npm" src="https://img.shields.io/npm/v/%40xemahq%2Fcredential-broker-internal-api-client?color=2563eb&label=npm">
|
|
22
|
+
<img alt="license" src="https://img.shields.io/npm/l/%40xemahq%2Fcredential-broker-internal-api-client?color=10b981">
|
|
23
|
+
<img alt="types" src="https://img.shields.io/npm/types/%40xemahq%2Fcredential-broker-internal-api-client?color=3178c6">
|
|
24
|
+
</p>
|
|
25
|
+
|
|
26
|
+
# @xemahq/credential-broker-internal-api-client
|
|
27
|
+
|
|
28
|
+
> Typed, generated internal HTTP client for the Credential Broker API.
|
|
29
|
+
|
|
30
|
+
## Overview
|
|
31
|
+
|
|
32
|
+
Auto-generated TypeScript client for the **Credential Broker API**. It exports typed
|
|
33
|
+
request functions and response models that mirror the service's OpenAPI surface,
|
|
34
|
+
so callers get end-to-end type safety without hand-writing HTTP calls. This
|
|
35
|
+
package is produced by `@xemahq/api-client-generator` and regenerated whenever
|
|
36
|
+
the service's API changes — do not edit it by hand.
|
|
37
|
+
|
|
38
|
+
## When to use it
|
|
39
|
+
|
|
40
|
+
- Use it from any TypeScript service or app that calls the Credential Broker API over HTTP.
|
|
41
|
+
- You get compile-time types for every endpoint and payload; regenerate to pick
|
|
42
|
+
up API changes rather than editing the client.
|
|
43
|
+
|
|
44
|
+
## Installation
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
pnpm add @xemahq/credential-broker-internal-api-client
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Usage
|
|
51
|
+
|
|
52
|
+
```ts
|
|
53
|
+
// Every endpoint function and response model is exported from the package root.
|
|
54
|
+
import * as client from '@xemahq/credential-broker-internal-api-client';
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Call the typed endpoint functions; request and response shapes are fully typed
|
|
58
|
+
from the service's OpenAPI spec.
|
|
59
|
+
|
|
60
|
+
## License
|
|
61
|
+
|
|
62
|
+
Proprietary — © Xema. All rights reserved. — [xema.dev](https://xema.dev)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configurable fetch wrapper for Orval-generated clients.
|
|
3
|
+
*
|
|
4
|
+
* Consumers must call `configureClient()` before using any endpoint function.
|
|
5
|
+
* The baseUrl is prepended to the relative paths generated by Orval.
|
|
6
|
+
*/
|
|
7
|
+
export interface ClientConfig {
|
|
8
|
+
/** Static base URL (e.g. 'http://localhost:3140') — no trailing slash. */
|
|
9
|
+
baseUrl?: string;
|
|
10
|
+
/** Per-request base-URL resolver (service-registry-safe). */
|
|
11
|
+
baseUrlResolver?: () => string | Promise<string>;
|
|
12
|
+
/** Optional async callback to get an auth token. */
|
|
13
|
+
getAuthToken?: () => Promise<string>;
|
|
14
|
+
/** Optional callback returning headers to inject on every request. */
|
|
15
|
+
getHeaders?: () => Record<string, string> | Promise<Record<string, string>>;
|
|
16
|
+
/** Optional callback invoked on 401 before a single retry. */
|
|
17
|
+
onUnauthorized?: () => Promise<void>;
|
|
18
|
+
/** Maximum retry attempts for transient failures (default: 3). */
|
|
19
|
+
maxRetries?: number;
|
|
20
|
+
}
|
|
21
|
+
export declare class ClientError extends Error {
|
|
22
|
+
readonly status: number;
|
|
23
|
+
readonly url: string;
|
|
24
|
+
readonly body: unknown;
|
|
25
|
+
constructor(status: number, url: string, body: unknown);
|
|
26
|
+
}
|
|
27
|
+
export declare function configureClient(config: ClientConfig): void;
|
|
28
|
+
export declare function getClientConfig(): ClientConfig;
|
|
29
|
+
export declare const customFetch: <T>(url: string, options: RequestInit) => Promise<T>;
|
|
30
|
+
export default customFetch;
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Configurable fetch wrapper for Orval-generated clients.
|
|
4
|
+
*
|
|
5
|
+
* Consumers must call `configureClient()` before using any endpoint function.
|
|
6
|
+
* The baseUrl is prepended to the relative paths generated by Orval.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.customFetch = exports.ClientError = void 0;
|
|
10
|
+
exports.configureClient = configureClient;
|
|
11
|
+
exports.getClientConfig = getClientConfig;
|
|
12
|
+
class ClientError extends Error {
|
|
13
|
+
status;
|
|
14
|
+
url;
|
|
15
|
+
body;
|
|
16
|
+
constructor(status, url, body) {
|
|
17
|
+
super(`HTTP ${status} from ${url}`);
|
|
18
|
+
this.status = status;
|
|
19
|
+
this.url = url;
|
|
20
|
+
this.body = body;
|
|
21
|
+
this.name = 'ClientError';
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.ClientError = ClientError;
|
|
25
|
+
let clientConfig = null;
|
|
26
|
+
function configureClient(config) {
|
|
27
|
+
clientConfig = config;
|
|
28
|
+
}
|
|
29
|
+
function getClientConfig() {
|
|
30
|
+
if (!clientConfig) {
|
|
31
|
+
throw new Error('Client not configured. Call configureClient({ baseUrl }) before using endpoint functions.');
|
|
32
|
+
}
|
|
33
|
+
return clientConfig;
|
|
34
|
+
}
|
|
35
|
+
const RETRYABLE_STATUSES = [429, 502, 503, 504];
|
|
36
|
+
async function buildHeaders(config, callerHeaders) {
|
|
37
|
+
const headers = new Headers(callerHeaders);
|
|
38
|
+
if (config.getHeaders) {
|
|
39
|
+
const globalHeaders = await Promise.resolve(config.getHeaders());
|
|
40
|
+
for (const [key, value] of Object.entries(globalHeaders)) {
|
|
41
|
+
if (!headers.has(key)) {
|
|
42
|
+
headers.set(key, value);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
if (config.getAuthToken && !headers.has('Authorization')) {
|
|
47
|
+
const token = await config.getAuthToken();
|
|
48
|
+
headers.set('Authorization', `Bearer ${token}`);
|
|
49
|
+
}
|
|
50
|
+
return headers;
|
|
51
|
+
}
|
|
52
|
+
const customFetch = async (url, options) => {
|
|
53
|
+
const config = getClientConfig();
|
|
54
|
+
const base = config.baseUrlResolver
|
|
55
|
+
? await config.baseUrlResolver()
|
|
56
|
+
: config.baseUrl;
|
|
57
|
+
if (base === undefined) {
|
|
58
|
+
throw new Error('Client not configured: set baseUrl or baseUrlResolver via configureClient().');
|
|
59
|
+
}
|
|
60
|
+
const fullUrl = `${base}${url}`;
|
|
61
|
+
const maxRetries = config.maxRetries ?? 3;
|
|
62
|
+
const headers = await buildHeaders(config, options.headers);
|
|
63
|
+
const requestInit = { ...options, headers };
|
|
64
|
+
let delay = 1000;
|
|
65
|
+
let lastError;
|
|
66
|
+
for (let attempt = 0; attempt <= maxRetries; attempt++) {
|
|
67
|
+
try {
|
|
68
|
+
const response = await fetch(fullUrl, requestInit);
|
|
69
|
+
if (response.status === 401 && config.onUnauthorized && attempt === 0) {
|
|
70
|
+
await config.onUnauthorized();
|
|
71
|
+
const refreshedHeaders = await buildHeaders(config, options.headers);
|
|
72
|
+
const retryResponse = await fetch(fullUrl, { ...options, headers: refreshedHeaders });
|
|
73
|
+
const retryBody = await parseBody(retryResponse);
|
|
74
|
+
if (retryResponse.status >= 400) {
|
|
75
|
+
throw new ClientError(retryResponse.status, fullUrl, retryBody);
|
|
76
|
+
}
|
|
77
|
+
return retryBody;
|
|
78
|
+
}
|
|
79
|
+
if (!RETRYABLE_STATUSES.includes(response.status) || attempt >= maxRetries) {
|
|
80
|
+
const body = await parseBody(response);
|
|
81
|
+
if (response.status >= 400) {
|
|
82
|
+
throw new ClientError(response.status, fullUrl, body);
|
|
83
|
+
}
|
|
84
|
+
return body;
|
|
85
|
+
}
|
|
86
|
+
const retryAfter = parseRetryAfter(response.headers.get('Retry-After'));
|
|
87
|
+
const waitMs = retryAfter ?? addJitter(delay);
|
|
88
|
+
await sleep(waitMs);
|
|
89
|
+
delay = Math.min(delay * 2, 30_000);
|
|
90
|
+
}
|
|
91
|
+
catch (error) {
|
|
92
|
+
if (error instanceof ClientError)
|
|
93
|
+
throw error;
|
|
94
|
+
lastError = error instanceof Error ? error : new Error(String(error));
|
|
95
|
+
if (attempt >= maxRetries)
|
|
96
|
+
throw lastError;
|
|
97
|
+
const waitMs = addJitter(delay);
|
|
98
|
+
await sleep(waitMs);
|
|
99
|
+
delay = Math.min(delay * 2, 30_000);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
throw lastError ?? new Error(`All retries exhausted for ${fullUrl}`);
|
|
103
|
+
};
|
|
104
|
+
exports.customFetch = customFetch;
|
|
105
|
+
async function parseBody(response) {
|
|
106
|
+
const contentType = response.headers.get('content-type');
|
|
107
|
+
if (contentType?.includes('application/json')) {
|
|
108
|
+
return response.json();
|
|
109
|
+
}
|
|
110
|
+
if (response.status === 204) {
|
|
111
|
+
return undefined;
|
|
112
|
+
}
|
|
113
|
+
return response.text();
|
|
114
|
+
}
|
|
115
|
+
function parseRetryAfter(value) {
|
|
116
|
+
if (!value)
|
|
117
|
+
return undefined;
|
|
118
|
+
const seconds = Number(value);
|
|
119
|
+
if (!isNaN(seconds) && seconds >= 0)
|
|
120
|
+
return seconds * 1000;
|
|
121
|
+
const date = new Date(value);
|
|
122
|
+
if (!isNaN(date.getTime()))
|
|
123
|
+
return Math.max(0, date.getTime() - Date.now());
|
|
124
|
+
return undefined;
|
|
125
|
+
}
|
|
126
|
+
function addJitter(delay) {
|
|
127
|
+
return delay + (Math.random() * 2 - 1) * delay * 0.25;
|
|
128
|
+
}
|
|
129
|
+
function sleep(ms) {
|
|
130
|
+
return new Promise(resolve => setTimeout(resolve, ms));
|
|
131
|
+
}
|
|
132
|
+
exports.default = exports.customFetch;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Credential Broker API
|
|
5
|
+
* External-credential custody + sealed injection. The single place external secrets resolve; the LLM never sees them.
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { CreateCredentialBindingDto, CreateDelegationDto, CredentialBindingDtoDataArrayEnvelope, CredentialBindingDtoDataEnvelope, CredentialBindingsControllerListParams, DelegationGrantDtoDataArrayEnvelope, DelegationGrantDtoDataEnvelope, ResolveCredentialDto, ResolveForJobDto, ResolvedEnvelopeDtoDataEnvelope, RotateCredentialBindingDto, UpdateCredentialBindingDto } from '../../models';
|
|
9
|
+
/**
|
|
10
|
+
* @summary Create a credential binding (secret → custody).
|
|
11
|
+
*/
|
|
12
|
+
export declare const getCredentialBindingsControllerCreateUrl: () => string;
|
|
13
|
+
export declare const credentialBindingsControllerCreate: (createCredentialBindingDto: CreateCredentialBindingDto, options?: RequestInit) => Promise<CredentialBindingDtoDataEnvelope>;
|
|
14
|
+
/**
|
|
15
|
+
* @summary List credential bindings for an org (and project).
|
|
16
|
+
*/
|
|
17
|
+
export declare const getCredentialBindingsControllerListUrl: (params: CredentialBindingsControllerListParams) => string;
|
|
18
|
+
export declare const credentialBindingsControllerList: (params: CredentialBindingsControllerListParams, options?: RequestInit) => Promise<CredentialBindingDtoDataArrayEnvelope>;
|
|
19
|
+
/**
|
|
20
|
+
* @summary Runner-plane resolve. Verifies the JobToken and returns a sealed sidecar envelope.
|
|
21
|
+
*/
|
|
22
|
+
export declare const getCredentialBindingsControllerResolveForJobUrl: () => string;
|
|
23
|
+
export declare const credentialBindingsControllerResolveForJob: (resolveForJobDto: ResolveForJobDto, options?: RequestInit) => Promise<ResolvedEnvelopeDtoDataEnvelope>;
|
|
24
|
+
/**
|
|
25
|
+
* @summary Get a credential binding by id.
|
|
26
|
+
*/
|
|
27
|
+
export declare const getCredentialBindingsControllerGetByIdUrl: (id: string) => string;
|
|
28
|
+
export declare const credentialBindingsControllerGetById: (id: string, options?: RequestInit) => Promise<CredentialBindingDtoDataEnvelope>;
|
|
29
|
+
/**
|
|
30
|
+
* @summary Update the non-secret facets of a binding.
|
|
31
|
+
*/
|
|
32
|
+
export declare const getCredentialBindingsControllerUpdateUrl: (id: string) => string;
|
|
33
|
+
export declare const credentialBindingsControllerUpdate: (id: string, updateCredentialBindingDto: UpdateCredentialBindingDto, options?: RequestInit) => Promise<CredentialBindingDtoDataEnvelope>;
|
|
34
|
+
/**
|
|
35
|
+
* @summary Revoke a binding and delete its custody secret.
|
|
36
|
+
*/
|
|
37
|
+
export declare const getCredentialBindingsControllerRevokeUrl: (id: string) => string;
|
|
38
|
+
export declare const credentialBindingsControllerRevoke: (id: string, options?: RequestInit) => Promise<void>;
|
|
39
|
+
/**
|
|
40
|
+
* @summary Rotate the secret behind a binding.
|
|
41
|
+
*/
|
|
42
|
+
export declare const getCredentialBindingsControllerRotateUrl: (id: string) => string;
|
|
43
|
+
export declare const credentialBindingsControllerRotate: (id: string, rotateCredentialBindingDto: RotateCredentialBindingDto, options?: RequestInit) => Promise<CredentialBindingDtoDataEnvelope>;
|
|
44
|
+
/**
|
|
45
|
+
* @summary Resolve a binding into a sealed envelope for the executing gateway.
|
|
46
|
+
*/
|
|
47
|
+
export declare const getCredentialBindingsControllerResolveUrl: (id: string) => string;
|
|
48
|
+
export declare const credentialBindingsControllerResolve: (id: string, resolveCredentialDto: ResolveCredentialDto, options?: RequestInit) => Promise<ResolvedEnvelopeDtoDataEnvelope>;
|
|
49
|
+
/**
|
|
50
|
+
* @summary Delegate a binding to a grantee subject.
|
|
51
|
+
*/
|
|
52
|
+
export declare const getCredentialBindingsControllerCreateDelegationUrl: (id: string) => string;
|
|
53
|
+
export declare const credentialBindingsControllerCreateDelegation: (id: string, createDelegationDto: CreateDelegationDto, options?: RequestInit) => Promise<DelegationGrantDtoDataEnvelope>;
|
|
54
|
+
/**
|
|
55
|
+
* @summary List live delegations for a binding.
|
|
56
|
+
*/
|
|
57
|
+
export declare const getCredentialBindingsControllerListDelegationsUrl: (id: string) => string;
|
|
58
|
+
export declare const credentialBindingsControllerListDelegations: (id: string, options?: RequestInit) => Promise<DelegationGrantDtoDataArrayEnvelope>;
|
|
59
|
+
/**
|
|
60
|
+
* @summary Revoke a delegation.
|
|
61
|
+
*/
|
|
62
|
+
export declare const getCredentialBindingsControllerRevokeDelegationUrl: (id: string, delegationId: string) => string;
|
|
63
|
+
export declare const credentialBindingsControllerRevokeDelegation: (id: string, delegationId: string, options?: RequestInit) => Promise<void>;
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.credentialBindingsControllerRevokeDelegation = exports.getCredentialBindingsControllerRevokeDelegationUrl = exports.credentialBindingsControllerListDelegations = exports.getCredentialBindingsControllerListDelegationsUrl = exports.credentialBindingsControllerCreateDelegation = exports.getCredentialBindingsControllerCreateDelegationUrl = exports.credentialBindingsControllerResolve = exports.getCredentialBindingsControllerResolveUrl = exports.credentialBindingsControllerRotate = exports.getCredentialBindingsControllerRotateUrl = exports.credentialBindingsControllerRevoke = exports.getCredentialBindingsControllerRevokeUrl = exports.credentialBindingsControllerUpdate = exports.getCredentialBindingsControllerUpdateUrl = exports.credentialBindingsControllerGetById = exports.getCredentialBindingsControllerGetByIdUrl = exports.credentialBindingsControllerResolveForJob = exports.getCredentialBindingsControllerResolveForJobUrl = exports.credentialBindingsControllerList = exports.getCredentialBindingsControllerListUrl = exports.credentialBindingsControllerCreate = exports.getCredentialBindingsControllerCreateUrl = void 0;
|
|
4
|
+
const custom_fetch_1 = require("../../custom-fetch");
|
|
5
|
+
/**
|
|
6
|
+
* @summary Create a credential binding (secret → custody).
|
|
7
|
+
*/
|
|
8
|
+
const getCredentialBindingsControllerCreateUrl = () => {
|
|
9
|
+
return `/credential-bindings`;
|
|
10
|
+
};
|
|
11
|
+
exports.getCredentialBindingsControllerCreateUrl = getCredentialBindingsControllerCreateUrl;
|
|
12
|
+
const credentialBindingsControllerCreate = async (createCredentialBindingDto, options) => {
|
|
13
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getCredentialBindingsControllerCreateUrl)(), {
|
|
14
|
+
...options,
|
|
15
|
+
method: 'POST',
|
|
16
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
17
|
+
body: JSON.stringify(createCredentialBindingDto)
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
exports.credentialBindingsControllerCreate = credentialBindingsControllerCreate;
|
|
21
|
+
/**
|
|
22
|
+
* @summary List credential bindings for an org (and project).
|
|
23
|
+
*/
|
|
24
|
+
const getCredentialBindingsControllerListUrl = (params) => {
|
|
25
|
+
const normalizedParams = new URLSearchParams();
|
|
26
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
27
|
+
if (value === undefined)
|
|
28
|
+
return;
|
|
29
|
+
if (value === null) {
|
|
30
|
+
normalizedParams.append(key, 'null');
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
if (Array.isArray(value)) {
|
|
34
|
+
for (const item of value) {
|
|
35
|
+
if (item === undefined || item === null)
|
|
36
|
+
continue;
|
|
37
|
+
normalizedParams.append(key, item.toString());
|
|
38
|
+
}
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
normalizedParams.append(key, value.toString());
|
|
42
|
+
});
|
|
43
|
+
const stringifiedParams = normalizedParams.toString();
|
|
44
|
+
return stringifiedParams.length > 0 ? `/credential-bindings?${stringifiedParams}` : `/credential-bindings`;
|
|
45
|
+
};
|
|
46
|
+
exports.getCredentialBindingsControllerListUrl = getCredentialBindingsControllerListUrl;
|
|
47
|
+
const credentialBindingsControllerList = async (params, options) => {
|
|
48
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getCredentialBindingsControllerListUrl)(params), {
|
|
49
|
+
...options,
|
|
50
|
+
method: 'GET'
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
exports.credentialBindingsControllerList = credentialBindingsControllerList;
|
|
54
|
+
/**
|
|
55
|
+
* @summary Runner-plane resolve. Verifies the JobToken and returns a sealed sidecar envelope.
|
|
56
|
+
*/
|
|
57
|
+
const getCredentialBindingsControllerResolveForJobUrl = () => {
|
|
58
|
+
return `/credential-bindings/resolve-for-job`;
|
|
59
|
+
};
|
|
60
|
+
exports.getCredentialBindingsControllerResolveForJobUrl = getCredentialBindingsControllerResolveForJobUrl;
|
|
61
|
+
const credentialBindingsControllerResolveForJob = async (resolveForJobDto, options) => {
|
|
62
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getCredentialBindingsControllerResolveForJobUrl)(), {
|
|
63
|
+
...options,
|
|
64
|
+
method: 'POST',
|
|
65
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
66
|
+
body: JSON.stringify(resolveForJobDto)
|
|
67
|
+
});
|
|
68
|
+
};
|
|
69
|
+
exports.credentialBindingsControllerResolveForJob = credentialBindingsControllerResolveForJob;
|
|
70
|
+
/**
|
|
71
|
+
* @summary Get a credential binding by id.
|
|
72
|
+
*/
|
|
73
|
+
const getCredentialBindingsControllerGetByIdUrl = (id) => {
|
|
74
|
+
return `/credential-bindings/${id}`;
|
|
75
|
+
};
|
|
76
|
+
exports.getCredentialBindingsControllerGetByIdUrl = getCredentialBindingsControllerGetByIdUrl;
|
|
77
|
+
const credentialBindingsControllerGetById = async (id, options) => {
|
|
78
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getCredentialBindingsControllerGetByIdUrl)(id), {
|
|
79
|
+
...options,
|
|
80
|
+
method: 'GET'
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
exports.credentialBindingsControllerGetById = credentialBindingsControllerGetById;
|
|
84
|
+
/**
|
|
85
|
+
* @summary Update the non-secret facets of a binding.
|
|
86
|
+
*/
|
|
87
|
+
const getCredentialBindingsControllerUpdateUrl = (id) => {
|
|
88
|
+
return `/credential-bindings/${id}`;
|
|
89
|
+
};
|
|
90
|
+
exports.getCredentialBindingsControllerUpdateUrl = getCredentialBindingsControllerUpdateUrl;
|
|
91
|
+
const credentialBindingsControllerUpdate = async (id, updateCredentialBindingDto, options) => {
|
|
92
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getCredentialBindingsControllerUpdateUrl)(id), {
|
|
93
|
+
...options,
|
|
94
|
+
method: 'PATCH',
|
|
95
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
96
|
+
body: JSON.stringify(updateCredentialBindingDto)
|
|
97
|
+
});
|
|
98
|
+
};
|
|
99
|
+
exports.credentialBindingsControllerUpdate = credentialBindingsControllerUpdate;
|
|
100
|
+
/**
|
|
101
|
+
* @summary Revoke a binding and delete its custody secret.
|
|
102
|
+
*/
|
|
103
|
+
const getCredentialBindingsControllerRevokeUrl = (id) => {
|
|
104
|
+
return `/credential-bindings/${id}`;
|
|
105
|
+
};
|
|
106
|
+
exports.getCredentialBindingsControllerRevokeUrl = getCredentialBindingsControllerRevokeUrl;
|
|
107
|
+
const credentialBindingsControllerRevoke = async (id, options) => {
|
|
108
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getCredentialBindingsControllerRevokeUrl)(id), {
|
|
109
|
+
...options,
|
|
110
|
+
method: 'DELETE'
|
|
111
|
+
});
|
|
112
|
+
};
|
|
113
|
+
exports.credentialBindingsControllerRevoke = credentialBindingsControllerRevoke;
|
|
114
|
+
/**
|
|
115
|
+
* @summary Rotate the secret behind a binding.
|
|
116
|
+
*/
|
|
117
|
+
const getCredentialBindingsControllerRotateUrl = (id) => {
|
|
118
|
+
return `/credential-bindings/${id}/rotate`;
|
|
119
|
+
};
|
|
120
|
+
exports.getCredentialBindingsControllerRotateUrl = getCredentialBindingsControllerRotateUrl;
|
|
121
|
+
const credentialBindingsControllerRotate = async (id, rotateCredentialBindingDto, options) => {
|
|
122
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getCredentialBindingsControllerRotateUrl)(id), {
|
|
123
|
+
...options,
|
|
124
|
+
method: 'POST',
|
|
125
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
126
|
+
body: JSON.stringify(rotateCredentialBindingDto)
|
|
127
|
+
});
|
|
128
|
+
};
|
|
129
|
+
exports.credentialBindingsControllerRotate = credentialBindingsControllerRotate;
|
|
130
|
+
/**
|
|
131
|
+
* @summary Resolve a binding into a sealed envelope for the executing gateway.
|
|
132
|
+
*/
|
|
133
|
+
const getCredentialBindingsControllerResolveUrl = (id) => {
|
|
134
|
+
return `/credential-bindings/${id}/resolve`;
|
|
135
|
+
};
|
|
136
|
+
exports.getCredentialBindingsControllerResolveUrl = getCredentialBindingsControllerResolveUrl;
|
|
137
|
+
const credentialBindingsControllerResolve = async (id, resolveCredentialDto, options) => {
|
|
138
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getCredentialBindingsControllerResolveUrl)(id), {
|
|
139
|
+
...options,
|
|
140
|
+
method: 'POST',
|
|
141
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
142
|
+
body: JSON.stringify(resolveCredentialDto)
|
|
143
|
+
});
|
|
144
|
+
};
|
|
145
|
+
exports.credentialBindingsControllerResolve = credentialBindingsControllerResolve;
|
|
146
|
+
/**
|
|
147
|
+
* @summary Delegate a binding to a grantee subject.
|
|
148
|
+
*/
|
|
149
|
+
const getCredentialBindingsControllerCreateDelegationUrl = (id) => {
|
|
150
|
+
return `/credential-bindings/${id}/delegations`;
|
|
151
|
+
};
|
|
152
|
+
exports.getCredentialBindingsControllerCreateDelegationUrl = getCredentialBindingsControllerCreateDelegationUrl;
|
|
153
|
+
const credentialBindingsControllerCreateDelegation = async (id, createDelegationDto, options) => {
|
|
154
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getCredentialBindingsControllerCreateDelegationUrl)(id), {
|
|
155
|
+
...options,
|
|
156
|
+
method: 'POST',
|
|
157
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
158
|
+
body: JSON.stringify(createDelegationDto)
|
|
159
|
+
});
|
|
160
|
+
};
|
|
161
|
+
exports.credentialBindingsControllerCreateDelegation = credentialBindingsControllerCreateDelegation;
|
|
162
|
+
/**
|
|
163
|
+
* @summary List live delegations for a binding.
|
|
164
|
+
*/
|
|
165
|
+
const getCredentialBindingsControllerListDelegationsUrl = (id) => {
|
|
166
|
+
return `/credential-bindings/${id}/delegations`;
|
|
167
|
+
};
|
|
168
|
+
exports.getCredentialBindingsControllerListDelegationsUrl = getCredentialBindingsControllerListDelegationsUrl;
|
|
169
|
+
const credentialBindingsControllerListDelegations = async (id, options) => {
|
|
170
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getCredentialBindingsControllerListDelegationsUrl)(id), {
|
|
171
|
+
...options,
|
|
172
|
+
method: 'GET'
|
|
173
|
+
});
|
|
174
|
+
};
|
|
175
|
+
exports.credentialBindingsControllerListDelegations = credentialBindingsControllerListDelegations;
|
|
176
|
+
/**
|
|
177
|
+
* @summary Revoke a delegation.
|
|
178
|
+
*/
|
|
179
|
+
const getCredentialBindingsControllerRevokeDelegationUrl = (id, delegationId) => {
|
|
180
|
+
return `/credential-bindings/${id}/delegations/${delegationId}`;
|
|
181
|
+
};
|
|
182
|
+
exports.getCredentialBindingsControllerRevokeDelegationUrl = getCredentialBindingsControllerRevokeDelegationUrl;
|
|
183
|
+
const credentialBindingsControllerRevokeDelegation = async (id, delegationId, options) => {
|
|
184
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getCredentialBindingsControllerRevokeDelegationUrl)(id, delegationId), {
|
|
185
|
+
...options,
|
|
186
|
+
method: 'DELETE'
|
|
187
|
+
});
|
|
188
|
+
};
|
|
189
|
+
exports.credentialBindingsControllerRevokeDelegation = credentialBindingsControllerRevokeDelegation;
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
exports.customFetch = exports.ClientError = exports.getClientConfig = exports.configureClient = void 0;
|
|
18
|
+
// Auto-generated by @xemahq/api-client-generator — do not edit manually.
|
|
19
|
+
var custom_fetch_1 = require("./custom-fetch");
|
|
20
|
+
Object.defineProperty(exports, "configureClient", { enumerable: true, get: function () { return custom_fetch_1.configureClient; } });
|
|
21
|
+
Object.defineProperty(exports, "getClientConfig", { enumerable: true, get: function () { return custom_fetch_1.getClientConfig; } });
|
|
22
|
+
Object.defineProperty(exports, "ClientError", { enumerable: true, get: function () { return custom_fetch_1.ClientError; } });
|
|
23
|
+
Object.defineProperty(exports, "customFetch", { enumerable: true, get: function () { return custom_fetch_1.customFetch; } });
|
|
24
|
+
__exportStar(require("./models"), exports);
|
|
25
|
+
__exportStar(require("./endpoints/credential-bindings/credential-bindings"), exports);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Credential Broker API
|
|
5
|
+
* External-credential custody + sealed injection. The single place external secrets resolve; the LLM never sees them.
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
export interface ActorRefDto {
|
|
9
|
+
/** Subject kind of this delegation link. */
|
|
10
|
+
kind: string;
|
|
11
|
+
/** Subject id/ref of this delegation link. */
|
|
12
|
+
id: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v8.6.2 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Credential Broker API
|
|
6
|
+
* External-credential custody + sealed injection. The single place external secrets resolve; the LLM never sees them.
|
|
7
|
+
* OpenAPI spec version: 0.1.0
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Credential Broker API
|
|
5
|
+
* External-credential custody + sealed injection. The single place external secrets resolve; the LLM never sees them.
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { CreateCredentialBindingDtoOauthConfig } from './createCredentialBindingDtoOauthConfig';
|
|
9
|
+
import type { CredentialAuthType } from './credentialAuthType';
|
|
10
|
+
import type { CredentialScopeTier } from './credentialScopeTier';
|
|
11
|
+
export interface CreateCredentialBindingDto {
|
|
12
|
+
orgId: string;
|
|
13
|
+
/** @nullable */
|
|
14
|
+
projectId?: string | null;
|
|
15
|
+
/** @nullable */
|
|
16
|
+
environment?: string | null;
|
|
17
|
+
/** External provider slug (e.g. github, slack). */
|
|
18
|
+
provider: string;
|
|
19
|
+
authType: CredentialAuthType;
|
|
20
|
+
ownerSubjectKind: string;
|
|
21
|
+
ownerSubjectRef: string;
|
|
22
|
+
scopeTier: CredentialScopeTier;
|
|
23
|
+
/** The secret material. Written to custody and discarded — NEVER persisted in the broker DB. For oauth2 pass a JSON string `{accessToken,refreshToken,expiresAt}`. */
|
|
24
|
+
secretValue: string;
|
|
25
|
+
/**
|
|
26
|
+
* Non-secret OAuth2 metadata (tokenUrl, clientId, scopes). The refresh token lives in custody, not here.
|
|
27
|
+
* @nullable
|
|
28
|
+
*/
|
|
29
|
+
oauthConfig?: CreateCredentialBindingDtoOauthConfig;
|
|
30
|
+
/**
|
|
31
|
+
* Header name for api_key injection (e.g. X-Api-Key).
|
|
32
|
+
* @nullable
|
|
33
|
+
*/
|
|
34
|
+
headerName?: string | null;
|
|
35
|
+
allowedCapabilities: string[];
|
|
36
|
+
allowedActions: string[];
|
|
37
|
+
allowedResources: string[];
|
|
38
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Credential Broker API
|
|
5
|
+
* External-credential custody + sealed injection. The single place external secrets resolve; the LLM never sees them.
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Non-secret OAuth2 metadata (tokenUrl, clientId, scopes). The refresh token lives in custody, not here.
|
|
10
|
+
* @nullable
|
|
11
|
+
*/
|
|
12
|
+
export type CreateCredentialBindingDtoOauthConfig = {
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
} | null;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v8.6.2 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Credential Broker API
|
|
6
|
+
* External-credential custody + sealed injection. The single place external secrets resolve; the LLM never sees them.
|
|
7
|
+
* OpenAPI spec version: 0.1.0
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Credential Broker API
|
|
5
|
+
* External-credential custody + sealed injection. The single place external secrets resolve; the LLM never sees them.
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
export interface CreateDelegationDto {
|
|
9
|
+
granteeSubjectKind: string;
|
|
10
|
+
granteeSubjectRef: string;
|
|
11
|
+
grantorSubjectKind: string;
|
|
12
|
+
grantorSubjectRef: string;
|
|
13
|
+
allowedCapabilities: string[];
|
|
14
|
+
/**
|
|
15
|
+
* ISO-8601 expiry.
|
|
16
|
+
* @nullable
|
|
17
|
+
*/
|
|
18
|
+
expiresAt?: string | null;
|
|
19
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v8.6.2 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Credential Broker API
|
|
6
|
+
* External-credential custody + sealed injection. The single place external secrets resolve; the LLM never sees them.
|
|
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
|
+
* Credential Broker API
|
|
5
|
+
* External-credential custody + sealed injection. The single place external secrets resolve; the LLM never sees them.
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
export type CredentialAuthType = typeof CredentialAuthType[keyof typeof CredentialAuthType];
|
|
9
|
+
export declare const CredentialAuthType: {
|
|
10
|
+
readonly none: "none";
|
|
11
|
+
readonly bearer: "bearer";
|
|
12
|
+
readonly api_key: "api_key";
|
|
13
|
+
readonly basic: "basic";
|
|
14
|
+
readonly oauth2: "oauth2";
|
|
15
|
+
readonly app_install: "app_install";
|
|
16
|
+
readonly iam_role: "iam_role";
|
|
17
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v8.6.2 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Credential Broker API
|
|
6
|
+
* External-credential custody + sealed injection. The single place external secrets resolve; the LLM never sees them.
|
|
7
|
+
* OpenAPI spec version: 0.1.0
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.CredentialAuthType = void 0;
|
|
11
|
+
exports.CredentialAuthType = {
|
|
12
|
+
none: 'none',
|
|
13
|
+
bearer: 'bearer',
|
|
14
|
+
api_key: 'api_key',
|
|
15
|
+
basic: 'basic',
|
|
16
|
+
oauth2: 'oauth2',
|
|
17
|
+
app_install: 'app_install',
|
|
18
|
+
iam_role: 'iam_role',
|
|
19
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Credential Broker API
|
|
5
|
+
* External-credential custody + sealed injection. The single place external secrets resolve; the LLM never sees them.
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { CredentialAuthType } from './credentialAuthType';
|
|
9
|
+
import type { CredentialBindingDtoOauthConfig } from './credentialBindingDtoOauthConfig';
|
|
10
|
+
import type { CredentialScopeTier } from './credentialScopeTier';
|
|
11
|
+
export interface CredentialBindingDto {
|
|
12
|
+
id: string;
|
|
13
|
+
orgId: string;
|
|
14
|
+
/** @nullable */
|
|
15
|
+
projectId?: string | null;
|
|
16
|
+
/** @nullable */
|
|
17
|
+
environment?: string | null;
|
|
18
|
+
provider: string;
|
|
19
|
+
authType: CredentialAuthType;
|
|
20
|
+
ownerSubjectKind: string;
|
|
21
|
+
ownerSubjectRef: string;
|
|
22
|
+
scopeTier: CredentialScopeTier;
|
|
23
|
+
/** Which custody backend holds the secret. */
|
|
24
|
+
custodyBackend: string;
|
|
25
|
+
/** @nullable */
|
|
26
|
+
oauthConfig?: CredentialBindingDtoOauthConfig;
|
|
27
|
+
/** @nullable */
|
|
28
|
+
headerName?: string | null;
|
|
29
|
+
allowedCapabilities: string[];
|
|
30
|
+
allowedActions: string[];
|
|
31
|
+
allowedResources: string[];
|
|
32
|
+
createdAt: string;
|
|
33
|
+
updatedAt: string;
|
|
34
|
+
/** @nullable */
|
|
35
|
+
revokedAt?: string | null;
|
|
36
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Credential Broker API
|
|
5
|
+
* External-credential custody + sealed injection. The single place external secrets resolve; the LLM never sees them.
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { CredentialBindingDto } from './credentialBindingDto';
|
|
9
|
+
export interface CredentialBindingDtoDataArrayEnvelope {
|
|
10
|
+
data: CredentialBindingDto[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Credential Broker API
|
|
5
|
+
* External-credential custody + sealed injection. The single place external secrets resolve; the LLM never sees them.
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { CredentialBindingDto } from './credentialBindingDto';
|
|
9
|
+
export interface CredentialBindingDtoDataEnvelope {
|
|
10
|
+
data: CredentialBindingDto;
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Credential Broker API
|
|
5
|
+
* External-credential custody + sealed injection. The single place external secrets resolve; the LLM never sees them.
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @nullable
|
|
10
|
+
*/
|
|
11
|
+
export type CredentialBindingDtoOauthConfig = {
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
} | null;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v8.6.2 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Credential Broker API
|
|
6
|
+
* External-credential custody + sealed injection. The single place external secrets resolve; the LLM never sees them.
|
|
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
|
+
* Credential Broker API
|
|
5
|
+
* External-credential custody + sealed injection. The single place external secrets resolve; the LLM never sees them.
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
export type CredentialBindingsControllerListParams = {
|
|
9
|
+
orgId: string;
|
|
10
|
+
projectId: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v8.6.2 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Credential Broker API
|
|
6
|
+
* External-credential custody + sealed injection. The single place external secrets resolve; the LLM never sees them.
|
|
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
|
+
* Credential Broker API
|
|
5
|
+
* External-credential custody + sealed injection. The single place external secrets resolve; the LLM never sees them.
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
export type CredentialScopeTier = typeof CredentialScopeTier[keyof typeof CredentialScopeTier];
|
|
9
|
+
export declare const CredentialScopeTier: {
|
|
10
|
+
readonly org: "org";
|
|
11
|
+
readonly project: "project";
|
|
12
|
+
readonly user: "user";
|
|
13
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v8.6.2 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Credential Broker API
|
|
6
|
+
* External-credential custody + sealed injection. The single place external secrets resolve; the LLM never sees them.
|
|
7
|
+
* OpenAPI spec version: 0.1.0
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.CredentialScopeTier = void 0;
|
|
11
|
+
exports.CredentialScopeTier = {
|
|
12
|
+
org: 'org',
|
|
13
|
+
project: 'project',
|
|
14
|
+
user: 'user',
|
|
15
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Credential Broker API
|
|
5
|
+
* External-credential custody + sealed injection. The single place external secrets resolve; the LLM never sees them.
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
export interface DelegationGrantDto {
|
|
9
|
+
id: string;
|
|
10
|
+
bindingId: string;
|
|
11
|
+
granteeSubjectKind: string;
|
|
12
|
+
granteeSubjectRef: string;
|
|
13
|
+
grantorSubjectKind: string;
|
|
14
|
+
grantorSubjectRef: string;
|
|
15
|
+
allowedCapabilities: string[];
|
|
16
|
+
createdAt: string;
|
|
17
|
+
/** @nullable */
|
|
18
|
+
expiresAt?: string | null;
|
|
19
|
+
/** @nullable */
|
|
20
|
+
revokedAt?: string | null;
|
|
21
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v8.6.2 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Credential Broker API
|
|
6
|
+
* External-credential custody + sealed injection. The single place external secrets resolve; the LLM never sees them.
|
|
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
|
+
* Credential Broker API
|
|
5
|
+
* External-credential custody + sealed injection. The single place external secrets resolve; the LLM never sees them.
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { DelegationGrantDto } from './delegationGrantDto';
|
|
9
|
+
export interface DelegationGrantDtoDataArrayEnvelope {
|
|
10
|
+
data: DelegationGrantDto[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Credential Broker API
|
|
5
|
+
* External-credential custody + sealed injection. The single place external secrets resolve; the LLM never sees them.
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { DelegationGrantDto } from './delegationGrantDto';
|
|
9
|
+
export interface DelegationGrantDtoDataEnvelope {
|
|
10
|
+
data: DelegationGrantDto;
|
|
11
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export * from './actorRefDto';
|
|
2
|
+
export * from './createCredentialBindingDto';
|
|
3
|
+
export * from './createCredentialBindingDtoOauthConfig';
|
|
4
|
+
export * from './createDelegationDto';
|
|
5
|
+
export * from './credentialAuthType';
|
|
6
|
+
export * from './credentialBindingDto';
|
|
7
|
+
export * from './credentialBindingDtoDataArrayEnvelope';
|
|
8
|
+
export * from './credentialBindingDtoDataEnvelope';
|
|
9
|
+
export * from './credentialBindingDtoOauthConfig';
|
|
10
|
+
export * from './credentialBindingsControllerListParams';
|
|
11
|
+
export * from './credentialScopeTier';
|
|
12
|
+
export * from './delegationGrantDto';
|
|
13
|
+
export * from './delegationGrantDtoDataArrayEnvelope';
|
|
14
|
+
export * from './delegationGrantDtoDataEnvelope';
|
|
15
|
+
export * from './resolveCredentialDto';
|
|
16
|
+
export * from './resolveForJobDto';
|
|
17
|
+
export * from './resolvedEnvelopeDto';
|
|
18
|
+
export * from './resolvedEnvelopeDtoDataEnvelope';
|
|
19
|
+
export * from './rotateCredentialBindingDto';
|
|
20
|
+
export * from './updateCredentialBindingDto';
|
|
21
|
+
export * from './updateCredentialBindingDtoOauthConfig';
|
|
@@ -0,0 +1,38 @@
|
|
|
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("./actorRefDto"), exports);
|
|
19
|
+
__exportStar(require("./createCredentialBindingDto"), exports);
|
|
20
|
+
__exportStar(require("./createCredentialBindingDtoOauthConfig"), exports);
|
|
21
|
+
__exportStar(require("./createDelegationDto"), exports);
|
|
22
|
+
__exportStar(require("./credentialAuthType"), exports);
|
|
23
|
+
__exportStar(require("./credentialBindingDto"), exports);
|
|
24
|
+
__exportStar(require("./credentialBindingDtoDataArrayEnvelope"), exports);
|
|
25
|
+
__exportStar(require("./credentialBindingDtoDataEnvelope"), exports);
|
|
26
|
+
__exportStar(require("./credentialBindingDtoOauthConfig"), exports);
|
|
27
|
+
__exportStar(require("./credentialBindingsControllerListParams"), exports);
|
|
28
|
+
__exportStar(require("./credentialScopeTier"), exports);
|
|
29
|
+
__exportStar(require("./delegationGrantDto"), exports);
|
|
30
|
+
__exportStar(require("./delegationGrantDtoDataArrayEnvelope"), exports);
|
|
31
|
+
__exportStar(require("./delegationGrantDtoDataEnvelope"), exports);
|
|
32
|
+
__exportStar(require("./resolveCredentialDto"), exports);
|
|
33
|
+
__exportStar(require("./resolveForJobDto"), exports);
|
|
34
|
+
__exportStar(require("./resolvedEnvelopeDto"), exports);
|
|
35
|
+
__exportStar(require("./resolvedEnvelopeDtoDataEnvelope"), exports);
|
|
36
|
+
__exportStar(require("./rotateCredentialBindingDto"), exports);
|
|
37
|
+
__exportStar(require("./updateCredentialBindingDto"), exports);
|
|
38
|
+
__exportStar(require("./updateCredentialBindingDtoOauthConfig"), exports);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Credential Broker API
|
|
5
|
+
* External-credential custody + sealed injection. The single place external secrets resolve; the LLM never sees them.
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { ActorRefDto } from './actorRefDto';
|
|
9
|
+
export interface ResolveCredentialDto {
|
|
10
|
+
/** The single party permitted to unseal — the executing gateway/runner id. Becomes the JWE audience. */
|
|
11
|
+
audience: string;
|
|
12
|
+
/** Hash of the invocation input. Bound into the envelope; the gateway re-derives + cross-checks it so a captured envelope cannot be replayed against a different request. */
|
|
13
|
+
inputHash: string;
|
|
14
|
+
/** Correlation id stitching this resolve into the audit trail. */
|
|
15
|
+
correlationId: string;
|
|
16
|
+
subjectKind: string;
|
|
17
|
+
subjectRef: string;
|
|
18
|
+
/** RFC 8693 delegation chain, outermost-acting-first. May be empty. */
|
|
19
|
+
actorChain: ActorRefDto[];
|
|
20
|
+
/** Canonical capability ref being invoked. */
|
|
21
|
+
capability: string;
|
|
22
|
+
/** @nullable */
|
|
23
|
+
resource?: string | null;
|
|
24
|
+
/**
|
|
25
|
+
* Requested TTL (seconds). Clamped to 1..60; default 60.
|
|
26
|
+
* @nullable
|
|
27
|
+
*/
|
|
28
|
+
ttlSeconds?: number | null;
|
|
29
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Credential Broker API
|
|
5
|
+
* External-credential custody + sealed injection. The single place external secrets resolve; the LLM never sees them.
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
export interface ResolveForJobDto {
|
|
9
|
+
/** The runner JobToken (kernel-server signed JWT). */
|
|
10
|
+
jobToken: string;
|
|
11
|
+
/** Opaque binding id the job is permitted to resolve. */
|
|
12
|
+
credentialBindingId: string;
|
|
13
|
+
/** The runner instance id — becomes the envelope audience. */
|
|
14
|
+
runnerId: string;
|
|
15
|
+
/** Correlation id for the audit trail. */
|
|
16
|
+
correlationId: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v8.6.2 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Credential Broker API
|
|
6
|
+
* External-credential custody + sealed injection. The single place external secrets resolve; the LLM never sees them.
|
|
7
|
+
* OpenAPI spec version: 0.1.0
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Credential Broker API
|
|
5
|
+
* External-credential custody + sealed injection. The single place external secrets resolve; the LLM never sees them.
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
export interface ResolvedEnvelopeDto {
|
|
9
|
+
/** The sealed JWE the gateway/runner unseals. */
|
|
10
|
+
sealedEnvelope: string;
|
|
11
|
+
/** The audience the envelope was minted for. */
|
|
12
|
+
audience: string;
|
|
13
|
+
bindingId: string;
|
|
14
|
+
/** Envelope expiry (ISO-8601). */
|
|
15
|
+
expiresAt: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v8.6.2 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Credential Broker API
|
|
6
|
+
* External-credential custody + sealed injection. The single place external secrets resolve; the LLM never sees them.
|
|
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
|
+
* Credential Broker API
|
|
5
|
+
* External-credential custody + sealed injection. The single place external secrets resolve; the LLM never sees them.
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { ResolvedEnvelopeDto } from './resolvedEnvelopeDto';
|
|
9
|
+
export interface ResolvedEnvelopeDtoDataEnvelope {
|
|
10
|
+
data: ResolvedEnvelopeDto;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Credential Broker API
|
|
5
|
+
* External-credential custody + sealed injection. The single place external secrets resolve; the LLM never sees them.
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
export interface RotateCredentialBindingDto {
|
|
9
|
+
/** The new secret material. Written to custody (bumping its version) and discarded — never persisted in the broker DB. */
|
|
10
|
+
secretValue: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v8.6.2 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Credential Broker API
|
|
6
|
+
* External-credential custody + sealed injection. The single place external secrets resolve; the LLM never sees them.
|
|
7
|
+
* OpenAPI spec version: 0.1.0
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Credential Broker API
|
|
5
|
+
* External-credential custody + sealed injection. The single place external secrets resolve; the LLM never sees them.
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { UpdateCredentialBindingDtoOauthConfig } from './updateCredentialBindingDtoOauthConfig';
|
|
9
|
+
export interface UpdateCredentialBindingDto {
|
|
10
|
+
/** @nullable */
|
|
11
|
+
environment?: string | null;
|
|
12
|
+
/** @nullable */
|
|
13
|
+
oauthConfig?: UpdateCredentialBindingDtoOauthConfig;
|
|
14
|
+
/** @nullable */
|
|
15
|
+
headerName?: string | null;
|
|
16
|
+
allowedCapabilities?: string[];
|
|
17
|
+
allowedActions?: string[];
|
|
18
|
+
allowedResources?: string[];
|
|
19
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Credential Broker API
|
|
5
|
+
* External-credential custody + sealed injection. The single place external secrets resolve; the LLM never sees them.
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @nullable
|
|
10
|
+
*/
|
|
11
|
+
export type UpdateCredentialBindingDtoOauthConfig = {
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
} | null;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v8.6.2 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Credential Broker API
|
|
6
|
+
* External-credential custody + sealed injection. The single place external secrets resolve; the LLM never sees them.
|
|
7
|
+
* OpenAPI spec version: 0.1.0
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/package.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@xemahq/credential-broker-internal-api-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": "credential-broker-api",
|
|
19
|
+
"biome": "integration-platform",
|
|
20
|
+
"target": "server",
|
|
21
|
+
"generator": "@xemahq/api-client-generator@0.1.1",
|
|
22
|
+
"source": "openapi.internal.json"
|
|
23
|
+
},
|
|
24
|
+
"scripts": {
|
|
25
|
+
"build": "tsc -p tsconfig.json"
|
|
26
|
+
}
|
|
27
|
+
}
|