api.jsonに出力されないエンドポイントはoverwriteを介さないように
This commit is contained in:
parent
576e0bc9db
commit
a4e4799613
|
@ -1160,6 +1160,13 @@ export type Endpoints = Overwrite<Endpoints_2, {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
'admin/roles/create': {
|
||||||
|
req: Overwrite<AdminRolesCreateRequest, {
|
||||||
|
policies: PartialRolePolicyOverride;
|
||||||
|
}>;
|
||||||
|
res: AdminRolesCreateResponse;
|
||||||
|
};
|
||||||
|
}> & {
|
||||||
'signup': {
|
'signup': {
|
||||||
req: SignupRequest;
|
req: SignupRequest;
|
||||||
res: SignupResponse;
|
res: SignupResponse;
|
||||||
|
@ -1188,17 +1195,11 @@ export type Endpoints = Overwrite<Endpoints_2, {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
'admin/roles/create': {
|
|
||||||
req: Overwrite<AdminRolesCreateRequest, {
|
|
||||||
policies: PartialRolePolicyOverride;
|
|
||||||
}>;
|
|
||||||
res: AdminRolesCreateResponse;
|
|
||||||
};
|
|
||||||
[ep: `miauth/${string}/check`]: {
|
[ep: `miauth/${string}/check`]: {
|
||||||
req: EmptyRequest;
|
req: EmptyRequest;
|
||||||
res: MiAuthCheckResponse;
|
res: MiAuthCheckResponse;
|
||||||
};
|
};
|
||||||
}>;
|
};
|
||||||
|
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
type EndpointsResponse = operations['endpoints']['responses']['200']['content']['application/json'];
|
type EndpointsResponse = operations['endpoints']['responses']['200']['content']['application/json'];
|
||||||
|
|
|
@ -58,6 +58,7 @@ export type SwitchCaseResponseType<E extends keyof Endpoints, P extends Endpoint
|
||||||
export type Endpoints = Overwrite<
|
export type Endpoints = Overwrite<
|
||||||
Gen,
|
Gen,
|
||||||
{
|
{
|
||||||
|
// ▼ api.jsonのオーバーライド ▼
|
||||||
'users/show': {
|
'users/show': {
|
||||||
req: UsersShowRequest;
|
req: UsersShowRequest;
|
||||||
res: {
|
res: {
|
||||||
|
@ -71,17 +72,22 @@ export type Endpoints = Overwrite<
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
// api.jsonには載せないものなのでここで定義
|
'admin/roles/create': {
|
||||||
|
req: Overwrite<AdminRolesCreateRequest, { policies: PartialRolePolicyOverride }>;
|
||||||
|
res: AdminRolesCreateResponse;
|
||||||
|
},
|
||||||
|
// ▲ api.jsonのオーバーライド ▲
|
||||||
|
}
|
||||||
|
> & {
|
||||||
|
// ▼ api.jsonに載らないもの ▼
|
||||||
'signup': {
|
'signup': {
|
||||||
req: SignupRequest;
|
req: SignupRequest;
|
||||||
res: SignupResponse;
|
res: SignupResponse;
|
||||||
},
|
},
|
||||||
// api.jsonには載せないものなのでここで定義
|
|
||||||
'signup-pending': {
|
'signup-pending': {
|
||||||
req: SignupPendingRequest;
|
req: SignupPendingRequest;
|
||||||
res: SignupPendingResponse;
|
res: SignupPendingResponse;
|
||||||
},
|
},
|
||||||
// api.jsonには載せないものなのでここで定義
|
|
||||||
'signin-flow': {
|
'signin-flow': {
|
||||||
req: SigninFlowRequest;
|
req: SigninFlowRequest;
|
||||||
res: SigninFlowResponse;
|
res: SigninFlowResponse;
|
||||||
|
@ -102,13 +108,9 @@ export type Endpoints = Overwrite<
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'admin/roles/create': {
|
|
||||||
req: Overwrite<AdminRolesCreateRequest, { policies: PartialRolePolicyOverride }>;
|
|
||||||
res: AdminRolesCreateResponse;
|
|
||||||
},
|
|
||||||
[ep: `miauth/${string}/check`]: {
|
[ep: `miauth/${string}/check`]: {
|
||||||
req: EmptyRequest;
|
req: EmptyRequest;
|
||||||
res: MiAuthCheckResponse;
|
res: MiAuthCheckResponse;
|
||||||
}
|
},
|
||||||
}
|
// ▲ api.jsonに載らないもの ▲
|
||||||
>
|
};
|
||||||
|
|
Loading…
Reference in New Issue