Skip to content

Commit

Permalink
refresh outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
inkognitro committed Sep 29, 2024
1 parent 8601e45 commit 362b905
Show file tree
Hide file tree
Showing 728 changed files with 8,776 additions and 10,796 deletions.
14 changes: 5 additions & 9 deletions example-outputs/binance-with-zod/core/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,26 +227,22 @@ export type ResponseBodyData<
ContentType extends string = any,
B extends ResponseBody = any,
> = {
// according to oas3 specs; NULL if the real "content-type" response header does not match with one defined in the specs (case in-sensitive check)
// NULL if the real "content-type" response header does not match with one defined in the OAS3 specs
contentType: ContentType | null;
revealBody: () => Promise<B>;
revealBodyAsArrayBuffer: () => Promise<ArrayBuffer>;
};

export type ResponseData<
export type Response<
S extends number = any,
B extends ResponseBodyData = any,
H extends ResponseHeaders = any,
C extends ResponseSetCookies = any,
> = B & {
status: S;
headers: H;
cookies: C;
};

export type Response<
S extends number = any,
D extends ResponseData = any,
> = D & {
status: S;
revealBodyAsArrayBuffer: () => Promise<ArrayBuffer>;
};

export interface RequestResult<
Expand Down
13 changes: 5 additions & 8 deletions example-outputs/binance-with-zod/deleteApiV3Openorders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
import {z} from 'zod';
import {
ResponseBodyData,
ResponseData,
Response,
RequestResult,
Request,
Expand Down Expand Up @@ -71,15 +70,13 @@ export type DeleteApiV3OpenordersPayload = {
export type DeleteApiV3OpenordersResponse =
| Response<
200,
ResponseData<
ResponseBodyData<
'application/json',
((Partial<Order> | Partial<OcoOrder>) & (Order | OcoOrder))[]
>
ResponseBodyData<
'application/json',
((Partial<Order> | Partial<OcoOrder>) & (Order | OcoOrder))[]
>
>
| Response<400, ResponseData<ResponseBodyData<'application/json', Error>>>
| Response<401, ResponseData<ResponseBodyData<'application/json', Error>>>;
| Response<400, ResponseBodyData<'application/json', Error>>
| Response<401, ResponseBodyData<'application/json', Error>>;

export type DeleteApiV3OpenordersRequestResult = RequestResult<
Request,
Expand Down
7 changes: 3 additions & 4 deletions example-outputs/binance-with-zod/deleteApiV3Order.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
import {z} from 'zod';
import {
ResponseBodyData,
ResponseData,
Response,
RequestResult,
Request,
Expand Down Expand Up @@ -72,9 +71,9 @@ export type DeleteApiV3OrderPayload = {
};

export type DeleteApiV3OrderResponse =
| Response<200, ResponseData<ResponseBodyData<'application/json', Order>>>
| Response<400, ResponseData<ResponseBodyData<'application/json', Error>>>
| Response<401, ResponseData<ResponseBodyData<'application/json', Error>>>;
| Response<200, ResponseBodyData<'application/json', Order>>
| Response<400, ResponseBodyData<'application/json', Error>>
| Response<401, ResponseBodyData<'application/json', Error>>;

export type DeleteApiV3OrderRequestResult = RequestResult<
Request,
Expand Down
7 changes: 3 additions & 4 deletions example-outputs/binance-with-zod/deleteApiV3Orderlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
import {z} from 'zod';
import {
ResponseBodyData,
ResponseData,
Response,
RequestResult,
Request,
Expand Down Expand Up @@ -68,9 +67,9 @@ export type DeleteApiV3OrderlistPayload = {
};

export type DeleteApiV3OrderlistResponse =
| Response<200, ResponseData<ResponseBodyData<'application/json', OcoOrder>>>
| Response<400, ResponseData<ResponseBodyData<'application/json', Error>>>
| Response<401, ResponseData<ResponseBodyData<'application/json', Error>>>;
| Response<200, ResponseBodyData<'application/json', OcoOrder>>
| Response<400, ResponseBodyData<'application/json', Error>>
| Response<401, ResponseBodyData<'application/json', Error>>;

export type DeleteApiV3OrderlistRequestResult = RequestResult<
Request,
Expand Down
5 changes: 2 additions & 3 deletions example-outputs/binance-with-zod/deleteApiV3Userdatastream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import {errorZodSchema, Error} from '@example-outputs/binance-with-zod';
import {z} from 'zod';
import {
ResponseBodyData,
ResponseData,
Response,
RequestResult,
Request,
Expand Down Expand Up @@ -44,8 +43,8 @@ export type DeleteApiV3UserdatastreamPayload = {
};

export type DeleteApiV3UserdatastreamResponse =
| Response<200, ResponseData<ResponseBodyData<'application/json', {}>>>
| Response<400, ResponseData<ResponseBodyData<'application/json', Error>>>;
| Response<200, ResponseBodyData<'application/json', {}>>
| Response<400, ResponseBodyData<'application/json', Error>>;

export type DeleteApiV3UserdatastreamRequestResult = RequestResult<
Request,
Expand Down
23 changes: 10 additions & 13 deletions example-outputs/binance-with-zod/deleteSapiV1AlgoFuturesOrder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import {errorZodSchema, Error} from '@example-outputs/binance-with-zod';
import {z} from 'zod';
import {
ResponseBodyData,
ResponseData,
Response,
RequestResult,
Request,
Expand Down Expand Up @@ -64,20 +63,18 @@ export type DeleteSapiV1AlgoFuturesOrderPayload = {
export type DeleteSapiV1AlgoFuturesOrderResponse =
| Response<
200,
ResponseData<
ResponseBodyData<
'application/json',
{
algoId: number; // int
success: boolean;
code: number; // int
msg: string;
}
>
ResponseBodyData<
'application/json',
{
algoId: number; // int
success: boolean;
code: number; // int
msg: string;
}
>
>
| Response<400, ResponseData<ResponseBodyData<'application/json', Error>>>
| Response<401, ResponseData<ResponseBodyData<'application/json', Error>>>;
| Response<400, ResponseBodyData<'application/json', Error>>
| Response<401, ResponseBodyData<'application/json', Error>>;

export type DeleteSapiV1AlgoFuturesOrderRequestResult = RequestResult<
Request,
Expand Down
23 changes: 10 additions & 13 deletions example-outputs/binance-with-zod/deleteSapiV1AlgoSpotOrder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import {errorZodSchema, Error} from '@example-outputs/binance-with-zod';
import {z} from 'zod';
import {
ResponseBodyData,
ResponseData,
Response,
RequestResult,
Request,
Expand Down Expand Up @@ -64,20 +63,18 @@ export type DeleteSapiV1AlgoSpotOrderPayload = {
export type DeleteSapiV1AlgoSpotOrderResponse =
| Response<
200,
ResponseData<
ResponseBodyData<
'application/json',
{
algoId: number; // int
success: boolean;
code: number; // int
msg: string;
}
>
ResponseBodyData<
'application/json',
{
algoId: number; // int
success: boolean;
code: number; // int
msg: string;
}
>
>
| Response<400, ResponseData<ResponseBodyData<'application/json', Error>>>
| Response<401, ResponseData<ResponseBodyData<'application/json', Error>>>;
| Response<400, ResponseBodyData<'application/json', Error>>
| Response<401, ResponseBodyData<'application/json', Error>>;

export type DeleteSapiV1AlgoSpotOrderRequestResult = RequestResult<
Request,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import {errorZodSchema, Error} from '@example-outputs/binance-with-zod';
import {z} from 'zod';
import {
ResponseBodyData,
ResponseData,
Response,
RequestResult,
Request,
Expand Down Expand Up @@ -62,18 +61,16 @@ export type DeleteSapiV1MarginIsolatedAccountPayload = {
export type DeleteSapiV1MarginIsolatedAccountResponse =
| Response<
200,
ResponseData<
ResponseBodyData<
'application/json',
{
success: boolean;
symbol: string;
}
>
ResponseBodyData<
'application/json',
{
success: boolean;
symbol: string;
}
>
>
| Response<400, ResponseData<ResponseBodyData<'application/json', Error>>>
| Response<401, ResponseData<ResponseBodyData<'application/json', Error>>>;
| Response<400, ResponseBodyData<'application/json', Error>>
| Response<401, ResponseBodyData<'application/json', Error>>;

export type DeleteSapiV1MarginIsolatedAccountRequestResult = RequestResult<
Request,
Expand Down
15 changes: 6 additions & 9 deletions example-outputs/binance-with-zod/deleteSapiV1MarginOpenorders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
import {z} from 'zod';
import {
ResponseBodyData,
ResponseData,
Response,
RequestResult,
Request,
Expand Down Expand Up @@ -79,16 +78,14 @@ export type DeleteSapiV1MarginOpenordersPayload = {
export type DeleteSapiV1MarginOpenordersResponse =
| Response<
200,
ResponseData<
ResponseBodyData<
'application/json',
((Partial<CanceledMarginOrderDetail> | Partial<MarginOcoOrder>) &
(CanceledMarginOrderDetail | MarginOcoOrder))[]
>
ResponseBodyData<
'application/json',
((Partial<CanceledMarginOrderDetail> | Partial<MarginOcoOrder>) &
(CanceledMarginOrderDetail | MarginOcoOrder))[]
>
>
| Response<400, ResponseData<ResponseBodyData<'application/json', Error>>>
| Response<401, ResponseData<ResponseBodyData<'application/json', Error>>>;
| Response<400, ResponseBodyData<'application/json', Error>>
| Response<401, ResponseBodyData<'application/json', Error>>;

export type DeleteSapiV1MarginOpenordersRequestResult = RequestResult<
Request,
Expand Down
10 changes: 3 additions & 7 deletions example-outputs/binance-with-zod/deleteSapiV1MarginOrder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
import {z} from 'zod';
import {
ResponseBodyData,
ResponseData,
Response,
RequestResult,
Request,
Expand Down Expand Up @@ -70,12 +69,9 @@ export type DeleteSapiV1MarginOrderPayload = {
};

export type DeleteSapiV1MarginOrderResponse =
| Response<
200,
ResponseData<ResponseBodyData<'application/json', MarginOrder>>
>
| Response<400, ResponseData<ResponseBodyData<'application/json', Error>>>
| Response<401, ResponseData<ResponseBodyData<'application/json', Error>>>;
| Response<200, ResponseBodyData<'application/json', MarginOrder>>
| Response<400, ResponseBodyData<'application/json', Error>>
| Response<401, ResponseBodyData<'application/json', Error>>;

export type DeleteSapiV1MarginOrderRequestResult = RequestResult<
Request,
Expand Down
10 changes: 3 additions & 7 deletions example-outputs/binance-with-zod/deleteSapiV1MarginOrderlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
import {z} from 'zod';
import {
ResponseBodyData,
ResponseData,
Response,
RequestResult,
Request,
Expand Down Expand Up @@ -70,12 +69,9 @@ export type DeleteSapiV1MarginOrderlistPayload = {
};

export type DeleteSapiV1MarginOrderlistResponse =
| Response<
200,
ResponseData<ResponseBodyData<'application/json', MarginOcoOrder>>
>
| Response<400, ResponseData<ResponseBodyData<'application/json', Error>>>
| Response<401, ResponseData<ResponseBodyData<'application/json', Error>>>;
| Response<200, ResponseBodyData<'application/json', MarginOcoOrder>>
| Response<400, ResponseBodyData<'application/json', Error>>
| Response<401, ResponseBodyData<'application/json', Error>>;

export type DeleteSapiV1MarginOrderlistRequestResult = RequestResult<
Request,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import {errorZodSchema, Error} from '@example-outputs/binance-with-zod';
import {z} from 'zod';
import {
ResponseBodyData,
ResponseData,
Response,
RequestResult,
Request,
Expand Down Expand Up @@ -71,20 +70,18 @@ export type DeleteSapiV1SubAccountSubaccountapiIprestrictionIplistPayload = {
export type DeleteSapiV1SubAccountSubaccountapiIprestrictionIplistResponse =
| Response<
200,
ResponseData<
ResponseBodyData<
'application/json',
{
ipRestrict: string;
ipList: string[];
updateTime: number; // int
apiKey: string;
}
>
ResponseBodyData<
'application/json',
{
ipRestrict: string;
ipList: string[];
updateTime: number; // int
apiKey: string;
}
>
>
| Response<400, ResponseData<ResponseBodyData<'application/json', Error>>>
| Response<401, ResponseData<ResponseBodyData<'application/json', Error>>>;
| Response<400, ResponseBodyData<'application/json', Error>>
| Response<401, ResponseBodyData<'application/json', Error>>;

export type DeleteSapiV1SubAccountSubaccountapiIprestrictionIplistRequestResult =
RequestResult<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import {errorZodSchema, Error} from '@example-outputs/binance-with-zod';
import {z} from 'zod';
import {
ResponseBodyData,
ResponseData,
Response,
RequestResult,
Request,
Expand Down Expand Up @@ -44,8 +43,8 @@ export type DeleteSapiV1UserdatastreamPayload = {
};

export type DeleteSapiV1UserdatastreamResponse =
| Response<200, ResponseData<ResponseBodyData<'application/json', {}>>>
| Response<400, ResponseData<ResponseBodyData<'application/json', Error>>>;
| Response<200, ResponseBodyData<'application/json', {}>>
| Response<400, ResponseBodyData<'application/json', Error>>;

export type DeleteSapiV1UserdatastreamRequestResult = RequestResult<
Request,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import {errorZodSchema, Error} from '@example-outputs/binance-with-zod';
import {z} from 'zod';
import {
ResponseBodyData,
ResponseData,
Response,
RequestResult,
Request,
Expand Down Expand Up @@ -44,8 +43,8 @@ export type DeleteSapiV1UserdatastreamIsolatedPayload = {
};

export type DeleteSapiV1UserdatastreamIsolatedResponse =
| Response<200, ResponseData<ResponseBodyData<'application/json', {}>>>
| Response<400, ResponseData<ResponseBodyData<'application/json', Error>>>;
| Response<200, ResponseBodyData<'application/json', {}>>
| Response<400, ResponseBodyData<'application/json', Error>>;

export type DeleteSapiV1UserdatastreamIsolatedRequestResult = RequestResult<
Request,
Expand Down
Loading

0 comments on commit 362b905

Please sign in to comment.