@hideyukimori/nene2-client 0.1.0 → 0.1.2
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/README.md +14 -0
- package/dist/client/create-nene2-client.d.ts +4 -0
- package/dist/client/create-nene2-client.d.ts.map +1 -1
- package/dist/client/create-nene2-client.js +7 -5
- package/dist/client/create-nene2-client.js.map +1 -1
- package/dist/client/health.d.ts +9 -0
- package/dist/client/health.d.ts.map +1 -0
- package/dist/client/health.js +14 -0
- package/dist/client/health.js.map +1 -0
- package/dist/generated/openapi.d.ts +877 -0
- package/dist/generated/openapi.d.ts.map +1 -0
- package/dist/generated/openapi.js +6 -0
- package/dist/generated/openapi.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/problem/types.d.ts +2 -19
- package/dist/problem/types.d.ts.map +1 -1
- package/dist/problem/types.js +0 -4
- package/dist/problem/types.js.map +1 -1
- package/dist/types/examples/notes.d.ts +4 -15
- package/dist/types/examples/notes.d.ts.map +1 -1
- package/dist/types/examples/notes.js +0 -3
- package/dist/types/examples/notes.js.map +1 -1
- package/dist/types/examples/protected.d.ts +3 -5
- package/dist/types/examples/protected.d.ts.map +1 -1
- package/dist/types/examples/protected.js +0 -3
- package/dist/types/examples/protected.js.map +1 -1
- package/dist/types/examples/tags.d.ts +4 -13
- package/dist/types/examples/tags.d.ts.map +1 -1
- package/dist/types/examples/tags.js +0 -3
- package/dist/types/examples/tags.js.map +1 -1
- package/dist/types/schemas.d.ts +21 -0
- package/dist/types/schemas.d.ts.map +1 -0
- package/dist/types/schemas.js +2 -0
- package/dist/types/schemas.js.map +1 -0
- package/dist/types/system.d.ts +4 -21
- package/dist/types/system.d.ts.map +1 -1
- package/dist/types/system.js +0 -3
- package/dist/types/system.js.map +1 -1
- package/package.json +13 -2
|
@@ -0,0 +1,877 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by openapi-typescript.
|
|
3
|
+
* Do not make direct changes to the file.
|
|
4
|
+
*/
|
|
5
|
+
export interface paths {
|
|
6
|
+
"/": {
|
|
7
|
+
parameters: {
|
|
8
|
+
query?: never;
|
|
9
|
+
header?: never;
|
|
10
|
+
path?: never;
|
|
11
|
+
cookie?: never;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Framework smoke endpoint
|
|
15
|
+
* @description Returns a minimal JSON response that confirms the NENE2 public entry point is working.
|
|
16
|
+
*/
|
|
17
|
+
get: operations["getFrameworkSmoke"];
|
|
18
|
+
put?: never;
|
|
19
|
+
post?: never;
|
|
20
|
+
delete?: never;
|
|
21
|
+
options?: never;
|
|
22
|
+
head?: never;
|
|
23
|
+
patch?: never;
|
|
24
|
+
trace?: never;
|
|
25
|
+
};
|
|
26
|
+
"/health": {
|
|
27
|
+
parameters: {
|
|
28
|
+
query?: never;
|
|
29
|
+
header?: never;
|
|
30
|
+
path?: never;
|
|
31
|
+
cookie?: never;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Health endpoint
|
|
35
|
+
* @description Returns a JSON response for operational health checks. When no health checks are configured the response is always 200. When health checks are configured the response includes a `checks` map; if any check fails the status is `degraded` and the HTTP status code is 503.
|
|
36
|
+
*/
|
|
37
|
+
get: operations["getHealth"];
|
|
38
|
+
put?: never;
|
|
39
|
+
post?: never;
|
|
40
|
+
delete?: never;
|
|
41
|
+
options?: never;
|
|
42
|
+
head?: never;
|
|
43
|
+
patch?: never;
|
|
44
|
+
trace?: never;
|
|
45
|
+
};
|
|
46
|
+
"/machine/health": {
|
|
47
|
+
parameters: {
|
|
48
|
+
query?: never;
|
|
49
|
+
header?: never;
|
|
50
|
+
path?: never;
|
|
51
|
+
cookie?: never;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Protected machine health endpoint
|
|
55
|
+
* @description Returns health information for machine clients that provide a configured API key.
|
|
56
|
+
*/
|
|
57
|
+
get: operations["getMachineHealth"];
|
|
58
|
+
put?: never;
|
|
59
|
+
post?: never;
|
|
60
|
+
delete?: never;
|
|
61
|
+
options?: never;
|
|
62
|
+
head?: never;
|
|
63
|
+
patch?: never;
|
|
64
|
+
trace?: never;
|
|
65
|
+
};
|
|
66
|
+
"/examples/protected": {
|
|
67
|
+
parameters: {
|
|
68
|
+
query?: never;
|
|
69
|
+
header?: never;
|
|
70
|
+
path?: never;
|
|
71
|
+
cookie?: never;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* Protected example endpoint
|
|
75
|
+
* @description Demonstrates BearerTokenMiddleware. Returns the authenticated user's JWT claims. Requires NENE2_LOCAL_JWT_SECRET to be set in the environment.
|
|
76
|
+
*/
|
|
77
|
+
get: operations["getProtected"];
|
|
78
|
+
put?: never;
|
|
79
|
+
post?: never;
|
|
80
|
+
delete?: never;
|
|
81
|
+
options?: never;
|
|
82
|
+
head?: never;
|
|
83
|
+
patch?: never;
|
|
84
|
+
trace?: never;
|
|
85
|
+
};
|
|
86
|
+
"/examples/tags": {
|
|
87
|
+
parameters: {
|
|
88
|
+
query?: never;
|
|
89
|
+
header?: never;
|
|
90
|
+
path?: never;
|
|
91
|
+
cookie?: never;
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* List example tags
|
|
95
|
+
* @description Returns a paginated list of tags. Demonstrates the collection endpoint pattern for a second domain entity.
|
|
96
|
+
*/
|
|
97
|
+
get: operations["listExampleTags"];
|
|
98
|
+
put?: never;
|
|
99
|
+
/**
|
|
100
|
+
* Create example tag
|
|
101
|
+
* @description Creates a new tag. Demonstrates the POST write path for a second domain entity.
|
|
102
|
+
*/
|
|
103
|
+
post: operations["createExampleTag"];
|
|
104
|
+
delete?: never;
|
|
105
|
+
options?: never;
|
|
106
|
+
head?: never;
|
|
107
|
+
patch?: never;
|
|
108
|
+
trace?: never;
|
|
109
|
+
};
|
|
110
|
+
"/examples/tags/{id}": {
|
|
111
|
+
parameters: {
|
|
112
|
+
query?: never;
|
|
113
|
+
header?: never;
|
|
114
|
+
path?: never;
|
|
115
|
+
cookie?: never;
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* Get example tag by ID
|
|
119
|
+
* @description Returns a single tag by ID. Returns 404 when the tag does not exist.
|
|
120
|
+
*/
|
|
121
|
+
get: operations["getExampleTagById"];
|
|
122
|
+
/**
|
|
123
|
+
* Update example tag
|
|
124
|
+
* @description Updates a tag by ID. Replaces the name. Returns 200 with the updated tag on success.
|
|
125
|
+
*/
|
|
126
|
+
put: operations["updateExampleTagById"];
|
|
127
|
+
post?: never;
|
|
128
|
+
/**
|
|
129
|
+
* Delete example tag
|
|
130
|
+
* @description Deletes a tag by ID. Returns 204 on success, 404 if the tag does not exist.
|
|
131
|
+
*/
|
|
132
|
+
delete: operations["deleteExampleTagById"];
|
|
133
|
+
options?: never;
|
|
134
|
+
head?: never;
|
|
135
|
+
patch?: never;
|
|
136
|
+
trace?: never;
|
|
137
|
+
};
|
|
138
|
+
"/examples/notes": {
|
|
139
|
+
parameters: {
|
|
140
|
+
query?: never;
|
|
141
|
+
header?: never;
|
|
142
|
+
path?: never;
|
|
143
|
+
cookie?: never;
|
|
144
|
+
};
|
|
145
|
+
/**
|
|
146
|
+
* List example notes
|
|
147
|
+
* @description Returns a paginated list of notes. Demonstrates the collection endpoint pattern with limit/offset query parameters.
|
|
148
|
+
*/
|
|
149
|
+
get: operations["listExampleNotes"];
|
|
150
|
+
put?: never;
|
|
151
|
+
/**
|
|
152
|
+
* Create example note
|
|
153
|
+
* @description Creates a new note. Demonstrates the POST → UseCase → Repository write path with body validation.
|
|
154
|
+
*/
|
|
155
|
+
post: operations["createExampleNote"];
|
|
156
|
+
delete?: never;
|
|
157
|
+
options?: never;
|
|
158
|
+
head?: never;
|
|
159
|
+
patch?: never;
|
|
160
|
+
trace?: never;
|
|
161
|
+
};
|
|
162
|
+
"/examples/notes/{id}": {
|
|
163
|
+
parameters: {
|
|
164
|
+
query?: never;
|
|
165
|
+
header?: never;
|
|
166
|
+
path?: never;
|
|
167
|
+
cookie?: never;
|
|
168
|
+
};
|
|
169
|
+
/**
|
|
170
|
+
* Example note endpoint
|
|
171
|
+
* @description Returns a single note by id. Demonstrates the UseCase → Repository → Handler domain layer pattern.
|
|
172
|
+
*/
|
|
173
|
+
get: operations["getExampleNoteById"];
|
|
174
|
+
/**
|
|
175
|
+
* Update example note
|
|
176
|
+
* @description Updates a note by id. Replaces title and body. Returns 200 with the updated note on success.
|
|
177
|
+
*/
|
|
178
|
+
put: operations["updateExampleNoteById"];
|
|
179
|
+
post?: never;
|
|
180
|
+
/**
|
|
181
|
+
* Delete example note
|
|
182
|
+
* @description Deletes a note by id. Returns 204 on success, 404 if the note does not exist.
|
|
183
|
+
*/
|
|
184
|
+
delete: operations["deleteExampleNoteById"];
|
|
185
|
+
options?: never;
|
|
186
|
+
head?: never;
|
|
187
|
+
patch?: never;
|
|
188
|
+
trace?: never;
|
|
189
|
+
};
|
|
190
|
+
"/examples/ping": {
|
|
191
|
+
parameters: {
|
|
192
|
+
query?: never;
|
|
193
|
+
header?: never;
|
|
194
|
+
path?: never;
|
|
195
|
+
cookie?: never;
|
|
196
|
+
};
|
|
197
|
+
/**
|
|
198
|
+
* Example ping endpoint
|
|
199
|
+
* @description Returns a minimal response used to exercise the endpoint scaffold workflow.
|
|
200
|
+
*/
|
|
201
|
+
get: operations["getExamplePing"];
|
|
202
|
+
put?: never;
|
|
203
|
+
post?: never;
|
|
204
|
+
delete?: never;
|
|
205
|
+
options?: never;
|
|
206
|
+
head?: never;
|
|
207
|
+
patch?: never;
|
|
208
|
+
trace?: never;
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
export type webhooks = Record<string, never>;
|
|
212
|
+
export interface components {
|
|
213
|
+
schemas: {
|
|
214
|
+
/** @description RFC 9457 Problem Details response for NENE2 JSON APIs. */
|
|
215
|
+
ProblemDetails: {
|
|
216
|
+
/**
|
|
217
|
+
* Format: uri
|
|
218
|
+
* @description Stable problem type URI.
|
|
219
|
+
* @example https://nene2.dev/problems/not-found
|
|
220
|
+
*/
|
|
221
|
+
type: string;
|
|
222
|
+
/**
|
|
223
|
+
* @description Short, human-readable summary of the problem type.
|
|
224
|
+
* @example Not Found
|
|
225
|
+
*/
|
|
226
|
+
title: string;
|
|
227
|
+
/**
|
|
228
|
+
* Format: int32
|
|
229
|
+
* @description HTTP status code for this occurrence.
|
|
230
|
+
* @example 404
|
|
231
|
+
*/
|
|
232
|
+
status: number;
|
|
233
|
+
/**
|
|
234
|
+
* @description Safe, human-readable detail for this occurrence.
|
|
235
|
+
* @example The requested resource was not found.
|
|
236
|
+
*/
|
|
237
|
+
detail?: string;
|
|
238
|
+
/**
|
|
239
|
+
* @description Request-specific URI or identifier for this occurrence.
|
|
240
|
+
* @example /missing
|
|
241
|
+
*/
|
|
242
|
+
instance?: string;
|
|
243
|
+
} & {
|
|
244
|
+
[key: string]: unknown;
|
|
245
|
+
};
|
|
246
|
+
ValidationProblemDetails: components["schemas"]["ProblemDetails"] & {
|
|
247
|
+
errors: components["schemas"]["ValidationError"][];
|
|
248
|
+
};
|
|
249
|
+
/** @description A single request validation error. */
|
|
250
|
+
ValidationError: {
|
|
251
|
+
/**
|
|
252
|
+
* @description Field name, parameter name, or JSON pointer.
|
|
253
|
+
* @example email
|
|
254
|
+
*/
|
|
255
|
+
field: string;
|
|
256
|
+
/**
|
|
257
|
+
* @description Safe, human-readable validation message.
|
|
258
|
+
* @example Email must be a valid email address.
|
|
259
|
+
*/
|
|
260
|
+
message: string;
|
|
261
|
+
/**
|
|
262
|
+
* @description Stable machine-readable validation code.
|
|
263
|
+
* @example invalid_email
|
|
264
|
+
*/
|
|
265
|
+
code: string;
|
|
266
|
+
};
|
|
267
|
+
FrameworkSmokeResponse: {
|
|
268
|
+
/** @example NENE2 */
|
|
269
|
+
name: string;
|
|
270
|
+
/** @example JSON APIs first, minimal server HTML, frontend ready, AI-readable. */
|
|
271
|
+
description: string;
|
|
272
|
+
/**
|
|
273
|
+
* @example ok
|
|
274
|
+
* @enum {string}
|
|
275
|
+
*/
|
|
276
|
+
status: "ok";
|
|
277
|
+
};
|
|
278
|
+
HealthResponse: {
|
|
279
|
+
/**
|
|
280
|
+
* @example ok
|
|
281
|
+
* @enum {string}
|
|
282
|
+
*/
|
|
283
|
+
status: "ok" | "degraded";
|
|
284
|
+
/** @example NENE2 */
|
|
285
|
+
service: string;
|
|
286
|
+
/**
|
|
287
|
+
* @description Present only when health checks are configured. Each key is a check name; each value is "ok" or "error".
|
|
288
|
+
* @example {
|
|
289
|
+
* "database": "ok"
|
|
290
|
+
* }
|
|
291
|
+
*/
|
|
292
|
+
checks?: {
|
|
293
|
+
[key: string]: "ok" | "error";
|
|
294
|
+
};
|
|
295
|
+
};
|
|
296
|
+
MachineHealthResponse: {
|
|
297
|
+
/**
|
|
298
|
+
* @example ok
|
|
299
|
+
* @enum {string}
|
|
300
|
+
*/
|
|
301
|
+
status: "ok";
|
|
302
|
+
/** @example NENE2 */
|
|
303
|
+
service: string;
|
|
304
|
+
/**
|
|
305
|
+
* @example api_key
|
|
306
|
+
* @enum {string}
|
|
307
|
+
*/
|
|
308
|
+
credential_type: "api_key";
|
|
309
|
+
};
|
|
310
|
+
ExamplePingResponse: {
|
|
311
|
+
/**
|
|
312
|
+
* @example pong
|
|
313
|
+
* @enum {string}
|
|
314
|
+
*/
|
|
315
|
+
message: "pong";
|
|
316
|
+
/**
|
|
317
|
+
* @example ok
|
|
318
|
+
* @enum {string}
|
|
319
|
+
*/
|
|
320
|
+
status: "ok";
|
|
321
|
+
};
|
|
322
|
+
CreateNoteRequest: {
|
|
323
|
+
/** @example Example Note */
|
|
324
|
+
title: string;
|
|
325
|
+
/** @example This is the body of an example note. */
|
|
326
|
+
body: string;
|
|
327
|
+
};
|
|
328
|
+
ExampleNoteResponse: {
|
|
329
|
+
/**
|
|
330
|
+
* Format: int64
|
|
331
|
+
* @example 1
|
|
332
|
+
*/
|
|
333
|
+
id: number;
|
|
334
|
+
/** @example Example Note */
|
|
335
|
+
title: string;
|
|
336
|
+
/** @example This is the body of an example note. */
|
|
337
|
+
body: string;
|
|
338
|
+
};
|
|
339
|
+
CreateTagRequest: {
|
|
340
|
+
/** @example php */
|
|
341
|
+
name: string;
|
|
342
|
+
};
|
|
343
|
+
ExampleTagResponse: {
|
|
344
|
+
/**
|
|
345
|
+
* Format: int64
|
|
346
|
+
* @example 1
|
|
347
|
+
*/
|
|
348
|
+
id: number;
|
|
349
|
+
/** @example php */
|
|
350
|
+
name: string;
|
|
351
|
+
};
|
|
352
|
+
ExampleTagListResponse: {
|
|
353
|
+
items: components["schemas"]["ExampleTagResponse"][];
|
|
354
|
+
/** @example 20 */
|
|
355
|
+
limit: number;
|
|
356
|
+
/** @example 0 */
|
|
357
|
+
offset: number;
|
|
358
|
+
};
|
|
359
|
+
ProtectedResponse: {
|
|
360
|
+
/** @example Welcome, authenticated user. */
|
|
361
|
+
message: string;
|
|
362
|
+
/**
|
|
363
|
+
* @example {
|
|
364
|
+
* "sub": "user-42",
|
|
365
|
+
* "scope": "read:system"
|
|
366
|
+
* }
|
|
367
|
+
*/
|
|
368
|
+
claims: {
|
|
369
|
+
[key: string]: unknown;
|
|
370
|
+
};
|
|
371
|
+
};
|
|
372
|
+
ExampleNoteListResponse: {
|
|
373
|
+
items: components["schemas"]["ExampleNoteResponse"][];
|
|
374
|
+
/** @example 20 */
|
|
375
|
+
limit: number;
|
|
376
|
+
/** @example 0 */
|
|
377
|
+
offset: number;
|
|
378
|
+
};
|
|
379
|
+
};
|
|
380
|
+
responses: {
|
|
381
|
+
/** @description Request body is empty, syntactically invalid, or not a JSON object. */
|
|
382
|
+
InvalidJson: {
|
|
383
|
+
headers: {
|
|
384
|
+
[name: string]: unknown;
|
|
385
|
+
};
|
|
386
|
+
content: {
|
|
387
|
+
"application/problem+json": components["schemas"]["ProblemDetails"];
|
|
388
|
+
};
|
|
389
|
+
};
|
|
390
|
+
/** @description Rate limit exceeded. */
|
|
391
|
+
TooManyRequests: {
|
|
392
|
+
headers: {
|
|
393
|
+
/** @description Seconds until the rate limit window resets. */
|
|
394
|
+
"Retry-After"?: number;
|
|
395
|
+
/** @description Maximum requests allowed in the current window. */
|
|
396
|
+
"X-RateLimit-Limit"?: number;
|
|
397
|
+
/** @description Requests remaining in the current window. */
|
|
398
|
+
"X-RateLimit-Remaining"?: number;
|
|
399
|
+
/** @description Unix timestamp when the rate limit window resets. */
|
|
400
|
+
"X-RateLimit-Reset"?: number;
|
|
401
|
+
[name: string]: unknown;
|
|
402
|
+
};
|
|
403
|
+
content: {
|
|
404
|
+
"application/problem+json": components["schemas"]["ProblemDetails"];
|
|
405
|
+
};
|
|
406
|
+
};
|
|
407
|
+
/** @description A valid API key is required for this endpoint. */
|
|
408
|
+
Unauthorized: {
|
|
409
|
+
headers: {
|
|
410
|
+
/** @description API-key challenge for machine clients. */
|
|
411
|
+
"WWW-Authenticate"?: string;
|
|
412
|
+
[name: string]: unknown;
|
|
413
|
+
};
|
|
414
|
+
content: {
|
|
415
|
+
"application/problem+json": components["schemas"]["ProblemDetails"];
|
|
416
|
+
};
|
|
417
|
+
};
|
|
418
|
+
/** @description The requested resource was not found. */
|
|
419
|
+
NotFound: {
|
|
420
|
+
headers: {
|
|
421
|
+
[name: string]: unknown;
|
|
422
|
+
};
|
|
423
|
+
content: {
|
|
424
|
+
"application/problem+json": components["schemas"]["ProblemDetails"];
|
|
425
|
+
};
|
|
426
|
+
};
|
|
427
|
+
/** @description The requested resource does not support this HTTP method. */
|
|
428
|
+
MethodNotAllowed: {
|
|
429
|
+
headers: {
|
|
430
|
+
/** @description Comma-separated list of allowed HTTP methods. */
|
|
431
|
+
Allow?: string;
|
|
432
|
+
[name: string]: unknown;
|
|
433
|
+
};
|
|
434
|
+
content: {
|
|
435
|
+
"application/problem+json": components["schemas"]["ProblemDetails"];
|
|
436
|
+
};
|
|
437
|
+
};
|
|
438
|
+
/** @description The request body, query, or path parameters contain invalid values. */
|
|
439
|
+
ValidationFailed: {
|
|
440
|
+
headers: {
|
|
441
|
+
[name: string]: unknown;
|
|
442
|
+
};
|
|
443
|
+
content: {
|
|
444
|
+
"application/problem+json": components["schemas"]["ValidationProblemDetails"];
|
|
445
|
+
};
|
|
446
|
+
};
|
|
447
|
+
/** @description The request body exceeds the configured size limit. */
|
|
448
|
+
PayloadTooLarge: {
|
|
449
|
+
headers: {
|
|
450
|
+
[name: string]: unknown;
|
|
451
|
+
};
|
|
452
|
+
content: {
|
|
453
|
+
"application/problem+json": components["schemas"]["ProblemDetails"];
|
|
454
|
+
};
|
|
455
|
+
};
|
|
456
|
+
/** @description The server encountered an unexpected condition. */
|
|
457
|
+
InternalServerError: {
|
|
458
|
+
headers: {
|
|
459
|
+
[name: string]: unknown;
|
|
460
|
+
};
|
|
461
|
+
content: {
|
|
462
|
+
"application/problem+json": components["schemas"]["ProblemDetails"];
|
|
463
|
+
};
|
|
464
|
+
};
|
|
465
|
+
};
|
|
466
|
+
parameters: never;
|
|
467
|
+
requestBodies: never;
|
|
468
|
+
headers: never;
|
|
469
|
+
pathItems: never;
|
|
470
|
+
}
|
|
471
|
+
export type $defs = Record<string, never>;
|
|
472
|
+
export interface operations {
|
|
473
|
+
getFrameworkSmoke: {
|
|
474
|
+
parameters: {
|
|
475
|
+
query?: never;
|
|
476
|
+
header?: never;
|
|
477
|
+
path?: never;
|
|
478
|
+
cookie?: never;
|
|
479
|
+
};
|
|
480
|
+
requestBody?: never;
|
|
481
|
+
responses: {
|
|
482
|
+
/** @description Framework smoke response. */
|
|
483
|
+
200: {
|
|
484
|
+
headers: {
|
|
485
|
+
[name: string]: unknown;
|
|
486
|
+
};
|
|
487
|
+
content: {
|
|
488
|
+
"application/json": components["schemas"]["FrameworkSmokeResponse"];
|
|
489
|
+
};
|
|
490
|
+
};
|
|
491
|
+
413: components["responses"]["PayloadTooLarge"];
|
|
492
|
+
500: components["responses"]["InternalServerError"];
|
|
493
|
+
};
|
|
494
|
+
};
|
|
495
|
+
getHealth: {
|
|
496
|
+
parameters: {
|
|
497
|
+
query?: never;
|
|
498
|
+
header?: never;
|
|
499
|
+
path?: never;
|
|
500
|
+
cookie?: never;
|
|
501
|
+
};
|
|
502
|
+
requestBody?: never;
|
|
503
|
+
responses: {
|
|
504
|
+
/** @description All configured checks passed (or no checks configured). */
|
|
505
|
+
200: {
|
|
506
|
+
headers: {
|
|
507
|
+
[name: string]: unknown;
|
|
508
|
+
};
|
|
509
|
+
content: {
|
|
510
|
+
"application/json": components["schemas"]["HealthResponse"];
|
|
511
|
+
};
|
|
512
|
+
};
|
|
513
|
+
413: components["responses"]["PayloadTooLarge"];
|
|
514
|
+
500: components["responses"]["InternalServerError"];
|
|
515
|
+
/** @description One or more health checks failed. */
|
|
516
|
+
503: {
|
|
517
|
+
headers: {
|
|
518
|
+
[name: string]: unknown;
|
|
519
|
+
};
|
|
520
|
+
content: {
|
|
521
|
+
"application/json": components["schemas"]["HealthResponse"];
|
|
522
|
+
};
|
|
523
|
+
};
|
|
524
|
+
};
|
|
525
|
+
};
|
|
526
|
+
getMachineHealth: {
|
|
527
|
+
parameters: {
|
|
528
|
+
query?: never;
|
|
529
|
+
header?: never;
|
|
530
|
+
path?: never;
|
|
531
|
+
cookie?: never;
|
|
532
|
+
};
|
|
533
|
+
requestBody?: never;
|
|
534
|
+
responses: {
|
|
535
|
+
/** @description Machine health response. */
|
|
536
|
+
200: {
|
|
537
|
+
headers: {
|
|
538
|
+
[name: string]: unknown;
|
|
539
|
+
};
|
|
540
|
+
content: {
|
|
541
|
+
"application/json": components["schemas"]["MachineHealthResponse"];
|
|
542
|
+
};
|
|
543
|
+
};
|
|
544
|
+
401: components["responses"]["Unauthorized"];
|
|
545
|
+
413: components["responses"]["PayloadTooLarge"];
|
|
546
|
+
500: components["responses"]["InternalServerError"];
|
|
547
|
+
};
|
|
548
|
+
};
|
|
549
|
+
getProtected: {
|
|
550
|
+
parameters: {
|
|
551
|
+
query?: never;
|
|
552
|
+
header?: never;
|
|
553
|
+
path?: never;
|
|
554
|
+
cookie?: never;
|
|
555
|
+
};
|
|
556
|
+
requestBody?: never;
|
|
557
|
+
responses: {
|
|
558
|
+
/** @description Authenticated response with JWT claims. */
|
|
559
|
+
200: {
|
|
560
|
+
headers: {
|
|
561
|
+
[name: string]: unknown;
|
|
562
|
+
};
|
|
563
|
+
content: {
|
|
564
|
+
"application/json": components["schemas"]["ProtectedResponse"];
|
|
565
|
+
};
|
|
566
|
+
};
|
|
567
|
+
401: components["responses"]["Unauthorized"];
|
|
568
|
+
500: components["responses"]["InternalServerError"];
|
|
569
|
+
};
|
|
570
|
+
};
|
|
571
|
+
listExampleTags: {
|
|
572
|
+
parameters: {
|
|
573
|
+
query?: {
|
|
574
|
+
/** @description Maximum number of tags to return (1–100). */
|
|
575
|
+
limit?: number;
|
|
576
|
+
/** @description Number of tags to skip before returning results. */
|
|
577
|
+
offset?: number;
|
|
578
|
+
};
|
|
579
|
+
header?: never;
|
|
580
|
+
path?: never;
|
|
581
|
+
cookie?: never;
|
|
582
|
+
};
|
|
583
|
+
requestBody?: never;
|
|
584
|
+
responses: {
|
|
585
|
+
/** @description List of tags. */
|
|
586
|
+
200: {
|
|
587
|
+
headers: {
|
|
588
|
+
[name: string]: unknown;
|
|
589
|
+
};
|
|
590
|
+
content: {
|
|
591
|
+
"application/json": components["schemas"]["ExampleTagListResponse"];
|
|
592
|
+
};
|
|
593
|
+
};
|
|
594
|
+
422: components["responses"]["ValidationFailed"];
|
|
595
|
+
500: components["responses"]["InternalServerError"];
|
|
596
|
+
};
|
|
597
|
+
};
|
|
598
|
+
createExampleTag: {
|
|
599
|
+
parameters: {
|
|
600
|
+
query?: never;
|
|
601
|
+
header?: never;
|
|
602
|
+
path?: never;
|
|
603
|
+
cookie?: never;
|
|
604
|
+
};
|
|
605
|
+
requestBody: {
|
|
606
|
+
content: {
|
|
607
|
+
"application/json": components["schemas"]["CreateTagRequest"];
|
|
608
|
+
};
|
|
609
|
+
};
|
|
610
|
+
responses: {
|
|
611
|
+
/** @description Tag created. */
|
|
612
|
+
201: {
|
|
613
|
+
headers: {
|
|
614
|
+
/** @description URI of the created tag. */
|
|
615
|
+
Location?: string;
|
|
616
|
+
[name: string]: unknown;
|
|
617
|
+
};
|
|
618
|
+
content: {
|
|
619
|
+
"application/json": components["schemas"]["ExampleTagResponse"];
|
|
620
|
+
};
|
|
621
|
+
};
|
|
622
|
+
400: components["responses"]["InvalidJson"];
|
|
623
|
+
413: components["responses"]["PayloadTooLarge"];
|
|
624
|
+
422: components["responses"]["ValidationFailed"];
|
|
625
|
+
500: components["responses"]["InternalServerError"];
|
|
626
|
+
};
|
|
627
|
+
};
|
|
628
|
+
getExampleTagById: {
|
|
629
|
+
parameters: {
|
|
630
|
+
query?: never;
|
|
631
|
+
header?: never;
|
|
632
|
+
path: {
|
|
633
|
+
/** @description Tag ID. */
|
|
634
|
+
id: number;
|
|
635
|
+
};
|
|
636
|
+
cookie?: never;
|
|
637
|
+
};
|
|
638
|
+
requestBody?: never;
|
|
639
|
+
responses: {
|
|
640
|
+
/** @description Tag found. */
|
|
641
|
+
200: {
|
|
642
|
+
headers: {
|
|
643
|
+
[name: string]: unknown;
|
|
644
|
+
};
|
|
645
|
+
content: {
|
|
646
|
+
"application/json": components["schemas"]["ExampleTagResponse"];
|
|
647
|
+
};
|
|
648
|
+
};
|
|
649
|
+
404: components["responses"]["NotFound"];
|
|
650
|
+
500: components["responses"]["InternalServerError"];
|
|
651
|
+
};
|
|
652
|
+
};
|
|
653
|
+
updateExampleTagById: {
|
|
654
|
+
parameters: {
|
|
655
|
+
query?: never;
|
|
656
|
+
header?: never;
|
|
657
|
+
path: {
|
|
658
|
+
/** @description Tag ID. */
|
|
659
|
+
id: number;
|
|
660
|
+
};
|
|
661
|
+
cookie?: never;
|
|
662
|
+
};
|
|
663
|
+
requestBody: {
|
|
664
|
+
content: {
|
|
665
|
+
"application/json": components["schemas"]["CreateTagRequest"];
|
|
666
|
+
};
|
|
667
|
+
};
|
|
668
|
+
responses: {
|
|
669
|
+
/** @description Tag updated. */
|
|
670
|
+
200: {
|
|
671
|
+
headers: {
|
|
672
|
+
[name: string]: unknown;
|
|
673
|
+
};
|
|
674
|
+
content: {
|
|
675
|
+
"application/json": components["schemas"]["ExampleTagResponse"];
|
|
676
|
+
};
|
|
677
|
+
};
|
|
678
|
+
400: components["responses"]["InvalidJson"];
|
|
679
|
+
404: components["responses"]["NotFound"];
|
|
680
|
+
422: components["responses"]["ValidationFailed"];
|
|
681
|
+
500: components["responses"]["InternalServerError"];
|
|
682
|
+
};
|
|
683
|
+
};
|
|
684
|
+
deleteExampleTagById: {
|
|
685
|
+
parameters: {
|
|
686
|
+
query?: never;
|
|
687
|
+
header?: never;
|
|
688
|
+
path: {
|
|
689
|
+
/** @description Tag ID. */
|
|
690
|
+
id: number;
|
|
691
|
+
};
|
|
692
|
+
cookie?: never;
|
|
693
|
+
};
|
|
694
|
+
requestBody?: never;
|
|
695
|
+
responses: {
|
|
696
|
+
/** @description Tag deleted. */
|
|
697
|
+
204: {
|
|
698
|
+
headers: {
|
|
699
|
+
[name: string]: unknown;
|
|
700
|
+
};
|
|
701
|
+
content?: never;
|
|
702
|
+
};
|
|
703
|
+
404: components["responses"]["NotFound"];
|
|
704
|
+
500: components["responses"]["InternalServerError"];
|
|
705
|
+
};
|
|
706
|
+
};
|
|
707
|
+
listExampleNotes: {
|
|
708
|
+
parameters: {
|
|
709
|
+
query?: {
|
|
710
|
+
/** @description Maximum number of notes to return (1–100). */
|
|
711
|
+
limit?: number;
|
|
712
|
+
/** @description Number of notes to skip before returning results. */
|
|
713
|
+
offset?: number;
|
|
714
|
+
};
|
|
715
|
+
header?: never;
|
|
716
|
+
path?: never;
|
|
717
|
+
cookie?: never;
|
|
718
|
+
};
|
|
719
|
+
requestBody?: never;
|
|
720
|
+
responses: {
|
|
721
|
+
/** @description List of notes. */
|
|
722
|
+
200: {
|
|
723
|
+
headers: {
|
|
724
|
+
[name: string]: unknown;
|
|
725
|
+
};
|
|
726
|
+
content: {
|
|
727
|
+
"application/json": components["schemas"]["ExampleNoteListResponse"];
|
|
728
|
+
};
|
|
729
|
+
};
|
|
730
|
+
422: components["responses"]["ValidationFailed"];
|
|
731
|
+
500: components["responses"]["InternalServerError"];
|
|
732
|
+
};
|
|
733
|
+
};
|
|
734
|
+
createExampleNote: {
|
|
735
|
+
parameters: {
|
|
736
|
+
query?: never;
|
|
737
|
+
header?: never;
|
|
738
|
+
path?: never;
|
|
739
|
+
cookie?: never;
|
|
740
|
+
};
|
|
741
|
+
requestBody: {
|
|
742
|
+
content: {
|
|
743
|
+
"application/json": components["schemas"]["CreateNoteRequest"];
|
|
744
|
+
};
|
|
745
|
+
};
|
|
746
|
+
responses: {
|
|
747
|
+
/** @description Note created. */
|
|
748
|
+
201: {
|
|
749
|
+
headers: {
|
|
750
|
+
/** @description URI of the created note. */
|
|
751
|
+
Location?: string;
|
|
752
|
+
[name: string]: unknown;
|
|
753
|
+
};
|
|
754
|
+
content: {
|
|
755
|
+
"application/json": components["schemas"]["ExampleNoteResponse"];
|
|
756
|
+
};
|
|
757
|
+
};
|
|
758
|
+
400: components["responses"]["InvalidJson"];
|
|
759
|
+
413: components["responses"]["PayloadTooLarge"];
|
|
760
|
+
422: components["responses"]["ValidationFailed"];
|
|
761
|
+
500: components["responses"]["InternalServerError"];
|
|
762
|
+
};
|
|
763
|
+
};
|
|
764
|
+
getExampleNoteById: {
|
|
765
|
+
parameters: {
|
|
766
|
+
query?: never;
|
|
767
|
+
header?: never;
|
|
768
|
+
path: {
|
|
769
|
+
/**
|
|
770
|
+
* @description Note id.
|
|
771
|
+
* @example 1
|
|
772
|
+
*/
|
|
773
|
+
id: number;
|
|
774
|
+
};
|
|
775
|
+
cookie?: never;
|
|
776
|
+
};
|
|
777
|
+
requestBody?: never;
|
|
778
|
+
responses: {
|
|
779
|
+
/** @description Note response. */
|
|
780
|
+
200: {
|
|
781
|
+
headers: {
|
|
782
|
+
[name: string]: unknown;
|
|
783
|
+
};
|
|
784
|
+
content: {
|
|
785
|
+
"application/json": components["schemas"]["ExampleNoteResponse"];
|
|
786
|
+
};
|
|
787
|
+
};
|
|
788
|
+
404: components["responses"]["NotFound"];
|
|
789
|
+
413: components["responses"]["PayloadTooLarge"];
|
|
790
|
+
500: components["responses"]["InternalServerError"];
|
|
791
|
+
};
|
|
792
|
+
};
|
|
793
|
+
updateExampleNoteById: {
|
|
794
|
+
parameters: {
|
|
795
|
+
query?: never;
|
|
796
|
+
header?: never;
|
|
797
|
+
path: {
|
|
798
|
+
/**
|
|
799
|
+
* @description Note id.
|
|
800
|
+
* @example 1
|
|
801
|
+
*/
|
|
802
|
+
id: number;
|
|
803
|
+
};
|
|
804
|
+
cookie?: never;
|
|
805
|
+
};
|
|
806
|
+
requestBody: {
|
|
807
|
+
content: {
|
|
808
|
+
"application/json": components["schemas"]["CreateNoteRequest"];
|
|
809
|
+
};
|
|
810
|
+
};
|
|
811
|
+
responses: {
|
|
812
|
+
/** @description Note updated. */
|
|
813
|
+
200: {
|
|
814
|
+
headers: {
|
|
815
|
+
[name: string]: unknown;
|
|
816
|
+
};
|
|
817
|
+
content: {
|
|
818
|
+
"application/json": components["schemas"]["ExampleNoteResponse"];
|
|
819
|
+
};
|
|
820
|
+
};
|
|
821
|
+
400: components["responses"]["InvalidJson"];
|
|
822
|
+
404: components["responses"]["NotFound"];
|
|
823
|
+
413: components["responses"]["PayloadTooLarge"];
|
|
824
|
+
422: components["responses"]["ValidationFailed"];
|
|
825
|
+
500: components["responses"]["InternalServerError"];
|
|
826
|
+
};
|
|
827
|
+
};
|
|
828
|
+
deleteExampleNoteById: {
|
|
829
|
+
parameters: {
|
|
830
|
+
query?: never;
|
|
831
|
+
header?: never;
|
|
832
|
+
path: {
|
|
833
|
+
/**
|
|
834
|
+
* @description Note id.
|
|
835
|
+
* @example 1
|
|
836
|
+
*/
|
|
837
|
+
id: number;
|
|
838
|
+
};
|
|
839
|
+
cookie?: never;
|
|
840
|
+
};
|
|
841
|
+
requestBody?: never;
|
|
842
|
+
responses: {
|
|
843
|
+
/** @description Note deleted. */
|
|
844
|
+
204: {
|
|
845
|
+
headers: {
|
|
846
|
+
[name: string]: unknown;
|
|
847
|
+
};
|
|
848
|
+
content?: never;
|
|
849
|
+
};
|
|
850
|
+
404: components["responses"]["NotFound"];
|
|
851
|
+
500: components["responses"]["InternalServerError"];
|
|
852
|
+
};
|
|
853
|
+
};
|
|
854
|
+
getExamplePing: {
|
|
855
|
+
parameters: {
|
|
856
|
+
query?: never;
|
|
857
|
+
header?: never;
|
|
858
|
+
path?: never;
|
|
859
|
+
cookie?: never;
|
|
860
|
+
};
|
|
861
|
+
requestBody?: never;
|
|
862
|
+
responses: {
|
|
863
|
+
/** @description Example ping response. */
|
|
864
|
+
200: {
|
|
865
|
+
headers: {
|
|
866
|
+
[name: string]: unknown;
|
|
867
|
+
};
|
|
868
|
+
content: {
|
|
869
|
+
"application/json": components["schemas"]["ExamplePingResponse"];
|
|
870
|
+
};
|
|
871
|
+
};
|
|
872
|
+
413: components["responses"]["PayloadTooLarge"];
|
|
873
|
+
500: components["responses"]["InternalServerError"];
|
|
874
|
+
};
|
|
875
|
+
};
|
|
876
|
+
}
|
|
877
|
+
//# sourceMappingURL=openapi.d.ts.map
|