Skip to content

Commit bbc247a

Browse files
committed
chore: regenerated
1 parent ff07bb0 commit bbc247a

9 files changed

Lines changed: 124 additions & 1837 deletions

File tree

__tests__/fixtures/openai/commands.ts

Lines changed: 66 additions & 1379 deletions
Large diffs are not rendered by default.

__tests__/fixtures/openai/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/**
2-
* This file is auto generated by @block65/openapi-codegen
2+
* This file was auto generated by @block65/openapi-codegen
33
*
44
* WARN: Do not edit directly.
55
*
6-
* Generated on 2024-05-27T10:18:55.926Z
6+
* Generated on 2024-05-27T10:51:18.299Z
77
*
88
*/
99
import {

__tests__/fixtures/openai/types.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/**
2-
* This file is auto generated by @block65/openapi-codegen
2+
* This file was auto generated by @block65/openapi-codegen
33
*
44
* WARN: Do not edit directly.
55
*
6-
* Generated on 2023-12-14T06:34:27.220Z
6+
* Generated on 2024-05-27T10:51:18.299Z
77
*
88
*/
99
import type { Jsonifiable } from 'type-fest';
@@ -132,7 +132,7 @@ export type CreateChatCompletionStreamResponse = {
132132
id: string;
133133
choices: Array<{
134134
/** WARN: $ref used before available - #/components/schemas/ChatCompletionStreamResponseDelta */
135-
delta: unknown;
135+
delta: never;
136136
/**
137137
* The reason the model stopped generating tokens. This will be `stop` if the
138138
* model hit a natural stop point or a provided stop sequence,
@@ -710,7 +710,7 @@ export type CreateAssistantRequest = {
710710
* or `function`.
711711
* @default
712712
*/
713-
tools?: Array<unknown | unknown | unknown | null>;
713+
tools?: Array<never | never | never | null>;
714714
/**
715715
* A list of [file](/docs/api-reference/files) IDs attached to this assistant.
716716
* There can be a maximum of 20 files attached to the assistant. Files are
@@ -731,7 +731,7 @@ export type ModifyAssistantRequest = {
731731
* or `function`.
732732
* @default
733733
*/
734-
tools?: Array<unknown | unknown | unknown | null>;
734+
tools?: Array<never | never | never | null>;
735735
/**
736736
* A list of [File](/docs/api-reference/files) IDs attached to this assistant.
737737
* There can be a maximum of 20 files attached to the assistant. Files are
@@ -766,7 +766,7 @@ export type CreateRunRequest = {
766766
assistant_id: string;
767767
model?: string | null | undefined;
768768
instructions?: string | null | undefined;
769-
tools?: Array<AssistantToolsCode | AssistantToolsRetrieval | unknown | null>;
769+
tools?: Array<AssistantToolsCode | AssistantToolsRetrieval | never | null>;
770770
metadata?: JsonifiableObject | null;
771771
};
772772
export type ModifyRunRequest = {
@@ -817,7 +817,7 @@ export type MessageContentTextObject = {
817817
type: 'text';
818818
text: {
819819
value: string;
820-
annotations: Array<unknown | unknown | null>;
820+
annotations: Array<never | never | null>;
821821
};
822822
};
823823
/**
@@ -867,7 +867,7 @@ export type RunStepDetailsToolCallsCodeObject = {
867867
type: 'code_interpreter';
868868
code_interpreter: {
869869
input: string;
870-
outputs: Array<unknown | unknown | null>;
870+
outputs: Array<never | never | null>;
871871
};
872872
};
873873
/** Text output from the Code Interpreter tool call as part of a run step. */
@@ -1116,7 +1116,7 @@ export type CreateThreadAndRunRequest = {
11161116
thread?: CreateThreadRequest | undefined;
11171117
model?: string | null | undefined;
11181118
instructions?: string | null | undefined;
1119-
tools?: Array<AssistantToolsCode | AssistantToolsRetrieval | unknown | null>;
1119+
tools?: Array<AssistantToolsCode | AssistantToolsRetrieval | never | null>;
11201120
metadata?: JsonifiableObject | null;
11211121
};
11221122
/** Tool call objects */
@@ -1189,7 +1189,7 @@ export type RunObject = {
11891189
* for this run.
11901190
* @default
11911191
*/
1192-
tools: Array<AssistantToolsCode | AssistantToolsRetrieval | unknown | null>;
1192+
tools: Array<AssistantToolsCode | AssistantToolsRetrieval | never | null>;
11931193
/**
11941194
* The list of [File](/docs/api-reference/files) IDs the
11951195
* [assistant](/docs/api-reference/assistants) used for this run.
@@ -1499,7 +1499,7 @@ export type CreateChatCompletionFunctionResponse = {
14991499
finish_reason: 'stop' | 'length' | 'function_call' | 'content_filter';
15001500
index: number;
15011501
/** WARN: $ref used before available - #/components/schemas/ChatCompletionResponseMessage */
1502-
message: unknown;
1502+
message: never;
15031503
}>;
15041504
created: number;
15051505
model: string;
@@ -1537,7 +1537,7 @@ export type CreateChatCompletionResponse = {
15371537
| 'function_call';
15381538
index: number;
15391539
/** WARN: $ref used before available - #/components/schemas/ChatCompletionResponseMessage */
1540-
message: unknown;
1540+
message: never;
15411541
}>;
15421542
created: number;
15431543
model: string;

__tests__/fixtures/petstore/commands.ts

Lines changed: 9 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1+
/**
2+
* This file was auto generated by @block65/openapi-codegen
3+
*
4+
* WARN: Do not edit directly.
5+
*
6+
* Generated on 2024-05-27T10:51:14.858Z
7+
*
8+
*/
9+
/** eslint-disable max-classes */
110
import { Command } from '@block65/rest-client';
2-
import type { RequestMethodCaller } from '@block65/rest-client';
311
import type { Jsonifiable } from 'type-fest';
412
import type {
513
FindPetsCommandQuery,
@@ -39,46 +47,6 @@ import type {
3947
* gravida. Sed libero lorem, molestie sed nisl in, accumsan tempor nisi.
4048
* Fusce sollicitudin massa ut lacinia mattis. Sed vel eleifend lorem.
4149
* Pellentesque vitae felis pretium, pulvinar elit eu, euismod sapien.
42-
* @param parameters.query.tags? {String} tags to filter by
43-
* @param parameters.query.limit? {String} maximum number of results to return
44-
* @returns {RequestMethodCaller<Pet[]>} HTTP 200
45-
*/
46-
export function findPetsCommand(parameters?: {
47-
query?: FindPetsCommandQuery;
48-
}): RequestMethodCaller<Pet[]> {
49-
const req = {
50-
method: 'get' as const,
51-
pathname: `/pets`,
52-
query: parameters?.query,
53-
};
54-
return (requestMethod, options) => requestMethod(req, options);
55-
}
56-
57-
/**
58-
* Returns all pets from the system that the user has access to
59-
* Nam sed condimentum est. Maecenas tempor sagittis sapien, nec rhoncus sem
60-
* sagittis sit amet. Aenean at gravida augue, ac iaculis sem. Curabitur odio
61-
* lorem, ornare eget elementum nec, cursus id lectus. Duis mi turpis,
62-
* pulvinar ac eros ac, tincidunt varius justo. In hac habitasse platea
63-
* dictumst. Integer at adipiscing ante, a sagittis ligula. Aenean pharetra
64-
* tempor ante molestie imperdiet. Vivamus id aliquam diam. Cras quis velit
65-
* non tortor eleifend sagittis. Praesent at enim pharetra urna volutpat
66-
* venenatis eget eget mauris. In eleifend fermentum facilisis. Praesent enim
67-
* enim, gravida ac sodales sed, placerat id erat. Suspendisse lacus dolor,
68-
* consectetur non augue vel, vehicula interdum libero. Morbi euismod sagittis
69-
* libero sed lacinia.
70-
*
71-
* Sed tempus felis lobortis leo pulvinar rutrum. Nam mattis velit nisl, eu
72-
* condimentum ligula luctus nec. Phasellus semper velit eget aliquet
73-
* faucibus. In a mattis elit. Phasellus vel urna viverra, condimentum lorem
74-
* id, rhoncus nibh. Ut pellentesque posuere elementum. Sed a varius odio.
75-
* Morbi rhoncus ligula libero, vel eleifend nunc tristique vitae. Fusce et
76-
* sem dui. Aenean nec scelerisque tortor. Fusce malesuada accumsan magna vel
77-
* tempus. Quisque mollis felis eu dolor tristique, sit amet auctor felis
78-
* gravida. Sed libero lorem, molestie sed nisl in, accumsan tempor nisi.
79-
* Fusce sollicitudin massa ut lacinia mattis. Sed vel eleifend lorem.
80-
* Pellentesque vitae felis pretium, pulvinar elit eu, euismod sapien.
81-
*
8250
*
8351
*/
8452
export class FindPetsCommand extends Command<
@@ -97,23 +65,6 @@ export class FindPetsCommand extends Command<
9765

9866
/**
9967
* Creates a new pet in the store. Duplicates are allowed
100-
* @param parameters.body {NewPet}
101-
* @returns {RequestMethodCaller<Pet>} HTTP 200
102-
*/
103-
export function addPetCommand(parameters: {
104-
body: NewPet;
105-
}): RequestMethodCaller<Pet> {
106-
const req = {
107-
method: 'post' as const,
108-
pathname: `/pets`,
109-
body: parameters.body,
110-
};
111-
return (requestMethod, options) => requestMethod(req, options);
112-
}
113-
114-
/**
115-
* Creates a new pet in the store. Duplicates are allowed
116-
*
11768
*
11869
*/
11970
export class AddPetCommand extends Command<
@@ -132,21 +83,6 @@ export class AddPetCommand extends Command<
13283
/**
13384
* Returns a user based on a single ID, if the user does not have access to
13485
* the pet
135-
* @param id {String} ID of pet to fetch
136-
* @returns {RequestMethodCaller<Pet>} HTTP 200
137-
*/
138-
export function findPetByIdCommand(id: string): RequestMethodCaller<Pet> {
139-
const req = {
140-
method: 'get' as const,
141-
pathname: `/pets/${id}`,
142-
};
143-
return (requestMethod, options) => requestMethod(req, options);
144-
}
145-
146-
/**
147-
* Returns a user based on a single ID, if the user does not have access to
148-
* the pet
149-
*
15086
*
15187
*/
15288
export class FindPetByIdCommand extends Command<
@@ -164,19 +100,6 @@ export class FindPetByIdCommand extends Command<
164100

165101
/**
166102
* deletes a single pet based on the ID supplied
167-
* @param id {String} ID of pet to delete
168-
*/
169-
export function deletePetCommand(id: string): RequestMethodCaller<void> {
170-
const req = {
171-
method: 'delete' as const,
172-
pathname: `/pets/${id}`,
173-
};
174-
return (requestMethod, options) => requestMethod(req, options);
175-
}
176-
177-
/**
178-
* deletes a single pet based on the ID supplied
179-
*
180103
*
181104
*/
182105
export class DeletePetCommand extends Command<

__tests__/fixtures/petstore/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/**
2-
* This file is auto generated by @block65/openapi-codegen
2+
* This file was auto generated by @block65/openapi-codegen
33
*
44
* WARN: Do not edit directly.
55
*
6-
* Generated on 2024-05-27T10:18:52.577Z
6+
* Generated on 2024-05-27T10:51:14.858Z
77
*
88
*/
99
import {

__tests__/fixtures/petstore/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/**
2-
* This file is auto generated by @block65/openapi-codegen
2+
* This file was auto generated by @block65/openapi-codegen
33
*
44
* WARN: Do not edit directly.
55
*
6-
* Generated on 2023-12-14T06:34:23.021Z
6+
* Generated on 2024-05-27T10:51:14.858Z
77
*
88
*/
99
import type { Jsonifiable } from 'type-fest';

0 commit comments

Comments
 (0)