@cosmonic-labs/openapi2mcp 0.7.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/interfaces/wasi-cli-environment.d.ts +3 -0
- package/dist/interfaces/wasi-cli-exit.d.ts +3 -0
- package/dist/interfaces/wasi-cli-run.d.ts +2 -0
- package/dist/interfaces/wasi-cli-stderr.d.ts +3 -0
- package/dist/interfaces/wasi-cli-stdin.d.ts +3 -0
- package/dist/interfaces/wasi-cli-stdout.d.ts +3 -0
- package/dist/interfaces/wasi-cli-terminal-input.d.ts +8 -0
- package/dist/interfaces/wasi-cli-terminal-output.d.ts +8 -0
- package/dist/interfaces/wasi-cli-terminal-stderr.d.ts +3 -0
- package/dist/interfaces/wasi-cli-terminal-stdin.d.ts +3 -0
- package/dist/interfaces/wasi-cli-terminal-stdout.d.ts +3 -0
- package/dist/interfaces/wasi-clocks-wall-clock.d.ts +5 -0
- package/dist/interfaces/wasi-filesystem-preopens.d.ts +3 -0
- package/dist/interfaces/wasi-filesystem-types.d.ts +166 -0
- package/dist/interfaces/wasi-io-error.d.ts +9 -0
- package/dist/interfaces/wasi-io-poll.d.ts +8 -0
- package/dist/interfaces/wasi-io-streams.d.ts +30 -0
- package/dist/interfaces/wasi-random-insecure-seed.d.ts +2 -0
- package/dist/interfaces/wasi-sockets-tcp.d.ts +8 -0
- package/dist/interfaces/wasi-sockets-udp.d.ts +22 -0
- package/dist/openapi2mcp.core.wasm +0 -0
- package/dist/openapi2mcp.core2.wasm +0 -0
- package/dist/openapi2mcp.d.ts +21 -0
- package/dist/openapi2mcp.js +5351 -0
- package/package.json +1 -1
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
/** @module Interface wasi:filesystem/types@0.2.6 **/
|
|
2
|
+
export function filesystemErrorCode(err: Error): ErrorCode | undefined;
|
|
3
|
+
export interface DescriptorFlags {
|
|
4
|
+
read?: boolean,
|
|
5
|
+
write?: boolean,
|
|
6
|
+
fileIntegritySync?: boolean,
|
|
7
|
+
dataIntegritySync?: boolean,
|
|
8
|
+
requestedWriteSync?: boolean,
|
|
9
|
+
mutateDirectory?: boolean,
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* # Variants
|
|
13
|
+
*
|
|
14
|
+
* ## `"access"`
|
|
15
|
+
*
|
|
16
|
+
* ## `"would-block"`
|
|
17
|
+
*
|
|
18
|
+
* ## `"already"`
|
|
19
|
+
*
|
|
20
|
+
* ## `"bad-descriptor"`
|
|
21
|
+
*
|
|
22
|
+
* ## `"busy"`
|
|
23
|
+
*
|
|
24
|
+
* ## `"deadlock"`
|
|
25
|
+
*
|
|
26
|
+
* ## `"quota"`
|
|
27
|
+
*
|
|
28
|
+
* ## `"exist"`
|
|
29
|
+
*
|
|
30
|
+
* ## `"file-too-large"`
|
|
31
|
+
*
|
|
32
|
+
* ## `"illegal-byte-sequence"`
|
|
33
|
+
*
|
|
34
|
+
* ## `"in-progress"`
|
|
35
|
+
*
|
|
36
|
+
* ## `"interrupted"`
|
|
37
|
+
*
|
|
38
|
+
* ## `"invalid"`
|
|
39
|
+
*
|
|
40
|
+
* ## `"io"`
|
|
41
|
+
*
|
|
42
|
+
* ## `"is-directory"`
|
|
43
|
+
*
|
|
44
|
+
* ## `"loop"`
|
|
45
|
+
*
|
|
46
|
+
* ## `"too-many-links"`
|
|
47
|
+
*
|
|
48
|
+
* ## `"message-size"`
|
|
49
|
+
*
|
|
50
|
+
* ## `"name-too-long"`
|
|
51
|
+
*
|
|
52
|
+
* ## `"no-device"`
|
|
53
|
+
*
|
|
54
|
+
* ## `"no-entry"`
|
|
55
|
+
*
|
|
56
|
+
* ## `"no-lock"`
|
|
57
|
+
*
|
|
58
|
+
* ## `"insufficient-memory"`
|
|
59
|
+
*
|
|
60
|
+
* ## `"insufficient-space"`
|
|
61
|
+
*
|
|
62
|
+
* ## `"not-directory"`
|
|
63
|
+
*
|
|
64
|
+
* ## `"not-empty"`
|
|
65
|
+
*
|
|
66
|
+
* ## `"not-recoverable"`
|
|
67
|
+
*
|
|
68
|
+
* ## `"unsupported"`
|
|
69
|
+
*
|
|
70
|
+
* ## `"no-tty"`
|
|
71
|
+
*
|
|
72
|
+
* ## `"no-such-device"`
|
|
73
|
+
*
|
|
74
|
+
* ## `"overflow"`
|
|
75
|
+
*
|
|
76
|
+
* ## `"not-permitted"`
|
|
77
|
+
*
|
|
78
|
+
* ## `"pipe"`
|
|
79
|
+
*
|
|
80
|
+
* ## `"read-only"`
|
|
81
|
+
*
|
|
82
|
+
* ## `"invalid-seek"`
|
|
83
|
+
*
|
|
84
|
+
* ## `"text-file-busy"`
|
|
85
|
+
*
|
|
86
|
+
* ## `"cross-device"`
|
|
87
|
+
*/
|
|
88
|
+
export type ErrorCode = 'access' | 'would-block' | 'already' | 'bad-descriptor' | 'busy' | 'deadlock' | 'quota' | 'exist' | 'file-too-large' | 'illegal-byte-sequence' | 'in-progress' | 'interrupted' | 'invalid' | 'io' | 'is-directory' | 'loop' | 'too-many-links' | 'message-size' | 'name-too-long' | 'no-device' | 'no-entry' | 'no-lock' | 'insufficient-memory' | 'insufficient-space' | 'not-directory' | 'not-empty' | 'not-recoverable' | 'unsupported' | 'no-tty' | 'no-such-device' | 'overflow' | 'not-permitted' | 'pipe' | 'read-only' | 'invalid-seek' | 'text-file-busy' | 'cross-device';
|
|
89
|
+
export type Error = import('./wasi-io-streams.js').Error;
|
|
90
|
+
/**
|
|
91
|
+
* # Variants
|
|
92
|
+
*
|
|
93
|
+
* ## `"unknown"`
|
|
94
|
+
*
|
|
95
|
+
* ## `"block-device"`
|
|
96
|
+
*
|
|
97
|
+
* ## `"character-device"`
|
|
98
|
+
*
|
|
99
|
+
* ## `"directory"`
|
|
100
|
+
*
|
|
101
|
+
* ## `"fifo"`
|
|
102
|
+
*
|
|
103
|
+
* ## `"symbolic-link"`
|
|
104
|
+
*
|
|
105
|
+
* ## `"regular-file"`
|
|
106
|
+
*
|
|
107
|
+
* ## `"socket"`
|
|
108
|
+
*/
|
|
109
|
+
export type DescriptorType = 'unknown' | 'block-device' | 'character-device' | 'directory' | 'fifo' | 'symbolic-link' | 'regular-file' | 'socket';
|
|
110
|
+
export interface DirectoryEntry {
|
|
111
|
+
type: DescriptorType,
|
|
112
|
+
name: string,
|
|
113
|
+
}
|
|
114
|
+
export interface PathFlags {
|
|
115
|
+
symlinkFollow?: boolean,
|
|
116
|
+
}
|
|
117
|
+
export type LinkCount = bigint;
|
|
118
|
+
export type Filesize = bigint;
|
|
119
|
+
export type Datetime = import('./wasi-clocks-wall-clock.js').Datetime;
|
|
120
|
+
export interface DescriptorStat {
|
|
121
|
+
type: DescriptorType,
|
|
122
|
+
linkCount: LinkCount,
|
|
123
|
+
size: Filesize,
|
|
124
|
+
dataAccessTimestamp?: Datetime,
|
|
125
|
+
dataModificationTimestamp?: Datetime,
|
|
126
|
+
statusChangeTimestamp?: Datetime,
|
|
127
|
+
}
|
|
128
|
+
export interface OpenFlags {
|
|
129
|
+
create?: boolean,
|
|
130
|
+
directory?: boolean,
|
|
131
|
+
exclusive?: boolean,
|
|
132
|
+
truncate?: boolean,
|
|
133
|
+
}
|
|
134
|
+
export type InputStream = import('./wasi-io-streams.js').InputStream;
|
|
135
|
+
export type OutputStream = import('./wasi-io-streams.js').OutputStream;
|
|
136
|
+
export interface MetadataHashValue {
|
|
137
|
+
lower: bigint,
|
|
138
|
+
upper: bigint,
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export class Descriptor {
|
|
142
|
+
/**
|
|
143
|
+
* This type does not have a public constructor.
|
|
144
|
+
*/
|
|
145
|
+
private constructor();
|
|
146
|
+
readViaStream(offset: Filesize): InputStream;
|
|
147
|
+
writeViaStream(offset: Filesize): OutputStream;
|
|
148
|
+
appendViaStream(): OutputStream;
|
|
149
|
+
getFlags(): DescriptorFlags;
|
|
150
|
+
getType(): DescriptorType;
|
|
151
|
+
readDirectory(): DirectoryEntryStream;
|
|
152
|
+
stat(): DescriptorStat;
|
|
153
|
+
statAt(pathFlags: PathFlags, path: string): DescriptorStat;
|
|
154
|
+
openAt(pathFlags: PathFlags, path: string, openFlags: OpenFlags, flags: DescriptorFlags): Descriptor;
|
|
155
|
+
unlinkFileAt(path: string): void;
|
|
156
|
+
metadataHash(): MetadataHashValue;
|
|
157
|
+
metadataHashAt(pathFlags: PathFlags, path: string): MetadataHashValue;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export class DirectoryEntryStream {
|
|
161
|
+
/**
|
|
162
|
+
* This type does not have a public constructor.
|
|
163
|
+
*/
|
|
164
|
+
private constructor();
|
|
165
|
+
readDirectoryEntry(): DirectoryEntry | undefined;
|
|
166
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/** @module Interface wasi:io/streams@0.2.6 **/
|
|
2
|
+
export type Error = import('./wasi-io-error.js').Error;
|
|
3
|
+
export type StreamError = StreamErrorLastOperationFailed | StreamErrorClosed;
|
|
4
|
+
export interface StreamErrorLastOperationFailed {
|
|
5
|
+
tag: 'last-operation-failed',
|
|
6
|
+
val: Error,
|
|
7
|
+
}
|
|
8
|
+
export interface StreamErrorClosed {
|
|
9
|
+
tag: 'closed',
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export class InputStream {
|
|
13
|
+
/**
|
|
14
|
+
* This type does not have a public constructor.
|
|
15
|
+
*/
|
|
16
|
+
private constructor();
|
|
17
|
+
read(len: bigint): Uint8Array;
|
|
18
|
+
blockingRead(len: bigint): Uint8Array;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export class OutputStream {
|
|
22
|
+
/**
|
|
23
|
+
* This type does not have a public constructor.
|
|
24
|
+
*/
|
|
25
|
+
private constructor();
|
|
26
|
+
checkWrite(): bigint;
|
|
27
|
+
write(contents: Uint8Array): void;
|
|
28
|
+
blockingWriteAndFlush(contents: Uint8Array): void;
|
|
29
|
+
blockingFlush(): void;
|
|
30
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/** @module Interface wasi:sockets/udp@0.2.6 **/
|
|
2
|
+
|
|
3
|
+
export class IncomingDatagramStream {
|
|
4
|
+
/**
|
|
5
|
+
* This type does not have a public constructor.
|
|
6
|
+
*/
|
|
7
|
+
private constructor();
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export class OutgoingDatagramStream {
|
|
11
|
+
/**
|
|
12
|
+
* This type does not have a public constructor.
|
|
13
|
+
*/
|
|
14
|
+
private constructor();
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export class UdpSocket {
|
|
18
|
+
/**
|
|
19
|
+
* This type does not have a public constructor.
|
|
20
|
+
*/
|
|
21
|
+
private constructor();
|
|
22
|
+
}
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// world root:component/root
|
|
2
|
+
export type * as WasiCliEnvironment026 from './interfaces/wasi-cli-environment.js'; // import wasi:cli/environment@0.2.6
|
|
3
|
+
export type * as WasiCliExit026 from './interfaces/wasi-cli-exit.js'; // import wasi:cli/exit@0.2.6
|
|
4
|
+
export type * as WasiCliStderr026 from './interfaces/wasi-cli-stderr.js'; // import wasi:cli/stderr@0.2.6
|
|
5
|
+
export type * as WasiCliStdin026 from './interfaces/wasi-cli-stdin.js'; // import wasi:cli/stdin@0.2.6
|
|
6
|
+
export type * as WasiCliStdout026 from './interfaces/wasi-cli-stdout.js'; // import wasi:cli/stdout@0.2.6
|
|
7
|
+
export type * as WasiCliTerminalInput026 from './interfaces/wasi-cli-terminal-input.js'; // import wasi:cli/terminal-input@0.2.6
|
|
8
|
+
export type * as WasiCliTerminalOutput026 from './interfaces/wasi-cli-terminal-output.js'; // import wasi:cli/terminal-output@0.2.6
|
|
9
|
+
export type * as WasiCliTerminalStderr026 from './interfaces/wasi-cli-terminal-stderr.js'; // import wasi:cli/terminal-stderr@0.2.6
|
|
10
|
+
export type * as WasiCliTerminalStdin026 from './interfaces/wasi-cli-terminal-stdin.js'; // import wasi:cli/terminal-stdin@0.2.6
|
|
11
|
+
export type * as WasiCliTerminalStdout026 from './interfaces/wasi-cli-terminal-stdout.js'; // import wasi:cli/terminal-stdout@0.2.6
|
|
12
|
+
export type * as WasiClocksWallClock026 from './interfaces/wasi-clocks-wall-clock.js'; // import wasi:clocks/wall-clock@0.2.6
|
|
13
|
+
export type * as WasiFilesystemPreopens026 from './interfaces/wasi-filesystem-preopens.js'; // import wasi:filesystem/preopens@0.2.6
|
|
14
|
+
export type * as WasiFilesystemTypes026 from './interfaces/wasi-filesystem-types.js'; // import wasi:filesystem/types@0.2.6
|
|
15
|
+
export type * as WasiIoError026 from './interfaces/wasi-io-error.js'; // import wasi:io/error@0.2.6
|
|
16
|
+
export type * as WasiIoPoll026 from './interfaces/wasi-io-poll.js'; // import wasi:io/poll@0.2.6
|
|
17
|
+
export type * as WasiIoStreams026 from './interfaces/wasi-io-streams.js'; // import wasi:io/streams@0.2.6
|
|
18
|
+
export type * as WasiRandomInsecureSeed026 from './interfaces/wasi-random-insecure-seed.js'; // import wasi:random/insecure-seed@0.2.6
|
|
19
|
+
export type * as WasiSocketsTcp026 from './interfaces/wasi-sockets-tcp.js'; // import wasi:sockets/tcp@0.2.6
|
|
20
|
+
export type * as WasiSocketsUdp026 from './interfaces/wasi-sockets-udp.js'; // import wasi:sockets/udp@0.2.6
|
|
21
|
+
export * as run from './interfaces/wasi-cli-run.js'; // export wasi:cli/run@0.2.6
|